autotool.patch 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687
  1. older libtool is unecessary checking for c++
  2. * remove "examples" subdir from Makefile.am
  3. * regen autotool infrastruture via
  4. "libtoolize; autoregen -vif; rm -rf automa4te"
  5. * add fstack-protector patch manually
  6. diff -Nur libvorbis-1.2.0.orig/aclocal.m4 libvorbis-1.2.0/aclocal.m4
  7. --- libvorbis-1.2.0.orig/aclocal.m4 2007-07-25 18:46:33.000000000 +0200
  8. +++ libvorbis-1.2.0/aclocal.m4 2011-02-17 18:30:19.313551987 +0100
  9. @@ -1,7 +1,7 @@
  10. -# generated automatically by aclocal 1.10 -*- Autoconf -*-
  11. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  12. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13. -# 2005, 2006 Free Software Foundation, Inc.
  14. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15. # This file is free software; the Free Software Foundation
  16. # gives unlimited permission to copy and/or distribute it,
  17. # with or without modifications, as long as this notice is preserved.
  18. @@ -11,108 +11,196 @@
  19. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  20. # PARTICULAR PURPOSE.
  21. -m4_if(m4_PACKAGE_VERSION, [2.61],,
  22. -[m4_fatal([this file was generated for autoconf 2.61.
  23. -You have another version of autoconf. If you want to use that,
  24. -you should regenerate the build system entirely.], [63])])
  25. +m4_ifndef([AC_AUTOCONF_VERSION],
  26. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  27. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  28. +[m4_warning([this file was generated for autoconf 2.65.
  29. +You have another version of autoconf. It may work, but is not guaranteed to.
  30. +If you have problems, you may need to regenerate the build system entirely.
  31. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  32. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  33. +#
  34. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  35. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  36. +# Written by Gordon Matzigkeit, 1996
  37. +#
  38. +# This file is free software; the Free Software Foundation gives
  39. +# unlimited permission to copy and/or distribute it, with or without
  40. +# modifications, as long as this notice is preserved.
  41. +
  42. +m4_define([_LT_COPYING], [dnl
  43. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  44. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  45. +# Written by Gordon Matzigkeit, 1996
  46. +#
  47. +# This file is part of GNU Libtool.
  48. +#
  49. +# GNU Libtool is free software; you can redistribute it and/or
  50. +# modify it under the terms of the GNU General Public License as
  51. +# published by the Free Software Foundation; either version 2 of
  52. +# the License, or (at your option) any later version.
  53. +#
  54. +# As a special exception to the GNU General Public License,
  55. +# if you distribute this file as part of a program or library that
  56. +# is built using GNU Libtool, you may include this file under the
  57. +# same distribution terms that you use for the rest of that program.
  58. +#
  59. +# GNU Libtool is distributed in the hope that it will be useful,
  60. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  61. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  62. +# GNU General Public License for more details.
  63. +#
  64. +# You should have received a copy of the GNU General Public License
  65. +# along with GNU Libtool; see the file COPYING. If not, a copy
  66. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  67. +# obtained by writing to the Free Software Foundation, Inc.,
  68. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  69. +])
  70. -# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
  71. +# serial 56 LT_INIT
  72. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  73. -# -----------------------------------------------------------
  74. -# If this macro is not defined by Autoconf, define it here.
  75. -m4_ifdef([AC_PROVIDE_IFELSE],
  76. - [],
  77. - [m4_define([AC_PROVIDE_IFELSE],
  78. - [m4_ifdef([AC_PROVIDE_$1],
  79. - [$2], [$3])])])
  80. +# LT_PREREQ(VERSION)
  81. +# ------------------
  82. +# Complain and exit if this libtool version is less that VERSION.
  83. +m4_defun([LT_PREREQ],
  84. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  85. + [m4_default([$3],
  86. + [m4_fatal([Libtool version $1 or higher is required],
  87. + 63)])],
  88. + [$2])])
  89. -# AC_PROG_LIBTOOL
  90. -# ---------------
  91. -AC_DEFUN([AC_PROG_LIBTOOL],
  92. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  93. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  94. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  95. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  96. - [AC_LIBTOOL_CXX],
  97. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  98. - ])])
  99. -dnl And a similar setup for Fortran 77 support
  100. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  101. - [AC_LIBTOOL_F77],
  102. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  103. -])])
  104. -
  105. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  106. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  107. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  108. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  109. - [AC_LIBTOOL_GCJ],
  110. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  111. - [AC_LIBTOOL_GCJ],
  112. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  113. - [AC_LIBTOOL_GCJ],
  114. - [ifdef([AC_PROG_GCJ],
  115. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  116. - ifdef([A][M_PROG_GCJ],
  117. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  118. - ifdef([LT_AC_PROG_GCJ],
  119. - [define([LT_AC_PROG_GCJ],
  120. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  121. -])])# AC_PROG_LIBTOOL
  122. +# _LT_CHECK_BUILDDIR
  123. +# ------------------
  124. +# Complain if the absolute build directory name contains unusual characters
  125. +m4_defun([_LT_CHECK_BUILDDIR],
  126. +[case `pwd` in
  127. + *\ * | *\ *)
  128. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  129. +esac
  130. +])
  131. -# _AC_PROG_LIBTOOL
  132. -# ----------------
  133. -AC_DEFUN([_AC_PROG_LIBTOOL],
  134. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  135. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  136. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  137. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  138. +# LT_INIT([OPTIONS])
  139. +# ------------------
  140. +AC_DEFUN([LT_INIT],
  141. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  142. +AC_BEFORE([$0], [LT_LANG])dnl
  143. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  144. +AC_BEFORE([$0], [LTDL_INIT])dnl
  145. +m4_require([_LT_CHECK_BUILDDIR])dnl
  146. +
  147. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  148. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  149. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  150. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  151. +dnl unless we require an AC_DEFUNed macro:
  152. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  153. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  154. +AC_REQUIRE([LTVERSION_VERSION])dnl
  155. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  156. +m4_require([_LT_PROG_LTMAIN])dnl
  157. +
  158. +dnl Parse OPTIONS
  159. +_LT_SET_OPTIONS([$0], [$1])
  160. # This can be used to rebuild libtool when needed
  161. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  162. +LIBTOOL_DEPS="$ltmain"
  163. # Always use our own libtool.
  164. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  165. AC_SUBST(LIBTOOL)dnl
  166. -# Prevent multiple expansion
  167. -define([AC_PROG_LIBTOOL], [])
  168. -])# _AC_PROG_LIBTOOL
  169. +_LT_SETUP
  170. +# Only expand once:
  171. +m4_define([LT_INIT])
  172. +])# LT_INIT
  173. +
  174. +# Old names:
  175. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  176. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  177. +dnl aclocal-1.4 backwards compatibility:
  178. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  179. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  180. -# AC_LIBTOOL_SETUP
  181. -# ----------------
  182. -AC_DEFUN([AC_LIBTOOL_SETUP],
  183. -[AC_PREREQ(2.50)dnl
  184. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  185. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  186. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  187. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  188. +
  189. +# _LT_CC_BASENAME(CC)
  190. +# -------------------
  191. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  192. +m4_defun([_LT_CC_BASENAME],
  193. +[for cc_temp in $1""; do
  194. + case $cc_temp in
  195. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  196. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  197. + \-*) ;;
  198. + *) break;;
  199. + esac
  200. +done
  201. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  202. +])
  203. +
  204. +
  205. +# _LT_FILEUTILS_DEFAULTS
  206. +# ----------------------
  207. +# It is okay to use these file commands and assume they have been set
  208. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  209. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  210. +[: ${CP="cp -f"}
  211. +: ${MV="mv -f"}
  212. +: ${RM="rm -f"}
  213. +])# _LT_FILEUTILS_DEFAULTS
  214. +
  215. +
  216. +# _LT_SETUP
  217. +# ---------
  218. +m4_defun([_LT_SETUP],
  219. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  220. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  221. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  222. +_LT_DECL([], [host], [0])dnl
  223. +_LT_DECL([], [host_os], [0])dnl
  224. +dnl
  225. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  226. +_LT_DECL([], [build], [0])dnl
  227. +_LT_DECL([], [build_os], [0])dnl
  228. +dnl
  229. AC_REQUIRE([AC_PROG_CC])dnl
  230. -AC_REQUIRE([AC_PROG_LD])dnl
  231. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  232. -AC_REQUIRE([AC_PROG_NM])dnl
  233. -
  234. +AC_REQUIRE([LT_PATH_LD])dnl
  235. +AC_REQUIRE([LT_PATH_NM])dnl
  236. +dnl
  237. AC_REQUIRE([AC_PROG_LN_S])dnl
  238. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  239. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  240. -AC_REQUIRE([AC_OBJEXT])dnl
  241. -AC_REQUIRE([AC_EXEEXT])dnl
  242. +test -z "$LN_S" && LN_S="ln -s"
  243. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  244. dnl
  245. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  246. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  247. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  248. +dnl
  249. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  250. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  251. +m4_require([_LT_CMD_RELOAD])dnl
  252. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  253. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  254. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  255. +
  256. +_LT_CONFIG_LIBTOOL_INIT([
  257. +# See if we are running on zsh, and set the options which allow our
  258. +# commands through without removal of \ escapes INIT.
  259. +if test -n "\${ZSH_VERSION+set}" ; then
  260. + setopt NO_GLOB_SUBST
  261. +fi
  262. +])
  263. +if test -n "${ZSH_VERSION+set}" ; then
  264. + setopt NO_GLOB_SUBST
  265. +fi
  266. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  267. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  268. -AC_LIBTOOL_OBJDIR
  269. +_LT_CHECK_OBJDIR
  270. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  271. -_LT_AC_PROG_ECHO_BACKSLASH
  272. +m4_require([_LT_TAG_COMPILER])dnl
  273. +_LT_PROG_ECHO_BACKSLASH
  274. case $host_os in
  275. aix3*)
  276. @@ -128,4518 +216,3148 @@
  277. # Sed substitution that helps us do robust quoting. It backslashifies
  278. # metacharacters that are still active within double-quoted strings.
  279. -Xsed='sed -e 1s/^X//'
  280. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  281. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  282. # Same as above, but do not quote variable references.
  283. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  284. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  285. # Sed substitution to delay expansion of an escaped shell variable in a
  286. # double_quote_subst'ed string.
  287. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  288. +# Sed substitution to delay expansion of an escaped single quote.
  289. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  290. +
  291. # Sed substitution to avoid accidental globbing in evaled expressions
  292. no_glob_subst='s/\*/\\\*/g'
  293. -# Constants:
  294. -rm="rm -f"
  295. -
  296. # Global variables:
  297. -default_ofile=libtool
  298. +ofile=libtool
  299. can_build_shared=yes
  300. # All known linkers require a `.a' archive for static linking (except MSVC,
  301. # which needs '.lib').
  302. libext=a
  303. -ltmain="$ac_aux_dir/ltmain.sh"
  304. -ofile="$default_ofile"
  305. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  306. -AC_CHECK_TOOL(AR, ar, false)
  307. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  308. -AC_CHECK_TOOL(STRIP, strip, :)
  309. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  310. old_CC="$CC"
  311. old_CFLAGS="$CFLAGS"
  312. # Set sane defaults for various variables
  313. -test -z "$AR" && AR=ar
  314. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  315. -test -z "$AS" && AS=as
  316. test -z "$CC" && CC=cc
  317. test -z "$LTCC" && LTCC=$CC
  318. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  319. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  320. test -z "$LD" && LD=ld
  321. -test -z "$LN_S" && LN_S="ln -s"
  322. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  323. -test -z "$NM" && NM=nm
  324. -test -z "$SED" && SED=sed
  325. -test -z "$OBJDUMP" && OBJDUMP=objdump
  326. -test -z "$RANLIB" && RANLIB=:
  327. -test -z "$STRIP" && STRIP=:
  328. test -z "$ac_objext" && ac_objext=o
  329. -# Determine commands to create old-style static archives.
  330. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  331. -old_postinstall_cmds='chmod 644 $oldlib'
  332. -old_postuninstall_cmds=
  333. -
  334. -if test -n "$RANLIB"; then
  335. - case $host_os in
  336. - openbsd*)
  337. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  338. - ;;
  339. - *)
  340. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  341. - ;;
  342. - esac
  343. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  344. -fi
  345. -
  346. _LT_CC_BASENAME([$compiler])
  347. # Only perform the check for file, if the check method requires it
  348. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  349. case $deplibs_check_method in
  350. file_magic*)
  351. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  352. - AC_PATH_MAGIC
  353. + _LT_PATH_MAGIC
  354. fi
  355. ;;
  356. esac
  357. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  358. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  359. -enable_win32_dll=yes, enable_win32_dll=no)
  360. -
  361. -AC_ARG_ENABLE([libtool-lock],
  362. - [AC_HELP_STRING([--disable-libtool-lock],
  363. - [avoid locking (might break parallel builds)])])
  364. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  365. +# Use C for the default configuration in the libtool script
  366. +LT_SUPPORTED_TAG([CC])
  367. +_LT_LANG_C_CONFIG
  368. +_LT_LANG_DEFAULT_CONFIG
  369. +_LT_CONFIG_COMMANDS
  370. +])# _LT_SETUP
  371. -AC_ARG_WITH([pic],
  372. - [AC_HELP_STRING([--with-pic],
  373. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  374. - [pic_mode="$withval"],
  375. - [pic_mode=default])
  376. -test -z "$pic_mode" && pic_mode=default
  377. -# Use C for the default configuration in the libtool script
  378. -tagname=
  379. -AC_LIBTOOL_LANG_C_CONFIG
  380. -_LT_AC_TAGCONFIG
  381. -])# AC_LIBTOOL_SETUP
  382. +# _LT_PROG_LTMAIN
  383. +# ---------------
  384. +# Note that this code is called both from `configure', and `config.status'
  385. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  386. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  387. +# so we pass a copy along to make sure it has a sensible value anyway.
  388. +m4_defun([_LT_PROG_LTMAIN],
  389. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  390. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  391. +ltmain="$ac_aux_dir/ltmain.sh"
  392. +])# _LT_PROG_LTMAIN
  393. -# _LT_AC_SYS_COMPILER
  394. -# -------------------
  395. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  396. -[AC_REQUIRE([AC_PROG_CC])dnl
  397. -# If no C compiler was specified, use CC.
  398. -LTCC=${LTCC-"$CC"}
  399. +# So that we can recreate a full libtool script including additional
  400. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  401. +# in macros and then make a single call at the end using the `libtool'
  402. +# label.
  403. -# If no C compiler flags were specified, use CFLAGS.
  404. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  405. -# Allow CC to be a program name with arguments.
  406. -compiler=$CC
  407. -])# _LT_AC_SYS_COMPILER
  408. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  409. +# ----------------------------------------
  410. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  411. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  412. +[m4_ifval([$1],
  413. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  414. + [$1
  415. +])])])
  416. +# Initialize.
  417. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  418. -# _LT_CC_BASENAME(CC)
  419. -# -------------------
  420. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  421. -AC_DEFUN([_LT_CC_BASENAME],
  422. -[for cc_temp in $1""; do
  423. - case $cc_temp in
  424. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  425. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  426. - \-*) ;;
  427. - *) break;;
  428. - esac
  429. -done
  430. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  431. +
  432. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  433. +# ------------------------------
  434. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  435. +m4_define([_LT_CONFIG_LIBTOOL],
  436. +[m4_ifval([$1],
  437. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  438. + [$1
  439. +])])])
  440. +
  441. +# Initialize.
  442. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  443. +
  444. +
  445. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  446. +# -----------------------------------------------------
  447. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  448. +[_LT_CONFIG_LIBTOOL([$1])
  449. +_LT_CONFIG_LIBTOOL_INIT([$2])
  450. ])
  451. -# _LT_COMPILER_BOILERPLATE
  452. -# ------------------------
  453. -# Check for compiler boilerplate output or warnings with
  454. -# the simple compiler test code.
  455. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  456. -[ac_outfile=conftest.$ac_objext
  457. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  458. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  459. -_lt_compiler_boilerplate=`cat conftest.err`
  460. -$rm conftest*
  461. -])# _LT_COMPILER_BOILERPLATE
  462. +# _LT_FORMAT_COMMENT([COMMENT])
  463. +# -----------------------------
  464. +# Add leading comment marks to the start of each line, and a trailing
  465. +# full-stop to the whole comment if one is not present already.
  466. +m4_define([_LT_FORMAT_COMMENT],
  467. +[m4_ifval([$1], [
  468. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  469. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  470. +)])
  471. -# _LT_LINKER_BOILERPLATE
  472. -# ----------------------
  473. -# Check for linker boilerplate output or warnings with
  474. -# the simple link test code.
  475. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  476. -[ac_outfile=conftest.$ac_objext
  477. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  478. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  479. -_lt_linker_boilerplate=`cat conftest.err`
  480. -$rm conftest*
  481. -])# _LT_LINKER_BOILERPLATE
  482. -# _LT_AC_SYS_LIBPATH_AIX
  483. -# ----------------------
  484. -# Links a minimal program and checks the executable
  485. -# for the system default hardcoded library path. In most cases,
  486. -# this is /usr/lib:/lib, but when the MPI compilers are used
  487. -# the location of the communication and MPI libs are included too.
  488. -# If we don't find anything, use the default library path according
  489. -# to the aix ld manual.
  490. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  491. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  492. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  493. -}'`
  494. -# Check for a 64-bit object if we didn't find anything.
  495. -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; }
  496. -}'`; fi],[])
  497. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  498. -])# _LT_AC_SYS_LIBPATH_AIX
  499. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  500. +# -------------------------------------------------------------------
  501. +# CONFIGNAME is the name given to the value in the libtool script.
  502. +# VARNAME is the (base) name used in the configure script.
  503. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  504. +# VARNAME. Any other value will be used directly.
  505. +m4_define([_LT_DECL],
  506. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  507. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  508. + [m4_ifval([$1], [$1], [$2])])
  509. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  510. + m4_ifval([$4],
  511. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  512. + lt_dict_add_subkey([lt_decl_dict], [$2],
  513. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  514. +])
  515. -# _LT_AC_SHELL_INIT(ARG)
  516. -# ----------------------
  517. -AC_DEFUN([_LT_AC_SHELL_INIT],
  518. -[ifdef([AC_DIVERSION_NOTICE],
  519. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  520. - [AC_DIVERT_PUSH(NOTICE)])
  521. -$1
  522. -AC_DIVERT_POP
  523. -])# _LT_AC_SHELL_INIT
  524. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  525. +# --------------------------------------------------------
  526. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  527. +
  528. +
  529. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  530. +# ------------------------------------------------
  531. +m4_define([lt_decl_tag_varnames],
  532. +[_lt_decl_filter([tagged?], [yes], $@)])
  533. +
  534. +
  535. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  536. +# ---------------------------------------------------------
  537. +m4_define([_lt_decl_filter],
  538. +[m4_case([$#],
  539. + [0], [m4_fatal([$0: too few arguments: $#])],
  540. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  541. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  542. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  543. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  544. +])
  545. -# _LT_AC_PROG_ECHO_BACKSLASH
  546. -# --------------------------
  547. -# Add some code to the start of the generated configure script which
  548. -# will find an echo command which doesn't interpret backslashes.
  549. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  550. -[_LT_AC_SHELL_INIT([
  551. -# Check that we are running under the correct shell.
  552. -SHELL=${CONFIG_SHELL-/bin/sh}
  553. -case X$ECHO in
  554. -X*--fallback-echo)
  555. - # Remove one level of quotation (which was required for Make).
  556. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  557. - ;;
  558. -esac
  559. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  560. +# --------------------------------------------------
  561. +m4_define([lt_decl_quote_varnames],
  562. +[_lt_decl_filter([value], [1], $@)])
  563. +
  564. +
  565. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  566. +# ---------------------------------------------------
  567. +m4_define([lt_decl_dquote_varnames],
  568. +[_lt_decl_filter([value], [2], $@)])
  569. +
  570. +
  571. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  572. +# ---------------------------------------------------
  573. +m4_define([lt_decl_varnames_tagged],
  574. +[m4_assert([$# <= 2])dnl
  575. +_$0(m4_quote(m4_default([$1], [[, ]])),
  576. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  577. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  578. +m4_define([_lt_decl_varnames_tagged],
  579. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  580. +
  581. +
  582. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  583. +# ------------------------------------------------
  584. +m4_define([lt_decl_all_varnames],
  585. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  586. + m4_if([$2], [],
  587. + m4_quote(lt_decl_varnames),
  588. + m4_quote(m4_shift($@))))[]dnl
  589. +])
  590. +m4_define([_lt_decl_all_varnames],
  591. +[lt_join($@, lt_decl_varnames_tagged([$1],
  592. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  593. +])
  594. -echo=${ECHO-echo}
  595. -if test "X[$]1" = X--no-reexec; then
  596. - # Discard the --no-reexec flag, and continue.
  597. - shift
  598. -elif test "X[$]1" = X--fallback-echo; then
  599. - # Avoid inline document here, it may be left over
  600. - :
  601. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  602. - # Yippee, $echo works!
  603. - :
  604. -else
  605. - # Restart under the correct shell.
  606. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  607. -fi
  608. -if test "X[$]1" = X--fallback-echo; then
  609. - # used as fallback echo
  610. - shift
  611. - cat <<EOF
  612. -[$]*
  613. -EOF
  614. - exit 0
  615. -fi
  616. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  617. +# ------------------------------------
  618. +# Quote a variable value, and forward it to `config.status' so that its
  619. +# declaration there will have the same value as in `configure'. VARNAME
  620. +# must have a single quote delimited value for this to work.
  621. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  622. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  623. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  624. -# if CDPATH is set.
  625. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  626. -if test -z "$ECHO"; then
  627. -if test "X${echo_test_string+set}" != Xset; then
  628. -# find a string as large as possible, as long as the shell can cope with it
  629. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  630. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  631. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  632. - echo_test_string=`eval $cmd` &&
  633. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  634. - then
  635. - break
  636. - fi
  637. - done
  638. -fi
  639. +# _LT_CONFIG_STATUS_DECLARATIONS
  640. +# ------------------------------
  641. +# We delimit libtool config variables with single quotes, so when
  642. +# we write them to config.status, we have to be sure to quote all
  643. +# embedded single quotes properly. In configure, this macro expands
  644. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  645. +#
  646. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  647. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  648. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  649. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  650. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  651. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  652. - test "X$echo_testing_string" = "X$echo_test_string"; then
  653. - :
  654. -else
  655. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  656. - # backslashes. This makes it impossible to quote backslashes using
  657. - # echo "$something" | sed 's/\\/\\\\/g'
  658. - #
  659. - # So, first we look for a working echo in the user's PATH.
  660. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  661. - for dir in $PATH /usr/ucb; do
  662. - IFS="$lt_save_ifs"
  663. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  664. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  665. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  666. - test "X$echo_testing_string" = "X$echo_test_string"; then
  667. - echo="$dir/echo"
  668. - break
  669. - fi
  670. - done
  671. - IFS="$lt_save_ifs"
  672. +# _LT_LIBTOOL_TAGS
  673. +# ----------------
  674. +# Output comment and list of tags supported by the script
  675. +m4_defun([_LT_LIBTOOL_TAGS],
  676. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  677. +available_tags="_LT_TAGS"dnl
  678. +])
  679. - if test "X$echo" = Xecho; then
  680. - # We didn't find a better echo, so look for alternatives.
  681. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  682. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  683. - test "X$echo_testing_string" = "X$echo_test_string"; then
  684. - # This shell has a builtin print -r that does the trick.
  685. - echo='print -r'
  686. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  687. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  688. - # If we have ksh, try running configure again with it.
  689. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  690. - export ORIGINAL_CONFIG_SHELL
  691. - CONFIG_SHELL=/bin/ksh
  692. - export CONFIG_SHELL
  693. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  694. - else
  695. - # Try using printf.
  696. - echo='printf %s\n'
  697. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  698. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  699. - test "X$echo_testing_string" = "X$echo_test_string"; then
  700. - # Cool, printf works
  701. - :
  702. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  703. - test "X$echo_testing_string" = 'X\t' &&
  704. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  705. - test "X$echo_testing_string" = "X$echo_test_string"; then
  706. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  707. - export CONFIG_SHELL
  708. - SHELL="$CONFIG_SHELL"
  709. - export SHELL
  710. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  711. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  712. - test "X$echo_testing_string" = 'X\t' &&
  713. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  714. - test "X$echo_testing_string" = "X$echo_test_string"; then
  715. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  716. - else
  717. - # maybe with a smaller string...
  718. - prev=:
  719. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  720. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  721. - then
  722. - break
  723. - fi
  724. - prev="$cmd"
  725. - done
  726. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  727. +# -----------------------------------
  728. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  729. +# expand to a commented shell variable setting:
  730. +#
  731. +# # Some comment about what VAR is for.
  732. +# visible_name=$lt_internal_name
  733. +m4_define([_LT_LIBTOOL_DECLARE],
  734. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  735. + [description])))[]dnl
  736. +m4_pushdef([_libtool_name],
  737. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  738. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  739. + [0], [_libtool_name=[$]$1],
  740. + [1], [_libtool_name=$lt_[]$1],
  741. + [2], [_libtool_name=$lt_[]$1],
  742. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  743. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  744. +])
  745. - if test "$prev" != 'sed 50q "[$]0"'; then
  746. - echo_test_string=`eval $prev`
  747. - export echo_test_string
  748. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  749. - else
  750. - # Oops. We lost completely, so just stick with echo.
  751. - echo=echo
  752. - fi
  753. - fi
  754. - fi
  755. - fi
  756. -fi
  757. -fi
  758. -# Copy echo and quote the copy suitably for passing to libtool from
  759. -# the Makefile, instead of quoting the original, which is used later.
  760. -ECHO=$echo
  761. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  762. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  763. -fi
  764. +# _LT_LIBTOOL_CONFIG_VARS
  765. +# -----------------------
  766. +# Produce commented declarations of non-tagged libtool config variables
  767. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  768. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  769. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  770. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  771. +[m4_foreach([_lt_var],
  772. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  773. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  774. -AC_SUBST(ECHO)
  775. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  776. +# _LT_LIBTOOL_TAG_VARS(TAG)
  777. +# -------------------------
  778. +m4_define([_LT_LIBTOOL_TAG_VARS],
  779. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  780. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  781. -# _LT_AC_LOCK
  782. -# -----------
  783. -AC_DEFUN([_LT_AC_LOCK],
  784. -[AC_ARG_ENABLE([libtool-lock],
  785. - [AC_HELP_STRING([--disable-libtool-lock],
  786. - [avoid locking (might break parallel builds)])])
  787. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  788. -# Some flags need to be propagated to the compiler or linker for good
  789. -# libtool support.
  790. -case $host in
  791. -ia64-*-hpux*)
  792. - # Find out which ABI we are using.
  793. - echo 'int i;' > conftest.$ac_ext
  794. - if AC_TRY_EVAL(ac_compile); then
  795. - case `/usr/bin/file conftest.$ac_objext` in
  796. - *ELF-32*)
  797. - HPUX_IA64_MODE="32"
  798. - ;;
  799. - *ELF-64*)
  800. - HPUX_IA64_MODE="64"
  801. - ;;
  802. - esac
  803. - fi
  804. - rm -rf conftest*
  805. - ;;
  806. -*-*-irix6*)
  807. - # Find out which ABI we are using.
  808. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  809. - if AC_TRY_EVAL(ac_compile); then
  810. - if test "$lt_cv_prog_gnu_ld" = yes; then
  811. - case `/usr/bin/file conftest.$ac_objext` in
  812. - *32-bit*)
  813. - LD="${LD-ld} -melf32bsmip"
  814. - ;;
  815. - *N32*)
  816. - LD="${LD-ld} -melf32bmipn32"
  817. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  818. +# ------------------------------
  819. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  820. +
  821. +
  822. +# _LT_CONFIG_COMMANDS
  823. +# -------------------
  824. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  825. +# variables for single and double quote escaping we saved from calls
  826. +# to _LT_DECL, we can put quote escaped variables declarations
  827. +# into `config.status', and then the shell code to quote escape them in
  828. +# for loops in `config.status'. Finally, any additional code accumulated
  829. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  830. +m4_defun([_LT_CONFIG_COMMANDS],
  831. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  832. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  833. + dnl instead of duplicating it all over again into config.status,
  834. + dnl then we will have config.status run $CONFIG_LT later, so it
  835. + dnl needs to know what name is stored there:
  836. + [AC_CONFIG_COMMANDS([libtool],
  837. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  838. + dnl If the libtool generation code is destined for config.status,
  839. + dnl expand the accumulated commands and init code now:
  840. + [AC_CONFIG_COMMANDS([libtool],
  841. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  842. +])#_LT_CONFIG_COMMANDS
  843. +
  844. +
  845. +# Initialize.
  846. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  847. +[
  848. +
  849. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  850. +# if CDPATH is set.
  851. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  852. +
  853. +sed_quote_subst='$sed_quote_subst'
  854. +double_quote_subst='$double_quote_subst'
  855. +delay_variable_subst='$delay_variable_subst'
  856. +_LT_CONFIG_STATUS_DECLARATIONS
  857. +LTCC='$LTCC'
  858. +LTCFLAGS='$LTCFLAGS'
  859. +compiler='$compiler_DEFAULT'
  860. +
  861. +# Quote evaled strings.
  862. +for var in lt_decl_all_varnames([[ \
  863. +]], lt_decl_quote_varnames); do
  864. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  865. + *[[\\\\\\\`\\"\\\$]]*)
  866. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  867. ;;
  868. - *64-bit*)
  869. - LD="${LD-ld} -melf64bmip"
  870. + *)
  871. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  872. ;;
  873. esac
  874. - else
  875. - case `/usr/bin/file conftest.$ac_objext` in
  876. - *32-bit*)
  877. - LD="${LD-ld} -32"
  878. - ;;
  879. - *N32*)
  880. - LD="${LD-ld} -n32"
  881. +done
  882. +
  883. +# Double-quote double-evaled strings.
  884. +for var in lt_decl_all_varnames([[ \
  885. +]], lt_decl_dquote_varnames); do
  886. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  887. + *[[\\\\\\\`\\"\\\$]]*)
  888. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  889. ;;
  890. - *64-bit*)
  891. - LD="${LD-ld} -64"
  892. + *)
  893. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  894. ;;
  895. esac
  896. - fi
  897. - fi
  898. - rm -rf conftest*
  899. - ;;
  900. -
  901. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  902. - # Find out which ABI we are using.
  903. - echo 'int i;' > conftest.$ac_ext
  904. - if AC_TRY_EVAL(ac_compile); then
  905. - case `/usr/bin/file conftest.o` in
  906. - *32-bit*)
  907. - case $host in
  908. - x86_64-*linux*)
  909. - LD="${LD-ld} -m elf_i386"
  910. - ;;
  911. - ppc64-*linux*|powerpc64-*linux*)
  912. - LD="${LD-ld} -m elf32ppclinux"
  913. - ;;
  914. - s390x-*linux*)
  915. - LD="${LD-ld} -m elf_s390"
  916. - ;;
  917. - sparc64-*linux*)
  918. - LD="${LD-ld} -m elf32_sparc"
  919. - ;;
  920. - esac
  921. - ;;
  922. - *64-bit*)
  923. - case $host in
  924. - x86_64-*linux*)
  925. - LD="${LD-ld} -m elf_x86_64"
  926. - ;;
  927. - ppc*-*linux*|powerpc*-*linux*)
  928. - LD="${LD-ld} -m elf64ppc"
  929. - ;;
  930. - s390*-*linux*)
  931. - LD="${LD-ld} -m elf64_s390"
  932. - ;;
  933. - sparc*-*linux*)
  934. - LD="${LD-ld} -m elf64_sparc"
  935. - ;;
  936. - esac
  937. - ;;
  938. - esac
  939. - fi
  940. - rm -rf conftest*
  941. - ;;
  942. -
  943. -*-*-sco3.2v5*)
  944. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  945. - SAVE_CFLAGS="$CFLAGS"
  946. - CFLAGS="$CFLAGS -belf"
  947. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  948. - [AC_LANG_PUSH(C)
  949. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  950. - AC_LANG_POP])
  951. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  952. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  953. - CFLAGS="$SAVE_CFLAGS"
  954. - fi
  955. - ;;
  956. -sparc*-*solaris*)
  957. - # Find out which ABI we are using.
  958. - echo 'int i;' > conftest.$ac_ext
  959. - if AC_TRY_EVAL(ac_compile); then
  960. - case `/usr/bin/file conftest.o` in
  961. - *64-bit*)
  962. - case $lt_cv_prog_gnu_ld in
  963. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  964. - *) LD="${LD-ld} -64" ;;
  965. - esac
  966. - ;;
  967. - esac
  968. - fi
  969. - rm -rf conftest*
  970. - ;;
  971. +done
  972. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  973. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  974. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  975. - AC_CHECK_TOOL(AS, as, false)
  976. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  977. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  978. +case \$lt_ECHO in
  979. +*'\\\[$]0 --fallback-echo"')dnl "
  980. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  981. ;;
  982. - ])
  983. esac
  984. -need_locks="$enable_libtool_lock"
  985. +_LT_OUTPUT_LIBTOOL_INIT
  986. +])
  987. -])# _LT_AC_LOCK
  988. +# LT_OUTPUT
  989. +# ---------
  990. +# This macro allows early generation of the libtool script (before
  991. +# AC_OUTPUT is called), incase it is used in configure for compilation
  992. +# tests.
  993. +AC_DEFUN([LT_OUTPUT],
  994. +[: ${CONFIG_LT=./config.lt}
  995. +AC_MSG_NOTICE([creating $CONFIG_LT])
  996. +cat >"$CONFIG_LT" <<_LTEOF
  997. +#! $SHELL
  998. +# Generated by $as_me.
  999. +# Run this file to recreate a libtool stub with the current configuration.
  1000. +
  1001. +lt_cl_silent=false
  1002. +SHELL=\${CONFIG_SHELL-$SHELL}
  1003. +_LTEOF
  1004. +
  1005. +cat >>"$CONFIG_LT" <<\_LTEOF
  1006. +AS_SHELL_SANITIZE
  1007. +_AS_PREPARE
  1008. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1009. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1010. -# ----------------------------------------------------------------
  1011. -# Check whether the given compiler option works
  1012. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1013. -[AC_REQUIRE([LT_AC_PROG_SED])
  1014. -AC_CACHE_CHECK([$1], [$2],
  1015. - [$2=no
  1016. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1017. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1018. - lt_compiler_flag="$3"
  1019. - # Insert the option either (1) after the last *FLAGS variable, or
  1020. - # (2) before a word containing "conftest.", or (3) at the end.
  1021. - # Note that $ac_compile itself does not contain backslashes and begins
  1022. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1023. - # The option is referenced via a variable to avoid confusing sed.
  1024. - lt_compile=`echo "$ac_compile" | $SED \
  1025. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1026. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1027. - -e 's:$: $lt_compiler_flag:'`
  1028. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1029. - (eval "$lt_compile" 2>conftest.err)
  1030. - ac_status=$?
  1031. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1032. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1033. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1034. - # The compiler can only warn and ignore the option if not recognized
  1035. - # So say no if there are warnings other than the usual output.
  1036. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1037. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1038. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1039. - $2=yes
  1040. - fi
  1041. - fi
  1042. - $rm conftest*
  1043. -])
  1044. +exec AS_MESSAGE_FD>&1
  1045. +exec AS_MESSAGE_LOG_FD>>config.log
  1046. +{
  1047. + echo
  1048. + AS_BOX([Running $as_me.])
  1049. +} >&AS_MESSAGE_LOG_FD
  1050. +
  1051. +lt_cl_help="\
  1052. +\`$as_me' creates a local libtool stub from the current configuration,
  1053. +for use in further configure time tests before the real libtool is
  1054. +generated.
  1055. +
  1056. +Usage: $[0] [[OPTIONS]]
  1057. +
  1058. + -h, --help print this help, then exit
  1059. + -V, --version print version number, then exit
  1060. + -q, --quiet do not print progress messages
  1061. + -d, --debug don't remove temporary files
  1062. +
  1063. +Report bugs to <bug-libtool@gnu.org>."
  1064. +
  1065. +lt_cl_version="\
  1066. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1067. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1068. +configured by $[0], generated by m4_PACKAGE_STRING.
  1069. +
  1070. +Copyright (C) 2008 Free Software Foundation, Inc.
  1071. +This config.lt script is free software; the Free Software Foundation
  1072. +gives unlimited permision to copy, distribute and modify it."
  1073. -if test x"[$]$2" = xyes; then
  1074. - ifelse([$5], , :, [$5])
  1075. -else
  1076. - ifelse([$6], , :, [$6])
  1077. -fi
  1078. -])# AC_LIBTOOL_COMPILER_OPTION
  1079. +while test $[#] != 0
  1080. +do
  1081. + case $[1] in
  1082. + --version | --v* | -V )
  1083. + echo "$lt_cl_version"; exit 0 ;;
  1084. + --help | --h* | -h )
  1085. + echo "$lt_cl_help"; exit 0 ;;
  1086. + --debug | --d* | -d )
  1087. + debug=: ;;
  1088. + --quiet | --q* | --silent | --s* | -q )
  1089. + lt_cl_silent=: ;;
  1090. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1091. +Try \`$[0] --help' for more information.]) ;;
  1092. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1093. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1094. -# ------------------------------------------------------------
  1095. -# Check whether the given compiler option works
  1096. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1097. -[AC_CACHE_CHECK([$1], [$2],
  1098. - [$2=no
  1099. - save_LDFLAGS="$LDFLAGS"
  1100. - LDFLAGS="$LDFLAGS $3"
  1101. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1102. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1103. - # The linker can only warn and ignore the option if not recognized
  1104. - # So say no if there are warnings
  1105. - if test -s conftest.err; then
  1106. - # Append any errors to the config.log.
  1107. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1108. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1109. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1110. - if diff conftest.exp conftest.er2 >/dev/null; then
  1111. - $2=yes
  1112. - fi
  1113. - else
  1114. - $2=yes
  1115. - fi
  1116. - fi
  1117. - $rm conftest*
  1118. - LDFLAGS="$save_LDFLAGS"
  1119. -])
  1120. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1121. +Try \`$[0] --help' for more information.]) ;;
  1122. + esac
  1123. + shift
  1124. +done
  1125. -if test x"[$]$2" = xyes; then
  1126. - ifelse([$4], , :, [$4])
  1127. -else
  1128. - ifelse([$5], , :, [$5])
  1129. +if $lt_cl_silent; then
  1130. + exec AS_MESSAGE_FD>/dev/null
  1131. fi
  1132. -])# AC_LIBTOOL_LINKER_OPTION
  1133. +_LTEOF
  1134. +cat >>"$CONFIG_LT" <<_LTEOF
  1135. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1136. +_LTEOF
  1137. +
  1138. +cat >>"$CONFIG_LT" <<\_LTEOF
  1139. +AC_MSG_NOTICE([creating $ofile])
  1140. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1141. +AS_EXIT(0)
  1142. +_LTEOF
  1143. +chmod +x "$CONFIG_LT"
  1144. +
  1145. +# configure is writing to config.log, but config.lt does its own redirection,
  1146. +# appending to config.log, which fails on DOS, as config.log is still kept
  1147. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1148. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1149. +if test "$no_create" != yes; then
  1150. + lt_cl_success=:
  1151. + test "$silent" = yes &&
  1152. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1153. + exec AS_MESSAGE_LOG_FD>/dev/null
  1154. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1155. + exec AS_MESSAGE_LOG_FD>>config.log
  1156. + $lt_cl_success || AS_EXIT(1)
  1157. +fi
  1158. +])# LT_OUTPUT
  1159. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1160. -# --------------------------
  1161. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1162. -[# find the maximum length of command line arguments
  1163. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1164. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1165. - i=0
  1166. - teststring="ABCD"
  1167. - case $build_os in
  1168. - msdosdjgpp*)
  1169. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1170. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1171. - # during glob expansion). Even if it were fixed, the result of this
  1172. - # check would be larger than it should be.
  1173. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1174. - ;;
  1175. +# _LT_CONFIG(TAG)
  1176. +# ---------------
  1177. +# If TAG is the built-in tag, create an initial libtool script with a
  1178. +# default configuration from the untagged config vars. Otherwise add code
  1179. +# to config.status for appending the configuration named by TAG from the
  1180. +# matching tagged config vars.
  1181. +m4_defun([_LT_CONFIG],
  1182. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1183. +_LT_CONFIG_SAVE_COMMANDS([
  1184. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1185. + m4_if(_LT_TAG, [C], [
  1186. + # See if we are running on zsh, and set the options which allow our
  1187. + # commands through without removal of \ escapes.
  1188. + if test -n "${ZSH_VERSION+set}" ; then
  1189. + setopt NO_GLOB_SUBST
  1190. + fi
  1191. - gnu*)
  1192. - # Under GNU Hurd, this test is not required because there is
  1193. - # no limit to the length of command line arguments.
  1194. - # Libtool will interpret -1 as no limit whatsoever
  1195. - lt_cv_sys_max_cmd_len=-1;
  1196. - ;;
  1197. + cfgfile="${ofile}T"
  1198. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1199. + $RM "$cfgfile"
  1200. - cygwin* | mingw*)
  1201. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1202. - # about 5 minutes as the teststring grows exponentially.
  1203. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1204. - # you end up with a "frozen" computer, even though with patience
  1205. - # the test eventually succeeds (with a max line length of 256k).
  1206. - # Instead, let's just punt: use the minimum linelength reported by
  1207. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1208. - lt_cv_sys_max_cmd_len=8192;
  1209. - ;;
  1210. + cat <<_LT_EOF >> "$cfgfile"
  1211. +#! $SHELL
  1212. - amigaos*)
  1213. - # On AmigaOS with pdksh, this test takes hours, literally.
  1214. - # So we just punt and use a minimum line length of 8192.
  1215. - lt_cv_sys_max_cmd_len=8192;
  1216. - ;;
  1217. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1218. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1219. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1220. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1221. +#
  1222. +_LT_COPYING
  1223. +_LT_LIBTOOL_TAGS
  1224. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1225. - # This has been around since 386BSD, at least. Likely further.
  1226. - if test -x /sbin/sysctl; then
  1227. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1228. - elif test -x /usr/sbin/sysctl; then
  1229. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1230. - else
  1231. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1232. - fi
  1233. - # And add a safety zone
  1234. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1235. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1236. - ;;
  1237. +# ### BEGIN LIBTOOL CONFIG
  1238. +_LT_LIBTOOL_CONFIG_VARS
  1239. +_LT_LIBTOOL_TAG_VARS
  1240. +# ### END LIBTOOL CONFIG
  1241. - interix*)
  1242. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1243. - lt_cv_sys_max_cmd_len=196608
  1244. - ;;
  1245. +_LT_EOF
  1246. - osf*)
  1247. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1248. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1249. - # nice to cause kernel panics so lets avoid the loop below.
  1250. - # First set a reasonable default.
  1251. - lt_cv_sys_max_cmd_len=16384
  1252. - #
  1253. - if test -x /sbin/sysconfig; then
  1254. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1255. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1256. - esac
  1257. - fi
  1258. - ;;
  1259. - sco3.2v5*)
  1260. - lt_cv_sys_max_cmd_len=102400
  1261. - ;;
  1262. - sysv5* | sco5v6* | sysv4.2uw2*)
  1263. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1264. - if test -n "$kargmax"; then
  1265. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1266. - else
  1267. - lt_cv_sys_max_cmd_len=32768
  1268. - fi
  1269. - ;;
  1270. - *)
  1271. - # If test is not a shell built-in, we'll probably end up computing a
  1272. - # maximum length that is only half of the actual maximum length, but
  1273. - # we can't tell.
  1274. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1275. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1276. - = "XX$teststring") >/dev/null 2>&1 &&
  1277. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1278. - lt_cv_sys_max_cmd_len=$new_result &&
  1279. - test $i != 17 # 1/2 MB should be enough
  1280. - do
  1281. - i=`expr $i + 1`
  1282. - teststring=$teststring$teststring
  1283. - done
  1284. - teststring=
  1285. - # Add a significant safety factor because C++ compilers can tack on massive
  1286. - # amounts of additional arguments before passing them to the linker.
  1287. - # It appears as though 1/2 is a usable value.
  1288. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1289. + case $host_os in
  1290. + aix3*)
  1291. + cat <<\_LT_EOF >> "$cfgfile"
  1292. +# AIX sometimes has problems with the GCC collect2 program. For some
  1293. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1294. +# vanish in a puff of smoke.
  1295. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1296. + COLLECT_NAMES=
  1297. + export COLLECT_NAMES
  1298. +fi
  1299. +_LT_EOF
  1300. ;;
  1301. esac
  1302. -])
  1303. -if test -n $lt_cv_sys_max_cmd_len ; then
  1304. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1305. -else
  1306. - AC_MSG_RESULT(none)
  1307. -fi
  1308. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1309. +
  1310. + _LT_PROG_LTMAIN
  1311. +
  1312. + # We use sed instead of cat because bash on DJGPP gets confused if
  1313. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1314. + # text mode, it properly converts lines to CR/LF. This bash problem
  1315. + # is reportedly fixed, but why not run on old versions too?
  1316. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1317. + || (rm -f "$cfgfile"; exit 1)
  1318. +
  1319. + _LT_PROG_XSI_SHELLFNS
  1320. +
  1321. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1322. + || (rm -f "$cfgfile"; exit 1)
  1323. +
  1324. + mv -f "$cfgfile" "$ofile" ||
  1325. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1326. + chmod +x "$ofile"
  1327. +],
  1328. +[cat <<_LT_EOF >> "$ofile"
  1329. +
  1330. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1331. +dnl in a comment (ie after a #).
  1332. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1333. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1334. +# ### END LIBTOOL TAG CONFIG: $1
  1335. +_LT_EOF
  1336. +])dnl /m4_if
  1337. +],
  1338. +[m4_if([$1], [], [
  1339. + PACKAGE='$PACKAGE'
  1340. + VERSION='$VERSION'
  1341. + TIMESTAMP='$TIMESTAMP'
  1342. + RM='$RM'
  1343. + ofile='$ofile'], [])
  1344. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1345. +])# _LT_CONFIG
  1346. -# _LT_AC_CHECK_DLFCN
  1347. +# LT_SUPPORTED_TAG(TAG)
  1348. +# ---------------------
  1349. +# Trace this macro to discover what tags are supported by the libtool
  1350. +# --tag option, using:
  1351. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1352. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1353. +
  1354. +
  1355. +# C support is built-in for now
  1356. +m4_define([_LT_LANG_C_enabled], [])
  1357. +m4_define([_LT_TAGS], [])
  1358. +
  1359. +
  1360. +# LT_LANG(LANG)
  1361. +# -------------
  1362. +# Enable libtool support for the given language if not already enabled.
  1363. +AC_DEFUN([LT_LANG],
  1364. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1365. +m4_case([$1],
  1366. + [C], [_LT_LANG(C)],
  1367. + [C++], [_LT_LANG(CXX)],
  1368. + [Java], [_LT_LANG(GCJ)],
  1369. + [Fortran 77], [_LT_LANG(F77)],
  1370. + [Fortran], [_LT_LANG(FC)],
  1371. + [Windows Resource], [_LT_LANG(RC)],
  1372. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1373. + [_LT_LANG($1)],
  1374. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1375. +])# LT_LANG
  1376. +
  1377. +
  1378. +# _LT_LANG(LANGNAME)
  1379. # ------------------
  1380. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1381. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1382. -])# _LT_AC_CHECK_DLFCN
  1383. +m4_defun([_LT_LANG],
  1384. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1385. + [LT_SUPPORTED_TAG([$1])dnl
  1386. + m4_append([_LT_TAGS], [$1 ])dnl
  1387. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1388. + _LT_LANG_$1_CONFIG($1)])dnl
  1389. +])# _LT_LANG
  1390. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1391. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1392. -# ---------------------------------------------------------------------
  1393. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1394. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1395. -if test "$cross_compiling" = yes; then :
  1396. - [$4]
  1397. -else
  1398. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1399. - lt_status=$lt_dlunknown
  1400. - cat > conftest.$ac_ext <<EOF
  1401. -[#line __oline__ "configure"
  1402. -#include "confdefs.h"
  1403. +# _LT_LANG_DEFAULT_CONFIG
  1404. +# -----------------------
  1405. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1406. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1407. + [LT_LANG(CXX)],
  1408. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1409. +
  1410. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1411. + [LT_LANG(F77)],
  1412. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1413. +
  1414. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1415. + [LT_LANG(FC)],
  1416. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1417. +
  1418. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1419. +dnl pulling things in needlessly.
  1420. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1421. + [LT_LANG(GCJ)],
  1422. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1423. + [LT_LANG(GCJ)],
  1424. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1425. + [LT_LANG(GCJ)],
  1426. + [m4_ifdef([AC_PROG_GCJ],
  1427. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1428. + m4_ifdef([A][M_PROG_GCJ],
  1429. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1430. + m4_ifdef([LT_PROG_GCJ],
  1431. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1432. +
  1433. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1434. + [LT_LANG(RC)],
  1435. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1436. +])# _LT_LANG_DEFAULT_CONFIG
  1437. +
  1438. +# Obsolete macros:
  1439. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1440. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1441. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1442. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1443. +dnl aclocal-1.4 backwards compatibility:
  1444. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1445. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1446. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1447. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1448. -#if HAVE_DLFCN_H
  1449. -#include <dlfcn.h>
  1450. -#endif
  1451. -#include <stdio.h>
  1452. +# _LT_TAG_COMPILER
  1453. +# ----------------
  1454. +m4_defun([_LT_TAG_COMPILER],
  1455. +[AC_REQUIRE([AC_PROG_CC])dnl
  1456. -#ifdef RTLD_GLOBAL
  1457. -# define LT_DLGLOBAL RTLD_GLOBAL
  1458. -#else
  1459. -# ifdef DL_GLOBAL
  1460. -# define LT_DLGLOBAL DL_GLOBAL
  1461. -# else
  1462. -# define LT_DLGLOBAL 0
  1463. -# endif
  1464. -#endif
  1465. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1466. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1467. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1468. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1469. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1470. - find out it does not work in some platform. */
  1471. -#ifndef LT_DLLAZY_OR_NOW
  1472. -# ifdef RTLD_LAZY
  1473. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1474. -# else
  1475. -# ifdef DL_LAZY
  1476. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1477. -# else
  1478. -# ifdef RTLD_NOW
  1479. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1480. -# else
  1481. -# ifdef DL_NOW
  1482. -# define LT_DLLAZY_OR_NOW DL_NOW
  1483. -# else
  1484. -# define LT_DLLAZY_OR_NOW 0
  1485. -# endif
  1486. -# endif
  1487. -# endif
  1488. -# endif
  1489. -#endif
  1490. +# If no C compiler was specified, use CC.
  1491. +LTCC=${LTCC-"$CC"}
  1492. -#ifdef __cplusplus
  1493. -extern "C" void exit (int);
  1494. -#endif
  1495. +# If no C compiler flags were specified, use CFLAGS.
  1496. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1497. -void fnord() { int i=42;}
  1498. -int main ()
  1499. -{
  1500. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1501. - int status = $lt_dlunknown;
  1502. +# Allow CC to be a program name with arguments.
  1503. +compiler=$CC
  1504. +])# _LT_TAG_COMPILER
  1505. - if (self)
  1506. - {
  1507. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1508. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1509. - /* dlclose (self); */
  1510. - }
  1511. - else
  1512. - puts (dlerror ());
  1513. - exit (status);
  1514. -}]
  1515. -EOF
  1516. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1517. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1518. - lt_status=$?
  1519. - case x$lt_status in
  1520. - x$lt_dlno_uscore) $1 ;;
  1521. - x$lt_dlneed_uscore) $2 ;;
  1522. - x$lt_dlunknown|x*) $3 ;;
  1523. - esac
  1524. - else :
  1525. - # compilation failed
  1526. - $3
  1527. - fi
  1528. -fi
  1529. -rm -fr conftest*
  1530. -])# _LT_AC_TRY_DLOPEN_SELF
  1531. +# _LT_COMPILER_BOILERPLATE
  1532. +# ------------------------
  1533. +# Check for compiler boilerplate output or warnings with
  1534. +# the simple compiler test code.
  1535. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1536. +[m4_require([_LT_DECL_SED])dnl
  1537. +ac_outfile=conftest.$ac_objext
  1538. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1539. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1540. +_lt_compiler_boilerplate=`cat conftest.err`
  1541. +$RM conftest*
  1542. +])# _LT_COMPILER_BOILERPLATE
  1543. -# AC_LIBTOOL_DLOPEN_SELF
  1544. +# _LT_LINKER_BOILERPLATE
  1545. # ----------------------
  1546. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1547. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1548. -if test "x$enable_dlopen" != xyes; then
  1549. - enable_dlopen=unknown
  1550. - enable_dlopen_self=unknown
  1551. - enable_dlopen_self_static=unknown
  1552. -else
  1553. - lt_cv_dlopen=no
  1554. - lt_cv_dlopen_libs=
  1555. +# Check for linker boilerplate output or warnings with
  1556. +# the simple link test code.
  1557. +m4_defun([_LT_LINKER_BOILERPLATE],
  1558. +[m4_require([_LT_DECL_SED])dnl
  1559. +ac_outfile=conftest.$ac_objext
  1560. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1561. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1562. +_lt_linker_boilerplate=`cat conftest.err`
  1563. +$RM -r conftest*
  1564. +])# _LT_LINKER_BOILERPLATE
  1565. +# _LT_REQUIRED_DARWIN_CHECKS
  1566. +# -------------------------
  1567. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1568. case $host_os in
  1569. - beos*)
  1570. - lt_cv_dlopen="load_add_on"
  1571. - lt_cv_dlopen_libs=
  1572. - lt_cv_dlopen_self=yes
  1573. - ;;
  1574. -
  1575. - mingw* | pw32*)
  1576. - lt_cv_dlopen="LoadLibrary"
  1577. - lt_cv_dlopen_libs=
  1578. - ;;
  1579. -
  1580. - cygwin*)
  1581. - lt_cv_dlopen="dlopen"
  1582. - lt_cv_dlopen_libs=
  1583. - ;;
  1584. -
  1585. - darwin*)
  1586. - # if libdl is installed we need to link against it
  1587. - AC_CHECK_LIB([dl], [dlopen],
  1588. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1589. - lt_cv_dlopen="dyld"
  1590. - lt_cv_dlopen_libs=
  1591. - lt_cv_dlopen_self=yes
  1592. + rhapsody* | darwin*)
  1593. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1594. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1595. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1596. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1597. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1598. + _LT_DECL([], [DSYMUTIL], [1],
  1599. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1600. + _LT_DECL([], [NMEDIT], [1],
  1601. + [Tool to change global to local symbols on Mac OS X])
  1602. + _LT_DECL([], [LIPO], [1],
  1603. + [Tool to manipulate fat objects and archives on Mac OS X])
  1604. + _LT_DECL([], [OTOOL], [1],
  1605. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1606. + _LT_DECL([], [OTOOL64], [1],
  1607. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1608. +
  1609. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1610. + [lt_cv_apple_cc_single_mod=no
  1611. + if test -z "${LT_MULTI_MODULE}"; then
  1612. + # By default we will add the -single_module flag. You can override
  1613. + # by either setting the environment variable LT_MULTI_MODULE
  1614. + # non-empty at configure time, or by adding -multi_module to the
  1615. + # link flags.
  1616. + rm -rf libconftest.dylib*
  1617. + echo "int foo(void){return 1;}" > conftest.c
  1618. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1619. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1620. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1621. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1622. + _lt_result=$?
  1623. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1624. + lt_cv_apple_cc_single_mod=yes
  1625. + else
  1626. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1627. + fi
  1628. + rm -rf libconftest.dylib*
  1629. + rm -f conftest.*
  1630. + fi])
  1631. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1632. + [lt_cv_ld_exported_symbols_list],
  1633. + [lt_cv_ld_exported_symbols_list=no
  1634. + save_LDFLAGS=$LDFLAGS
  1635. + echo "_main" > conftest.sym
  1636. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1637. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1638. + [lt_cv_ld_exported_symbols_list=yes],
  1639. + [lt_cv_ld_exported_symbols_list=no])
  1640. + LDFLAGS="$save_LDFLAGS"
  1641. ])
  1642. - ;;
  1643. -
  1644. - *)
  1645. - AC_CHECK_FUNC([shl_load],
  1646. - [lt_cv_dlopen="shl_load"],
  1647. - [AC_CHECK_LIB([dld], [shl_load],
  1648. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1649. - [AC_CHECK_FUNC([dlopen],
  1650. - [lt_cv_dlopen="dlopen"],
  1651. - [AC_CHECK_LIB([dl], [dlopen],
  1652. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1653. - [AC_CHECK_LIB([svld], [dlopen],
  1654. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1655. - [AC_CHECK_LIB([dld], [dld_link],
  1656. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1657. - ])
  1658. - ])
  1659. - ])
  1660. - ])
  1661. - ])
  1662. + case $host_os in
  1663. + rhapsody* | darwin1.[[012]])
  1664. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1665. + darwin1.*)
  1666. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1667. + darwin*) # darwin 5.x on
  1668. + # if running on 10.5 or later, the deployment target defaults
  1669. + # to the OS version, if on x86, and 10.4, the deployment
  1670. + # target defaults to 10.4. Don't you love it?
  1671. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1672. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1673. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1674. + 10.[[012]]*)
  1675. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1676. + 10.*)
  1677. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1678. + esac
  1679. + ;;
  1680. + esac
  1681. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1682. + _lt_dar_single_mod='$single_module'
  1683. + fi
  1684. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1685. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1686. + else
  1687. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1688. + fi
  1689. + if test "$DSYMUTIL" != ":"; then
  1690. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1691. + else
  1692. + _lt_dsymutil=
  1693. + fi
  1694. ;;
  1695. esac
  1696. +])
  1697. - if test "x$lt_cv_dlopen" != xno; then
  1698. - enable_dlopen=yes
  1699. +
  1700. +# _LT_DARWIN_LINKER_FEATURES
  1701. +# --------------------------
  1702. +# Checks for linker and compiler features on darwin
  1703. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1704. +[
  1705. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1706. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1707. + _LT_TAGVAR(hardcode_direct, $1)=no
  1708. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1709. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1710. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1711. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1712. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1713. + case $cc_basename in
  1714. + ifort*) _lt_dar_can_shared=yes ;;
  1715. + *) _lt_dar_can_shared=$GCC ;;
  1716. + esac
  1717. + if test "$_lt_dar_can_shared" = "yes"; then
  1718. + output_verbose_link_cmd=echo
  1719. + _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}"
  1720. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1721. + _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}"
  1722. + _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}"
  1723. + m4_if([$1], [CXX],
  1724. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1725. + _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}"
  1726. + _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}"
  1727. + fi
  1728. +],[])
  1729. else
  1730. - enable_dlopen=no
  1731. + _LT_TAGVAR(ld_shlibs, $1)=no
  1732. fi
  1733. +])
  1734. - case $lt_cv_dlopen in
  1735. - dlopen)
  1736. - save_CPPFLAGS="$CPPFLAGS"
  1737. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1738. -
  1739. - save_LDFLAGS="$LDFLAGS"
  1740. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1741. +# _LT_SYS_MODULE_PATH_AIX
  1742. +# -----------------------
  1743. +# Links a minimal program and checks the executable
  1744. +# for the system default hardcoded library path. In most cases,
  1745. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1746. +# the location of the communication and MPI libs are included too.
  1747. +# If we don't find anything, use the default library path according
  1748. +# to the aix ld manual.
  1749. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1750. +[m4_require([_LT_DECL_SED])dnl
  1751. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1752. +lt_aix_libpath_sed='
  1753. + /Import File Strings/,/^$/ {
  1754. + /^0/ {
  1755. + s/^0 *\(.*\)$/\1/
  1756. + p
  1757. + }
  1758. + }'
  1759. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1760. +# Check for a 64-bit object if we didn't find anything.
  1761. +if test -z "$aix_libpath"; then
  1762. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1763. +fi],[])
  1764. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1765. +])# _LT_SYS_MODULE_PATH_AIX
  1766. - save_LIBS="$LIBS"
  1767. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1768. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1769. - lt_cv_dlopen_self, [dnl
  1770. - _LT_AC_TRY_DLOPEN_SELF(
  1771. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1772. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1773. - ])
  1774. +# _LT_SHELL_INIT(ARG)
  1775. +# -------------------
  1776. +m4_define([_LT_SHELL_INIT],
  1777. +[ifdef([AC_DIVERSION_NOTICE],
  1778. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1779. + [AC_DIVERT_PUSH(NOTICE)])
  1780. +$1
  1781. +AC_DIVERT_POP
  1782. +])# _LT_SHELL_INIT
  1783. - if test "x$lt_cv_dlopen_self" = xyes; then
  1784. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1785. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1786. - lt_cv_dlopen_self_static, [dnl
  1787. - _LT_AC_TRY_DLOPEN_SELF(
  1788. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1789. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1790. - ])
  1791. - fi
  1792. - CPPFLAGS="$save_CPPFLAGS"
  1793. - LDFLAGS="$save_LDFLAGS"
  1794. - LIBS="$save_LIBS"
  1795. - ;;
  1796. - esac
  1797. +# _LT_PROG_ECHO_BACKSLASH
  1798. +# -----------------------
  1799. +# Add some code to the start of the generated configure script which
  1800. +# will find an echo command which doesn't interpret backslashes.
  1801. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1802. +[_LT_SHELL_INIT([
  1803. +# Check that we are running under the correct shell.
  1804. +SHELL=${CONFIG_SHELL-/bin/sh}
  1805. - case $lt_cv_dlopen_self in
  1806. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1807. - *) enable_dlopen_self=unknown ;;
  1808. - esac
  1809. +case X$lt_ECHO in
  1810. +X*--fallback-echo)
  1811. + # Remove one level of quotation (which was required for Make).
  1812. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1813. + ;;
  1814. +esac
  1815. - case $lt_cv_dlopen_self_static in
  1816. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1817. - *) enable_dlopen_self_static=unknown ;;
  1818. - esac
  1819. +ECHO=${lt_ECHO-echo}
  1820. +if test "X[$]1" = X--no-reexec; then
  1821. + # Discard the --no-reexec flag, and continue.
  1822. + shift
  1823. +elif test "X[$]1" = X--fallback-echo; then
  1824. + # Avoid inline document here, it may be left over
  1825. + :
  1826. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1827. + # Yippee, $ECHO works!
  1828. + :
  1829. +else
  1830. + # Restart under the correct shell.
  1831. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1832. fi
  1833. -])# AC_LIBTOOL_DLOPEN_SELF
  1834. +if test "X[$]1" = X--fallback-echo; then
  1835. + # used as fallback echo
  1836. + shift
  1837. + cat <<_LT_EOF
  1838. +[$]*
  1839. +_LT_EOF
  1840. + exit 0
  1841. +fi
  1842. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1843. -# ---------------------------------
  1844. -# Check to see if options -c and -o are simultaneously supported by compiler
  1845. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1846. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1847. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1848. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1849. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1850. - $rm -r conftest 2>/dev/null
  1851. - mkdir conftest
  1852. - cd conftest
  1853. - mkdir out
  1854. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1855. -
  1856. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1857. - # Insert the option either (1) after the last *FLAGS variable, or
  1858. - # (2) before a word containing "conftest.", or (3) at the end.
  1859. - # Note that $ac_compile itself does not contain backslashes and begins
  1860. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1861. - lt_compile=`echo "$ac_compile" | $SED \
  1862. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1863. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1864. - -e 's:$: $lt_compiler_flag:'`
  1865. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1866. - (eval "$lt_compile" 2>out/conftest.err)
  1867. - ac_status=$?
  1868. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1869. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1870. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1871. - then
  1872. - # The compiler can only warn and ignore the option if not recognized
  1873. - # So say no if there are warnings
  1874. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1875. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1876. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1877. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1878. - fi
  1879. - fi
  1880. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1881. - $rm conftest*
  1882. - # SGI C++ compiler will create directory out/ii_files/ for
  1883. - # template instantiation
  1884. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1885. - $rm out/* && rmdir out
  1886. - cd ..
  1887. - rmdir conftest
  1888. - $rm conftest*
  1889. -])
  1890. -])# AC_LIBTOOL_PROG_CC_C_O
  1891. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1892. +# if CDPATH is set.
  1893. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1894. +if test -z "$lt_ECHO"; then
  1895. + if test "X${echo_test_string+set}" != Xset; then
  1896. + # find a string as large as possible, as long as the shell can cope with it
  1897. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1898. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1899. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1900. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1901. + then
  1902. + break
  1903. + fi
  1904. + done
  1905. + fi
  1906. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1907. -# -----------------------------------------
  1908. -# Check to see if we can do hard links to lock some files if needed
  1909. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1910. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1911. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1912. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1913. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1914. + :
  1915. + else
  1916. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1917. + # backslashes. This makes it impossible to quote backslashes using
  1918. + # echo "$something" | sed 's/\\/\\\\/g'
  1919. + #
  1920. + # So, first we look for a working echo in the user's PATH.
  1921. -hard_links="nottested"
  1922. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1923. - # do not overwrite the value of need_locks provided by the user
  1924. - AC_MSG_CHECKING([if we can lock with hard links])
  1925. - hard_links=yes
  1926. - $rm conftest*
  1927. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1928. - touch conftest.a
  1929. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1930. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1931. - AC_MSG_RESULT([$hard_links])
  1932. - if test "$hard_links" = no; then
  1933. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1934. - need_locks=warn
  1935. - fi
  1936. -else
  1937. - need_locks=no
  1938. -fi
  1939. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1940. -
  1941. -
  1942. -# AC_LIBTOOL_OBJDIR
  1943. -# -----------------
  1944. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1945. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1946. -[rm -f .libs 2>/dev/null
  1947. -mkdir .libs 2>/dev/null
  1948. -if test -d .libs; then
  1949. - lt_cv_objdir=.libs
  1950. -else
  1951. - # MS-DOS does not allow filenames that begin with a dot.
  1952. - lt_cv_objdir=_libs
  1953. -fi
  1954. -rmdir .libs 2>/dev/null])
  1955. -objdir=$lt_cv_objdir
  1956. -])# AC_LIBTOOL_OBJDIR
  1957. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1958. + for dir in $PATH /usr/ucb; do
  1959. + IFS="$lt_save_ifs"
  1960. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1961. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1962. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1963. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1964. + ECHO="$dir/echo"
  1965. + break
  1966. + fi
  1967. + done
  1968. + IFS="$lt_save_ifs"
  1969. + if test "X$ECHO" = Xecho; then
  1970. + # We didn't find a better echo, so look for alternatives.
  1971. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1972. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1973. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1974. + # This shell has a builtin print -r that does the trick.
  1975. + ECHO='print -r'
  1976. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1977. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1978. + # If we have ksh, try running configure again with it.
  1979. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1980. + export ORIGINAL_CONFIG_SHELL
  1981. + CONFIG_SHELL=/bin/ksh
  1982. + export CONFIG_SHELL
  1983. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1984. + else
  1985. + # Try using printf.
  1986. + ECHO='printf %s\n'
  1987. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1988. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1989. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1990. + # Cool, printf works
  1991. + :
  1992. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1993. + test "X$echo_testing_string" = 'X\t' &&
  1994. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1995. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1996. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1997. + export CONFIG_SHELL
  1998. + SHELL="$CONFIG_SHELL"
  1999. + export SHELL
  2000. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2001. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2002. + test "X$echo_testing_string" = 'X\t' &&
  2003. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2004. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2005. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2006. + else
  2007. + # maybe with a smaller string...
  2008. + prev=:
  2009. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2010. -# ----------------------------------------------
  2011. -# Check hardcoding attributes.
  2012. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2013. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  2014. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2015. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2016. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2017. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2018. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2019. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2020. + then
  2021. + break
  2022. + fi
  2023. + prev="$cmd"
  2024. + done
  2025. - # We can hardcode non-existant directories.
  2026. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2027. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2028. - # have to relink, otherwise we might link with an installed library
  2029. - # when we should be linking with a yet-to-be-installed one
  2030. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2031. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2032. - # Linking always hardcodes the temporary library directory.
  2033. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2034. - else
  2035. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2036. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2037. + if test "$prev" != 'sed 50q "[$]0"'; then
  2038. + echo_test_string=`eval $prev`
  2039. + export echo_test_string
  2040. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2041. + else
  2042. + # Oops. We lost completely, so just stick with echo.
  2043. + ECHO=echo
  2044. + fi
  2045. + fi
  2046. + fi
  2047. + fi
  2048. fi
  2049. -else
  2050. - # We cannot hardcode anything, or else we can only hardcode existing
  2051. - # directories.
  2052. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2053. fi
  2054. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2055. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2056. - # Fast installation is not supported
  2057. - enable_fast_install=no
  2058. -elif test "$shlibpath_overrides_runpath" = yes ||
  2059. - test "$enable_shared" = no; then
  2060. - # Fast installation is not necessary
  2061. - enable_fast_install=needless
  2062. +# Copy echo and quote the copy suitably for passing to libtool from
  2063. +# the Makefile, instead of quoting the original, which is used later.
  2064. +lt_ECHO=$ECHO
  2065. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2066. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2067. fi
  2068. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2069. +AC_SUBST(lt_ECHO)
  2070. +])
  2071. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2072. +_LT_DECL([], [ECHO], [1],
  2073. + [An echo program that does not interpret backslashes])
  2074. +])# _LT_PROG_ECHO_BACKSLASH
  2075. -# AC_LIBTOOL_SYS_LIB_STRIP
  2076. -# ------------------------
  2077. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2078. -[striplib=
  2079. -old_striplib=
  2080. -AC_MSG_CHECKING([whether stripping libraries is possible])
  2081. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2082. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2083. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2084. - AC_MSG_RESULT([yes])
  2085. -else
  2086. -# FIXME - insert some real tests, host_os isn't really good enough
  2087. - case $host_os in
  2088. - darwin*)
  2089. - if test -n "$STRIP" ; then
  2090. - striplib="$STRIP -x"
  2091. - AC_MSG_RESULT([yes])
  2092. - else
  2093. - AC_MSG_RESULT([no])
  2094. -fi
  2095. - ;;
  2096. - *)
  2097. - AC_MSG_RESULT([no])
  2098. - ;;
  2099. - esac
  2100. -fi
  2101. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2102. +# _LT_ENABLE_LOCK
  2103. +# ---------------
  2104. +m4_defun([_LT_ENABLE_LOCK],
  2105. +[AC_ARG_ENABLE([libtool-lock],
  2106. + [AS_HELP_STRING([--disable-libtool-lock],
  2107. + [avoid locking (might break parallel builds)])])
  2108. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2109. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2110. -# -----------------------------
  2111. -# PORTME Fill in your ld.so characteristics
  2112. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2113. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2114. -library_names_spec=
  2115. -libname_spec='lib$name'
  2116. -soname_spec=
  2117. -shrext_cmds=".so"
  2118. -postinstall_cmds=
  2119. -postuninstall_cmds=
  2120. -finish_cmds=
  2121. -finish_eval=
  2122. -shlibpath_var=
  2123. -shlibpath_overrides_runpath=unknown
  2124. -version_type=none
  2125. -dynamic_linker="$host_os ld.so"
  2126. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2127. -if test "$GCC" = yes; then
  2128. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2129. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2130. - # if the path contains ";" then we assume it to be the separator
  2131. - # otherwise default to the standard path separator (i.e. ":") - it is
  2132. - # assumed that no part of a normal pathname contains ";" but that should
  2133. - # okay in the real world where ";" in dirpaths is itself problematic.
  2134. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2135. - else
  2136. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2137. +# Some flags need to be propagated to the compiler or linker for good
  2138. +# libtool support.
  2139. +case $host in
  2140. +ia64-*-hpux*)
  2141. + # Find out which ABI we are using.
  2142. + echo 'int i;' > conftest.$ac_ext
  2143. + if AC_TRY_EVAL(ac_compile); then
  2144. + case `/usr/bin/file conftest.$ac_objext` in
  2145. + *ELF-32*)
  2146. + HPUX_IA64_MODE="32"
  2147. + ;;
  2148. + *ELF-64*)
  2149. + HPUX_IA64_MODE="64"
  2150. + ;;
  2151. + esac
  2152. fi
  2153. -else
  2154. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2155. -fi
  2156. -need_lib_prefix=unknown
  2157. -hardcode_into_libs=no
  2158. -
  2159. -# when you set need_version to no, make sure it does not cause -set_version
  2160. -# flags to be left without arguments
  2161. -need_version=unknown
  2162. -
  2163. -case $host_os in
  2164. -aix3*)
  2165. - version_type=linux
  2166. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2167. - shlibpath_var=LIBPATH
  2168. -
  2169. - # AIX 3 has no versioning support, so we append a major version to the name.
  2170. - soname_spec='${libname}${release}${shared_ext}$major'
  2171. + rm -rf conftest*
  2172. ;;
  2173. -
  2174. -aix4* | aix5*)
  2175. - version_type=linux
  2176. - need_lib_prefix=no
  2177. - need_version=no
  2178. - hardcode_into_libs=yes
  2179. - if test "$host_cpu" = ia64; then
  2180. - # AIX 5 supports IA64
  2181. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2182. - shlibpath_var=LD_LIBRARY_PATH
  2183. - else
  2184. - # With GCC up to 2.95.x, collect2 would create an import file
  2185. - # for dependence libraries. The import file would start with
  2186. - # the line `#! .'. This would cause the generated library to
  2187. - # depend on `.', always an invalid library. This was fixed in
  2188. - # development snapshots of GCC prior to 3.0.
  2189. - case $host_os in
  2190. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2191. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2192. - echo ' yes '
  2193. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2194. - :
  2195. - else
  2196. - can_build_shared=no
  2197. - fi
  2198. - ;;
  2199. - esac
  2200. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2201. - # soname into executable. Probably we can add versioning support to
  2202. - # collect2, so additional links can be useful in future.
  2203. - if test "$aix_use_runtimelinking" = yes; then
  2204. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2205. - # instead of lib<name>.a to let people know that these are not
  2206. - # typical AIX shared libraries.
  2207. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2208. +*-*-irix6*)
  2209. + # Find out which ABI we are using.
  2210. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2211. + if AC_TRY_EVAL(ac_compile); then
  2212. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2213. + case `/usr/bin/file conftest.$ac_objext` in
  2214. + *32-bit*)
  2215. + LD="${LD-ld} -melf32bsmip"
  2216. + ;;
  2217. + *N32*)
  2218. + LD="${LD-ld} -melf32bmipn32"
  2219. + ;;
  2220. + *64-bit*)
  2221. + LD="${LD-ld} -melf64bmip"
  2222. + ;;
  2223. + esac
  2224. else
  2225. - # We preserve .a as extension for shared libraries through AIX4.2
  2226. - # and later when we are not doing run time linking.
  2227. - library_names_spec='${libname}${release}.a $libname.a'
  2228. - soname_spec='${libname}${release}${shared_ext}$major'
  2229. + case `/usr/bin/file conftest.$ac_objext` in
  2230. + *32-bit*)
  2231. + LD="${LD-ld} -32"
  2232. + ;;
  2233. + *N32*)
  2234. + LD="${LD-ld} -n32"
  2235. + ;;
  2236. + *64-bit*)
  2237. + LD="${LD-ld} -64"
  2238. + ;;
  2239. + esac
  2240. fi
  2241. - shlibpath_var=LIBPATH
  2242. fi
  2243. + rm -rf conftest*
  2244. ;;
  2245. -amigaos*)
  2246. - library_names_spec='$libname.ixlibrary $libname.a'
  2247. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2248. - 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'
  2249. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2250. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2251. + # Find out which ABI we are using.
  2252. + echo 'int i;' > conftest.$ac_ext
  2253. + if AC_TRY_EVAL(ac_compile); then
  2254. + case `/usr/bin/file conftest.o` in
  2255. + *32-bit*)
  2256. + case $host in
  2257. + x86_64-*kfreebsd*-gnu)
  2258. + LD="${LD-ld} -m elf_i386_fbsd"
  2259. + ;;
  2260. + x86_64-*linux*)
  2261. + LD="${LD-ld} -m elf_i386"
  2262. + ;;
  2263. + ppc64-*linux*|powerpc64-*linux*)
  2264. + LD="${LD-ld} -m elf32ppclinux"
  2265. + ;;
  2266. + s390x-*linux*)
  2267. + LD="${LD-ld} -m elf_s390"
  2268. + ;;
  2269. + sparc64-*linux*)
  2270. + LD="${LD-ld} -m elf32_sparc"
  2271. + ;;
  2272. + esac
  2273. + ;;
  2274. + *64-bit*)
  2275. + case $host in
  2276. + x86_64-*kfreebsd*-gnu)
  2277. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2278. + ;;
  2279. + x86_64-*linux*)
  2280. + LD="${LD-ld} -m elf_x86_64"
  2281. + ;;
  2282. + ppc*-*linux*|powerpc*-*linux*)
  2283. + LD="${LD-ld} -m elf64ppc"
  2284. + ;;
  2285. + s390*-*linux*|s390*-*tpf*)
  2286. + LD="${LD-ld} -m elf64_s390"
  2287. + ;;
  2288. + sparc*-*linux*)
  2289. + LD="${LD-ld} -m elf64_sparc"
  2290. + ;;
  2291. + esac
  2292. + ;;
  2293. + esac
  2294. + fi
  2295. + rm -rf conftest*
  2296. ;;
  2297. -beos*)
  2298. - library_names_spec='${libname}${shared_ext}'
  2299. - dynamic_linker="$host_os ld.so"
  2300. - shlibpath_var=LIBRARY_PATH
  2301. +*-*-sco3.2v5*)
  2302. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2303. + SAVE_CFLAGS="$CFLAGS"
  2304. + CFLAGS="$CFLAGS -belf"
  2305. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2306. + [AC_LANG_PUSH(C)
  2307. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2308. + AC_LANG_POP])
  2309. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2310. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2311. + CFLAGS="$SAVE_CFLAGS"
  2312. + fi
  2313. ;;
  2314. -
  2315. -bsdi[[45]]*)
  2316. - version_type=linux
  2317. - need_version=no
  2318. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2319. - soname_spec='${libname}${release}${shared_ext}$major'
  2320. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2321. - shlibpath_var=LD_LIBRARY_PATH
  2322. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2323. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2324. - # the default ld.so.conf also contains /usr/contrib/lib and
  2325. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2326. - # libtool to hard-code these into programs
  2327. +sparc*-*solaris*)
  2328. + # Find out which ABI we are using.
  2329. + echo 'int i;' > conftest.$ac_ext
  2330. + if AC_TRY_EVAL(ac_compile); then
  2331. + case `/usr/bin/file conftest.o` in
  2332. + *64-bit*)
  2333. + case $lt_cv_prog_gnu_ld in
  2334. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2335. + *)
  2336. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2337. + LD="${LD-ld} -64"
  2338. + fi
  2339. + ;;
  2340. + esac
  2341. + ;;
  2342. + esac
  2343. + fi
  2344. + rm -rf conftest*
  2345. ;;
  2346. +esac
  2347. -cygwin* | mingw* | pw32*)
  2348. - version_type=windows
  2349. - shrext_cmds=".dll"
  2350. - need_version=no
  2351. - need_lib_prefix=no
  2352. +need_locks="$enable_libtool_lock"
  2353. +])# _LT_ENABLE_LOCK
  2354. - case $GCC,$host_os in
  2355. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2356. - library_names_spec='$libname.dll.a'
  2357. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2358. - postinstall_cmds='base_file=`basename \${file}`~
  2359. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2360. - dldir=$destdir/`dirname \$dlpath`~
  2361. - test -d \$dldir || mkdir -p \$dldir~
  2362. - $install_prog $dir/$dlname \$dldir/$dlname~
  2363. - chmod a+x \$dldir/$dlname'
  2364. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2365. - dlpath=$dir/\$dldll~
  2366. - $rm \$dlpath'
  2367. - shlibpath_overrides_runpath=yes
  2368. - case $host_os in
  2369. - cygwin*)
  2370. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2371. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2372. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2373. - ;;
  2374. - mingw*)
  2375. - # MinGW DLLs use traditional 'lib' prefix
  2376. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2377. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2378. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2379. - # It is most probably a Windows format PATH printed by
  2380. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2381. - # path with ; separators, and with drive letters. We can handle the
  2382. - # drive letters (cygwin fileutils understands them), so leave them,
  2383. - # especially as we might pass files found there to a mingw objdump,
  2384. - # which wouldn't understand a cygwinified path. Ahh.
  2385. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2386. - else
  2387. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2388. - fi
  2389. - ;;
  2390. - pw32*)
  2391. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2392. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2393. - ;;
  2394. - esac
  2395. - ;;
  2396. +# _LT_CMD_OLD_ARCHIVE
  2397. +# -------------------
  2398. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2399. +[AC_CHECK_TOOL(AR, ar, false)
  2400. +test -z "$AR" && AR=ar
  2401. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2402. +_LT_DECL([], [AR], [1], [The archiver])
  2403. +_LT_DECL([], [AR_FLAGS], [1])
  2404. +
  2405. +AC_CHECK_TOOL(STRIP, strip, :)
  2406. +test -z "$STRIP" && STRIP=:
  2407. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2408. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2409. +test -z "$RANLIB" && RANLIB=:
  2410. +_LT_DECL([], [RANLIB], [1],
  2411. + [Commands used to install an old-style archive])
  2412. +
  2413. +# Determine commands to create old-style static archives.
  2414. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2415. +old_postinstall_cmds='chmod 644 $oldlib'
  2416. +old_postuninstall_cmds=
  2417. +
  2418. +if test -n "$RANLIB"; then
  2419. + case $host_os in
  2420. + openbsd*)
  2421. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2422. + ;;
  2423. *)
  2424. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2425. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2426. ;;
  2427. esac
  2428. - dynamic_linker='Win32 ld.exe'
  2429. - # FIXME: first we should search . and the directory the executable is in
  2430. - shlibpath_var=PATH
  2431. - ;;
  2432. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2433. +fi
  2434. +_LT_DECL([], [old_postinstall_cmds], [2])
  2435. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2436. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2437. + [Commands used to build an old-style archive])
  2438. +])# _LT_CMD_OLD_ARCHIVE
  2439. -darwin* | rhapsody*)
  2440. - dynamic_linker="$host_os dyld"
  2441. - version_type=darwin
  2442. - need_lib_prefix=no
  2443. - need_version=no
  2444. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2445. - soname_spec='${libname}${release}${major}$shared_ext'
  2446. - shlibpath_overrides_runpath=yes
  2447. - shlibpath_var=DYLD_LIBRARY_PATH
  2448. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2449. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2450. - if test "$GCC" = yes; then
  2451. - 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"`
  2452. - else
  2453. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2454. - fi
  2455. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2456. - ;;
  2457. -dgux*)
  2458. - version_type=linux
  2459. - need_lib_prefix=no
  2460. - need_version=no
  2461. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2462. - soname_spec='${libname}${release}${shared_ext}$major'
  2463. - shlibpath_var=LD_LIBRARY_PATH
  2464. - ;;
  2465. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2466. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2467. +# ----------------------------------------------------------------
  2468. +# Check whether the given compiler option works
  2469. +AC_DEFUN([_LT_COMPILER_OPTION],
  2470. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2471. +m4_require([_LT_DECL_SED])dnl
  2472. +AC_CACHE_CHECK([$1], [$2],
  2473. + [$2=no
  2474. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2475. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2476. + lt_compiler_flag="$3"
  2477. + # Insert the option either (1) after the last *FLAGS variable, or
  2478. + # (2) before a word containing "conftest.", or (3) at the end.
  2479. + # Note that $ac_compile itself does not contain backslashes and begins
  2480. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2481. + # The option is referenced via a variable to avoid confusing sed.
  2482. + lt_compile=`echo "$ac_compile" | $SED \
  2483. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2484. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2485. + -e 's:$: $lt_compiler_flag:'`
  2486. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2487. + (eval "$lt_compile" 2>conftest.err)
  2488. + ac_status=$?
  2489. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2490. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2491. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2492. + # The compiler can only warn and ignore the option if not recognized
  2493. + # So say no if there are warnings other than the usual output.
  2494. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2495. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2496. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2497. + $2=yes
  2498. + fi
  2499. + fi
  2500. + $RM conftest*
  2501. +])
  2502. -freebsd1*)
  2503. - dynamic_linker=no
  2504. - ;;
  2505. +if test x"[$]$2" = xyes; then
  2506. + m4_if([$5], , :, [$5])
  2507. +else
  2508. + m4_if([$6], , :, [$6])
  2509. +fi
  2510. +])# _LT_COMPILER_OPTION
  2511. -freebsd* | dragonfly*)
  2512. - # DragonFly does not have aout. When/if they implement a new
  2513. - # versioning mechanism, adjust this.
  2514. - if test -x /usr/bin/objformat; then
  2515. - objformat=`/usr/bin/objformat`
  2516. - else
  2517. - case $host_os in
  2518. - freebsd[[123]]*) objformat=aout ;;
  2519. - *) objformat=elf ;;
  2520. - esac
  2521. - fi
  2522. - version_type=freebsd-$objformat
  2523. - case $version_type in
  2524. - freebsd-elf*)
  2525. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2526. - need_version=no
  2527. - need_lib_prefix=no
  2528. - ;;
  2529. - freebsd-*)
  2530. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2531. - need_version=yes
  2532. - ;;
  2533. - esac
  2534. - shlibpath_var=LD_LIBRARY_PATH
  2535. - case $host_os in
  2536. - freebsd2*)
  2537. - shlibpath_overrides_runpath=yes
  2538. - ;;
  2539. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2540. - shlibpath_overrides_runpath=yes
  2541. - hardcode_into_libs=yes
  2542. +# Old name:
  2543. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2544. +dnl aclocal-1.4 backwards compatibility:
  2545. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2546. +
  2547. +
  2548. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2549. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2550. +# ----------------------------------------------------
  2551. +# Check whether the given linker option works
  2552. +AC_DEFUN([_LT_LINKER_OPTION],
  2553. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2554. +m4_require([_LT_DECL_SED])dnl
  2555. +AC_CACHE_CHECK([$1], [$2],
  2556. + [$2=no
  2557. + save_LDFLAGS="$LDFLAGS"
  2558. + LDFLAGS="$LDFLAGS $3"
  2559. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2560. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2561. + # The linker can only warn and ignore the option if not recognized
  2562. + # So say no if there are warnings
  2563. + if test -s conftest.err; then
  2564. + # Append any errors to the config.log.
  2565. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2566. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2567. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2568. + if diff conftest.exp conftest.er2 >/dev/null; then
  2569. + $2=yes
  2570. + fi
  2571. + else
  2572. + $2=yes
  2573. + fi
  2574. + fi
  2575. + $RM -r conftest*
  2576. + LDFLAGS="$save_LDFLAGS"
  2577. +])
  2578. +
  2579. +if test x"[$]$2" = xyes; then
  2580. + m4_if([$4], , :, [$4])
  2581. +else
  2582. + m4_if([$5], , :, [$5])
  2583. +fi
  2584. +])# _LT_LINKER_OPTION
  2585. +
  2586. +# Old name:
  2587. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2588. +dnl aclocal-1.4 backwards compatibility:
  2589. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2590. +
  2591. +
  2592. +# LT_CMD_MAX_LEN
  2593. +#---------------
  2594. +AC_DEFUN([LT_CMD_MAX_LEN],
  2595. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2596. +# find the maximum length of command line arguments
  2597. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2598. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2599. + i=0
  2600. + teststring="ABCD"
  2601. +
  2602. + case $build_os in
  2603. + msdosdjgpp*)
  2604. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2605. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2606. + # during glob expansion). Even if it were fixed, the result of this
  2607. + # check would be larger than it should be.
  2608. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2609. ;;
  2610. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2611. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2612. - shlibpath_overrides_runpath=no
  2613. - hardcode_into_libs=yes
  2614. +
  2615. + gnu*)
  2616. + # Under GNU Hurd, this test is not required because there is
  2617. + # no limit to the length of command line arguments.
  2618. + # Libtool will interpret -1 as no limit whatsoever
  2619. + lt_cv_sys_max_cmd_len=-1;
  2620. ;;
  2621. - freebsd*) # from 4.6 on
  2622. - shlibpath_overrides_runpath=yes
  2623. - hardcode_into_libs=yes
  2624. +
  2625. + cygwin* | mingw* | cegcc*)
  2626. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2627. + # about 5 minutes as the teststring grows exponentially.
  2628. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2629. + # you end up with a "frozen" computer, even though with patience
  2630. + # the test eventually succeeds (with a max line length of 256k).
  2631. + # Instead, let's just punt: use the minimum linelength reported by
  2632. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2633. + lt_cv_sys_max_cmd_len=8192;
  2634. ;;
  2635. - esac
  2636. - ;;
  2637. -gnu*)
  2638. - version_type=linux
  2639. - need_lib_prefix=no
  2640. - need_version=no
  2641. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2642. - soname_spec='${libname}${release}${shared_ext}$major'
  2643. - shlibpath_var=LD_LIBRARY_PATH
  2644. - hardcode_into_libs=yes
  2645. - ;;
  2646. + amigaos*)
  2647. + # On AmigaOS with pdksh, this test takes hours, literally.
  2648. + # So we just punt and use a minimum line length of 8192.
  2649. + lt_cv_sys_max_cmd_len=8192;
  2650. + ;;
  2651. -hpux9* | hpux10* | hpux11*)
  2652. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2653. - # link against other versions.
  2654. - version_type=sunos
  2655. - need_lib_prefix=no
  2656. - need_version=no
  2657. - case $host_cpu in
  2658. - ia64*)
  2659. - shrext_cmds='.so'
  2660. - hardcode_into_libs=yes
  2661. - dynamic_linker="$host_os dld.so"
  2662. - shlibpath_var=LD_LIBRARY_PATH
  2663. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2664. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2665. - soname_spec='${libname}${release}${shared_ext}$major'
  2666. - if test "X$HPUX_IA64_MODE" = X32; then
  2667. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2668. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2669. + # This has been around since 386BSD, at least. Likely further.
  2670. + if test -x /sbin/sysctl; then
  2671. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2672. + elif test -x /usr/sbin/sysctl; then
  2673. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2674. else
  2675. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2676. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2677. fi
  2678. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2679. + # And add a safety zone
  2680. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2681. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2682. ;;
  2683. - hppa*64*)
  2684. - shrext_cmds='.sl'
  2685. - hardcode_into_libs=yes
  2686. - dynamic_linker="$host_os dld.sl"
  2687. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2688. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2689. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2690. - soname_spec='${libname}${release}${shared_ext}$major'
  2691. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2692. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2693. - ;;
  2694. - *)
  2695. - shrext_cmds='.sl'
  2696. - dynamic_linker="$host_os dld.sl"
  2697. - shlibpath_var=SHLIB_PATH
  2698. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2699. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2700. - soname_spec='${libname}${release}${shared_ext}$major'
  2701. - ;;
  2702. - esac
  2703. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2704. - postinstall_cmds='chmod 555 $lib'
  2705. - ;;
  2706. -interix3*)
  2707. - version_type=linux
  2708. - need_lib_prefix=no
  2709. - need_version=no
  2710. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2711. - soname_spec='${libname}${release}${shared_ext}$major'
  2712. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2713. - shlibpath_var=LD_LIBRARY_PATH
  2714. - shlibpath_overrides_runpath=no
  2715. - hardcode_into_libs=yes
  2716. - ;;
  2717. + interix*)
  2718. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2719. + lt_cv_sys_max_cmd_len=196608
  2720. + ;;
  2721. -irix5* | irix6* | nonstopux*)
  2722. - case $host_os in
  2723. - nonstopux*) version_type=nonstopux ;;
  2724. - *)
  2725. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2726. - version_type=linux
  2727. - else
  2728. - version_type=irix
  2729. - fi ;;
  2730. - esac
  2731. - need_lib_prefix=no
  2732. - need_version=no
  2733. - soname_spec='${libname}${release}${shared_ext}$major'
  2734. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2735. - case $host_os in
  2736. - irix5* | nonstopux*)
  2737. - libsuff= shlibsuff=
  2738. + osf*)
  2739. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2740. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2741. + # nice to cause kernel panics so lets avoid the loop below.
  2742. + # First set a reasonable default.
  2743. + lt_cv_sys_max_cmd_len=16384
  2744. + #
  2745. + if test -x /sbin/sysconfig; then
  2746. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2747. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2748. + esac
  2749. + fi
  2750. + ;;
  2751. + sco3.2v5*)
  2752. + lt_cv_sys_max_cmd_len=102400
  2753. + ;;
  2754. + sysv5* | sco5v6* | sysv4.2uw2*)
  2755. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2756. + if test -n "$kargmax"; then
  2757. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2758. + else
  2759. + lt_cv_sys_max_cmd_len=32768
  2760. + fi
  2761. ;;
  2762. *)
  2763. - case $LD in # libtool.m4 will add one of these switches to LD
  2764. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2765. - libsuff= shlibsuff= libmagic=32-bit;;
  2766. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2767. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2768. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2769. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2770. - *) libsuff= shlibsuff= libmagic=never-match;;
  2771. - esac
  2772. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2773. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2774. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2775. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2776. + else
  2777. + # Make teststring a little bigger before we do anything with it.
  2778. + # a 1K string should be a reasonable start.
  2779. + for i in 1 2 3 4 5 6 7 8 ; do
  2780. + teststring=$teststring$teststring
  2781. + done
  2782. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2783. + # If test is not a shell built-in, we'll probably end up computing a
  2784. + # maximum length that is only half of the actual maximum length, but
  2785. + # we can't tell.
  2786. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2787. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2788. + test $i != 17 # 1/2 MB should be enough
  2789. + do
  2790. + i=`expr $i + 1`
  2791. + teststring=$teststring$teststring
  2792. + done
  2793. + # Only check the string length outside the loop.
  2794. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2795. + teststring=
  2796. + # Add a significant safety factor because C++ compilers can tack on
  2797. + # massive amounts of additional arguments before passing them to the
  2798. + # linker. It appears as though 1/2 is a usable value.
  2799. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2800. + fi
  2801. ;;
  2802. esac
  2803. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2804. - shlibpath_overrides_runpath=no
  2805. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2806. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2807. - hardcode_into_libs=yes
  2808. - ;;
  2809. +])
  2810. +if test -n $lt_cv_sys_max_cmd_len ; then
  2811. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2812. +else
  2813. + AC_MSG_RESULT(none)
  2814. +fi
  2815. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2816. +_LT_DECL([], [max_cmd_len], [0],
  2817. + [What is the maximum length of a command?])
  2818. +])# LT_CMD_MAX_LEN
  2819. -# No shared lib support for Linux oldld, aout, or coff.
  2820. -linux*oldld* | linux*aout* | linux*coff*)
  2821. - dynamic_linker=no
  2822. - ;;
  2823. +# Old name:
  2824. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2825. +dnl aclocal-1.4 backwards compatibility:
  2826. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2827. -# This must be Linux ELF.
  2828. -linux* | k*bsd*-gnu)
  2829. - version_type=linux
  2830. - need_lib_prefix=no
  2831. - need_version=no
  2832. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2833. - soname_spec='${libname}${release}${shared_ext}$major'
  2834. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2835. - shlibpath_var=LD_LIBRARY_PATH
  2836. - shlibpath_overrides_runpath=no
  2837. - # This implies no fast_install, which is unacceptable.
  2838. - # Some rework will be needed to allow for fast_install
  2839. - # before this can be enabled.
  2840. - hardcode_into_libs=yes
  2841. - # Append ld.so.conf contents to the search path
  2842. - if test -f /etc/ld.so.conf; then
  2843. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2844. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2845. - fi
  2846. +# _LT_HEADER_DLFCN
  2847. +# ----------------
  2848. +m4_defun([_LT_HEADER_DLFCN],
  2849. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2850. +])# _LT_HEADER_DLFCN
  2851. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2852. - # powerpc, because MkLinux only supported shared libraries with the
  2853. - # GNU dynamic linker. Since this was broken with cross compilers,
  2854. - # most powerpc-linux boxes support dynamic linking these days and
  2855. - # people can always --disable-shared, the test was removed, and we
  2856. - # assume the GNU/Linux dynamic linker is in use.
  2857. - dynamic_linker='GNU/Linux ld.so'
  2858. - ;;
  2859. -netbsdelf*-gnu)
  2860. - version_type=linux
  2861. - need_lib_prefix=no
  2862. - need_version=no
  2863. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2864. - soname_spec='${libname}${release}${shared_ext}$major'
  2865. - shlibpath_var=LD_LIBRARY_PATH
  2866. - shlibpath_overrides_runpath=no
  2867. - hardcode_into_libs=yes
  2868. - dynamic_linker='NetBSD ld.elf_so'
  2869. - ;;
  2870. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2871. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2872. +# ----------------------------------------------------------------
  2873. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2874. +[m4_require([_LT_HEADER_DLFCN])dnl
  2875. +if test "$cross_compiling" = yes; then :
  2876. + [$4]
  2877. +else
  2878. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2879. + lt_status=$lt_dlunknown
  2880. + cat > conftest.$ac_ext <<_LT_EOF
  2881. +[#line __oline__ "configure"
  2882. +#include "confdefs.h"
  2883. -netbsd*)
  2884. - version_type=sunos
  2885. - need_lib_prefix=no
  2886. - need_version=no
  2887. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2888. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2889. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2890. - dynamic_linker='NetBSD (a.out) ld.so'
  2891. - else
  2892. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2893. - soname_spec='${libname}${release}${shared_ext}$major'
  2894. - dynamic_linker='NetBSD ld.elf_so'
  2895. - fi
  2896. - shlibpath_var=LD_LIBRARY_PATH
  2897. - shlibpath_overrides_runpath=yes
  2898. - hardcode_into_libs=yes
  2899. - ;;
  2900. +#if HAVE_DLFCN_H
  2901. +#include <dlfcn.h>
  2902. +#endif
  2903. -newsos6)
  2904. - version_type=linux
  2905. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2906. - shlibpath_var=LD_LIBRARY_PATH
  2907. - shlibpath_overrides_runpath=yes
  2908. - ;;
  2909. +#include <stdio.h>
  2910. -nto-qnx*)
  2911. - version_type=linux
  2912. - need_lib_prefix=no
  2913. - need_version=no
  2914. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2915. - soname_spec='${libname}${release}${shared_ext}$major'
  2916. - shlibpath_var=LD_LIBRARY_PATH
  2917. - shlibpath_overrides_runpath=yes
  2918. - ;;
  2919. +#ifdef RTLD_GLOBAL
  2920. +# define LT_DLGLOBAL RTLD_GLOBAL
  2921. +#else
  2922. +# ifdef DL_GLOBAL
  2923. +# define LT_DLGLOBAL DL_GLOBAL
  2924. +# else
  2925. +# define LT_DLGLOBAL 0
  2926. +# endif
  2927. +#endif
  2928. -openbsd*)
  2929. - version_type=sunos
  2930. - sys_lib_dlsearch_path_spec="/usr/lib"
  2931. - need_lib_prefix=no
  2932. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2933. - case $host_os in
  2934. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2935. - *) need_version=no ;;
  2936. - esac
  2937. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2938. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2939. - shlibpath_var=LD_LIBRARY_PATH
  2940. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2941. - case $host_os in
  2942. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2943. - shlibpath_overrides_runpath=no
  2944. - ;;
  2945. - *)
  2946. - shlibpath_overrides_runpath=yes
  2947. - ;;
  2948. - esac
  2949. - else
  2950. - shlibpath_overrides_runpath=yes
  2951. - fi
  2952. - ;;
  2953. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2954. + find out it does not work in some platform. */
  2955. +#ifndef LT_DLLAZY_OR_NOW
  2956. +# ifdef RTLD_LAZY
  2957. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2958. +# else
  2959. +# ifdef DL_LAZY
  2960. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2961. +# else
  2962. +# ifdef RTLD_NOW
  2963. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2964. +# else
  2965. +# ifdef DL_NOW
  2966. +# define LT_DLLAZY_OR_NOW DL_NOW
  2967. +# else
  2968. +# define LT_DLLAZY_OR_NOW 0
  2969. +# endif
  2970. +# endif
  2971. +# endif
  2972. +# endif
  2973. +#endif
  2974. -os2*)
  2975. - libname_spec='$name'
  2976. - shrext_cmds=".dll"
  2977. - need_lib_prefix=no
  2978. - library_names_spec='$libname${shared_ext} $libname.a'
  2979. - dynamic_linker='OS/2 ld.exe'
  2980. - shlibpath_var=LIBPATH
  2981. - ;;
  2982. +void fnord() { int i=42;}
  2983. +int main ()
  2984. +{
  2985. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2986. + int status = $lt_dlunknown;
  2987. -osf3* | osf4* | osf5*)
  2988. - version_type=osf
  2989. - need_lib_prefix=no
  2990. - need_version=no
  2991. - soname_spec='${libname}${release}${shared_ext}$major'
  2992. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2993. - shlibpath_var=LD_LIBRARY_PATH
  2994. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2995. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2996. - ;;
  2997. + if (self)
  2998. + {
  2999. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  3000. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  3001. + /* dlclose (self); */
  3002. + }
  3003. + else
  3004. + puts (dlerror ());
  3005. -solaris*)
  3006. - version_type=linux
  3007. - need_lib_prefix=no
  3008. - need_version=no
  3009. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3010. - soname_spec='${libname}${release}${shared_ext}$major'
  3011. - shlibpath_var=LD_LIBRARY_PATH
  3012. - shlibpath_overrides_runpath=yes
  3013. - hardcode_into_libs=yes
  3014. - # ldd complains unless libraries are executable
  3015. - postinstall_cmds='chmod +x $lib'
  3016. - ;;
  3017. -
  3018. -sunos4*)
  3019. - version_type=sunos
  3020. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3021. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3022. - shlibpath_var=LD_LIBRARY_PATH
  3023. - shlibpath_overrides_runpath=yes
  3024. - if test "$with_gnu_ld" = yes; then
  3025. - need_lib_prefix=no
  3026. - fi
  3027. - need_version=yes
  3028. - ;;
  3029. -
  3030. -sysv4 | sysv4.3*)
  3031. - version_type=linux
  3032. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3033. - soname_spec='${libname}${release}${shared_ext}$major'
  3034. - shlibpath_var=LD_LIBRARY_PATH
  3035. - case $host_vendor in
  3036. - sni)
  3037. - shlibpath_overrides_runpath=no
  3038. - need_lib_prefix=no
  3039. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3040. - runpath_var=LD_RUN_PATH
  3041. - ;;
  3042. - siemens)
  3043. - need_lib_prefix=no
  3044. - ;;
  3045. - motorola)
  3046. - need_lib_prefix=no
  3047. - need_version=no
  3048. - shlibpath_overrides_runpath=no
  3049. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3050. - ;;
  3051. - esac
  3052. - ;;
  3053. -
  3054. -sysv4*MP*)
  3055. - if test -d /usr/nec ;then
  3056. - version_type=linux
  3057. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3058. - soname_spec='$libname${shared_ext}.$major'
  3059. - shlibpath_var=LD_LIBRARY_PATH
  3060. - fi
  3061. - ;;
  3062. -
  3063. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3064. - version_type=freebsd-elf
  3065. - need_lib_prefix=no
  3066. - need_version=no
  3067. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3068. - soname_spec='${libname}${release}${shared_ext}$major'
  3069. - shlibpath_var=LD_LIBRARY_PATH
  3070. - hardcode_into_libs=yes
  3071. - if test "$with_gnu_ld" = yes; then
  3072. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3073. - shlibpath_overrides_runpath=no
  3074. - else
  3075. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3076. - shlibpath_overrides_runpath=yes
  3077. - case $host_os in
  3078. - sco3.2v5*)
  3079. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3080. - ;;
  3081. + return status;
  3082. +}]
  3083. +_LT_EOF
  3084. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3085. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3086. + lt_status=$?
  3087. + case x$lt_status in
  3088. + x$lt_dlno_uscore) $1 ;;
  3089. + x$lt_dlneed_uscore) $2 ;;
  3090. + x$lt_dlunknown|x*) $3 ;;
  3091. esac
  3092. + else :
  3093. + # compilation failed
  3094. + $3
  3095. fi
  3096. - sys_lib_dlsearch_path_spec='/usr/lib'
  3097. - ;;
  3098. -
  3099. -uts4*)
  3100. - version_type=linux
  3101. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3102. - soname_spec='${libname}${release}${shared_ext}$major'
  3103. - shlibpath_var=LD_LIBRARY_PATH
  3104. - ;;
  3105. -
  3106. -*)
  3107. - dynamic_linker=no
  3108. - ;;
  3109. -esac
  3110. -AC_MSG_RESULT([$dynamic_linker])
  3111. -test "$dynamic_linker" = no && can_build_shared=no
  3112. -
  3113. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3114. -if test "$GCC" = yes; then
  3115. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3116. fi
  3117. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3118. -
  3119. -
  3120. -# _LT_AC_TAGCONFIG
  3121. -# ----------------
  3122. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3123. -[AC_ARG_WITH([tags],
  3124. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3125. - [include additional configurations @<:@automatic@:>@])],
  3126. - [tagnames="$withval"])
  3127. -
  3128. -if test -f "$ltmain" && test -n "$tagnames"; then
  3129. - if test ! -f "${ofile}"; then
  3130. - AC_MSG_WARN([output file `$ofile' does not exist])
  3131. - fi
  3132. -
  3133. - if test -z "$LTCC"; then
  3134. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3135. - if test -z "$LTCC"; then
  3136. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3137. - else
  3138. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3139. - fi
  3140. - fi
  3141. - if test -z "$LTCFLAGS"; then
  3142. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3143. - fi
  3144. -
  3145. - # Extract list of available tagged configurations in $ofile.
  3146. - # Note that this assumes the entire list is on one line.
  3147. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3148. -
  3149. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3150. - for tagname in $tagnames; do
  3151. - IFS="$lt_save_ifs"
  3152. - # Check whether tagname contains only valid characters
  3153. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3154. - "") ;;
  3155. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3156. - ;;
  3157. - esac
  3158. +rm -fr conftest*
  3159. +])# _LT_TRY_DLOPEN_SELF
  3160. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3161. - then
  3162. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3163. - fi
  3164. - # Update the list of available tags.
  3165. - if test -n "$tagname"; then
  3166. - echo appending configuration tag \"$tagname\" to $ofile
  3167. -
  3168. - case $tagname in
  3169. - CXX)
  3170. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3171. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3172. - (test "X$CXX" != "Xg++"))) ; then
  3173. - AC_LIBTOOL_LANG_CXX_CONFIG
  3174. - else
  3175. - tagname=""
  3176. - fi
  3177. - ;;
  3178. +# LT_SYS_DLOPEN_SELF
  3179. +# ------------------
  3180. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3181. +[m4_require([_LT_HEADER_DLFCN])dnl
  3182. +if test "x$enable_dlopen" != xyes; then
  3183. + enable_dlopen=unknown
  3184. + enable_dlopen_self=unknown
  3185. + enable_dlopen_self_static=unknown
  3186. +else
  3187. + lt_cv_dlopen=no
  3188. + lt_cv_dlopen_libs=
  3189. - F77)
  3190. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3191. - AC_LIBTOOL_LANG_F77_CONFIG
  3192. - else
  3193. - tagname=""
  3194. - fi
  3195. - ;;
  3196. + case $host_os in
  3197. + beos*)
  3198. + lt_cv_dlopen="load_add_on"
  3199. + lt_cv_dlopen_libs=
  3200. + lt_cv_dlopen_self=yes
  3201. + ;;
  3202. - GCJ)
  3203. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3204. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3205. - else
  3206. - tagname=""
  3207. - fi
  3208. - ;;
  3209. + mingw* | pw32* | cegcc*)
  3210. + lt_cv_dlopen="LoadLibrary"
  3211. + lt_cv_dlopen_libs=
  3212. + ;;
  3213. - RC)
  3214. - AC_LIBTOOL_LANG_RC_CONFIG
  3215. - ;;
  3216. + cygwin*)
  3217. + lt_cv_dlopen="dlopen"
  3218. + lt_cv_dlopen_libs=
  3219. + ;;
  3220. - *)
  3221. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3222. - ;;
  3223. - esac
  3224. + darwin*)
  3225. + # if libdl is installed we need to link against it
  3226. + AC_CHECK_LIB([dl], [dlopen],
  3227. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3228. + lt_cv_dlopen="dyld"
  3229. + lt_cv_dlopen_libs=
  3230. + lt_cv_dlopen_self=yes
  3231. + ])
  3232. + ;;
  3233. - # Append the new tag name to the list of available tags.
  3234. - if test -n "$tagname" ; then
  3235. - available_tags="$available_tags $tagname"
  3236. - fi
  3237. - fi
  3238. - done
  3239. - IFS="$lt_save_ifs"
  3240. + *)
  3241. + AC_CHECK_FUNC([shl_load],
  3242. + [lt_cv_dlopen="shl_load"],
  3243. + [AC_CHECK_LIB([dld], [shl_load],
  3244. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3245. + [AC_CHECK_FUNC([dlopen],
  3246. + [lt_cv_dlopen="dlopen"],
  3247. + [AC_CHECK_LIB([dl], [dlopen],
  3248. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3249. + [AC_CHECK_LIB([svld], [dlopen],
  3250. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3251. + [AC_CHECK_LIB([dld], [dld_link],
  3252. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3253. + ])
  3254. + ])
  3255. + ])
  3256. + ])
  3257. + ])
  3258. + ;;
  3259. + esac
  3260. - # Now substitute the updated list of available tags.
  3261. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3262. - mv "${ofile}T" "$ofile"
  3263. - chmod +x "$ofile"
  3264. + if test "x$lt_cv_dlopen" != xno; then
  3265. + enable_dlopen=yes
  3266. else
  3267. - rm -f "${ofile}T"
  3268. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3269. + enable_dlopen=no
  3270. fi
  3271. -fi
  3272. -])# _LT_AC_TAGCONFIG
  3273. + case $lt_cv_dlopen in
  3274. + dlopen)
  3275. + save_CPPFLAGS="$CPPFLAGS"
  3276. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3277. -# AC_LIBTOOL_DLOPEN
  3278. -# -----------------
  3279. -# enable checks for dlopen support
  3280. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3281. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3282. -])# AC_LIBTOOL_DLOPEN
  3283. + save_LDFLAGS="$LDFLAGS"
  3284. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3285. + save_LIBS="$LIBS"
  3286. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3287. -# AC_LIBTOOL_WIN32_DLL
  3288. -# --------------------
  3289. -# declare package support for building win32 DLLs
  3290. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3291. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3292. -])# AC_LIBTOOL_WIN32_DLL
  3293. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3294. + lt_cv_dlopen_self, [dnl
  3295. + _LT_TRY_DLOPEN_SELF(
  3296. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3297. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3298. + ])
  3299. + if test "x$lt_cv_dlopen_self" = xyes; then
  3300. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3301. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3302. + lt_cv_dlopen_self_static, [dnl
  3303. + _LT_TRY_DLOPEN_SELF(
  3304. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3305. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3306. + ])
  3307. + fi
  3308. -# AC_ENABLE_SHARED([DEFAULT])
  3309. -# ---------------------------
  3310. -# implement the --enable-shared flag
  3311. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3312. -AC_DEFUN([AC_ENABLE_SHARED],
  3313. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3314. -AC_ARG_ENABLE([shared],
  3315. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3316. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3317. - [p=${PACKAGE-default}
  3318. - case $enableval in
  3319. - yes) enable_shared=yes ;;
  3320. - no) enable_shared=no ;;
  3321. - *)
  3322. - enable_shared=no
  3323. - # Look at the argument we got. We use all the common list separators.
  3324. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3325. - for pkg in $enableval; do
  3326. - IFS="$lt_save_ifs"
  3327. - if test "X$pkg" = "X$p"; then
  3328. - enable_shared=yes
  3329. - fi
  3330. - done
  3331. - IFS="$lt_save_ifs"
  3332. - ;;
  3333. - esac],
  3334. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3335. -])# AC_ENABLE_SHARED
  3336. + CPPFLAGS="$save_CPPFLAGS"
  3337. + LDFLAGS="$save_LDFLAGS"
  3338. + LIBS="$save_LIBS"
  3339. + ;;
  3340. + esac
  3341. + case $lt_cv_dlopen_self in
  3342. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3343. + *) enable_dlopen_self=unknown ;;
  3344. + esac
  3345. -# AC_DISABLE_SHARED
  3346. -# -----------------
  3347. -# set the default shared flag to --disable-shared
  3348. -AC_DEFUN([AC_DISABLE_SHARED],
  3349. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3350. -AC_ENABLE_SHARED(no)
  3351. -])# AC_DISABLE_SHARED
  3352. + case $lt_cv_dlopen_self_static in
  3353. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3354. + *) enable_dlopen_self_static=unknown ;;
  3355. + esac
  3356. +fi
  3357. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3358. + [Whether dlopen is supported])
  3359. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3360. + [Whether dlopen of programs is supported])
  3361. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3362. + [Whether dlopen of statically linked programs is supported])
  3363. +])# LT_SYS_DLOPEN_SELF
  3364. +
  3365. +# Old name:
  3366. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3367. +dnl aclocal-1.4 backwards compatibility:
  3368. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3369. -# AC_ENABLE_STATIC([DEFAULT])
  3370. +# _LT_COMPILER_C_O([TAGNAME])
  3371. # ---------------------------
  3372. -# implement the --enable-static flag
  3373. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3374. -AC_DEFUN([AC_ENABLE_STATIC],
  3375. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3376. -AC_ARG_ENABLE([static],
  3377. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3378. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3379. - [p=${PACKAGE-default}
  3380. - case $enableval in
  3381. - yes) enable_static=yes ;;
  3382. - no) enable_static=no ;;
  3383. - *)
  3384. - enable_static=no
  3385. - # Look at the argument we got. We use all the common list separators.
  3386. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3387. - for pkg in $enableval; do
  3388. - IFS="$lt_save_ifs"
  3389. - if test "X$pkg" = "X$p"; then
  3390. - enable_static=yes
  3391. - fi
  3392. - done
  3393. - IFS="$lt_save_ifs"
  3394. - ;;
  3395. - esac],
  3396. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3397. -])# AC_ENABLE_STATIC
  3398. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3399. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3400. +m4_defun([_LT_COMPILER_C_O],
  3401. +[m4_require([_LT_DECL_SED])dnl
  3402. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3403. +m4_require([_LT_TAG_COMPILER])dnl
  3404. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3405. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3406. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3407. + $RM -r conftest 2>/dev/null
  3408. + mkdir conftest
  3409. + cd conftest
  3410. + mkdir out
  3411. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3412. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3413. + # Insert the option either (1) after the last *FLAGS variable, or
  3414. + # (2) before a word containing "conftest.", or (3) at the end.
  3415. + # Note that $ac_compile itself does not contain backslashes and begins
  3416. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3417. + lt_compile=`echo "$ac_compile" | $SED \
  3418. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3419. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3420. + -e 's:$: $lt_compiler_flag:'`
  3421. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3422. + (eval "$lt_compile" 2>out/conftest.err)
  3423. + ac_status=$?
  3424. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3425. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3426. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3427. + then
  3428. + # The compiler can only warn and ignore the option if not recognized
  3429. + # So say no if there are warnings
  3430. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3431. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3432. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3433. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3434. + fi
  3435. + fi
  3436. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3437. + $RM conftest*
  3438. + # SGI C++ compiler will create directory out/ii_files/ for
  3439. + # template instantiation
  3440. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3441. + $RM out/* && rmdir out
  3442. + cd ..
  3443. + $RM -r conftest
  3444. + $RM conftest*
  3445. +])
  3446. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3447. + [Does compiler simultaneously support -c and -o options?])
  3448. +])# _LT_COMPILER_C_O
  3449. -# AC_DISABLE_STATIC
  3450. -# -----------------
  3451. -# set the default static flag to --disable-static
  3452. -AC_DEFUN([AC_DISABLE_STATIC],
  3453. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3454. -AC_ENABLE_STATIC(no)
  3455. -])# AC_DISABLE_STATIC
  3456. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3457. +# ----------------------------------
  3458. +# Check to see if we can do hard links to lock some files if needed
  3459. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3460. +[m4_require([_LT_ENABLE_LOCK])dnl
  3461. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3462. +_LT_COMPILER_C_O([$1])
  3463. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3464. -# ---------------------------------
  3465. -# implement the --enable-fast-install flag
  3466. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3467. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3468. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3469. -AC_ARG_ENABLE([fast-install],
  3470. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3471. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3472. - [p=${PACKAGE-default}
  3473. - case $enableval in
  3474. - yes) enable_fast_install=yes ;;
  3475. - no) enable_fast_install=no ;;
  3476. - *)
  3477. - enable_fast_install=no
  3478. - # Look at the argument we got. We use all the common list separators.
  3479. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3480. - for pkg in $enableval; do
  3481. - IFS="$lt_save_ifs"
  3482. - if test "X$pkg" = "X$p"; then
  3483. - enable_fast_install=yes
  3484. - fi
  3485. - done
  3486. - IFS="$lt_save_ifs"
  3487. - ;;
  3488. - esac],
  3489. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3490. -])# AC_ENABLE_FAST_INSTALL
  3491. +hard_links="nottested"
  3492. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3493. + # do not overwrite the value of need_locks provided by the user
  3494. + AC_MSG_CHECKING([if we can lock with hard links])
  3495. + hard_links=yes
  3496. + $RM conftest*
  3497. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3498. + touch conftest.a
  3499. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3500. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3501. + AC_MSG_RESULT([$hard_links])
  3502. + if test "$hard_links" = no; then
  3503. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3504. + need_locks=warn
  3505. + fi
  3506. +else
  3507. + need_locks=no
  3508. +fi
  3509. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3510. +])# _LT_COMPILER_FILE_LOCKS
  3511. -# AC_DISABLE_FAST_INSTALL
  3512. -# -----------------------
  3513. -# set the default to --disable-fast-install
  3514. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3515. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3516. -AC_ENABLE_FAST_INSTALL(no)
  3517. -])# AC_DISABLE_FAST_INSTALL
  3518. +# _LT_CHECK_OBJDIR
  3519. +# ----------------
  3520. +m4_defun([_LT_CHECK_OBJDIR],
  3521. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3522. +[rm -f .libs 2>/dev/null
  3523. +mkdir .libs 2>/dev/null
  3524. +if test -d .libs; then
  3525. + lt_cv_objdir=.libs
  3526. +else
  3527. + # MS-DOS does not allow filenames that begin with a dot.
  3528. + lt_cv_objdir=_libs
  3529. +fi
  3530. +rmdir .libs 2>/dev/null])
  3531. +objdir=$lt_cv_objdir
  3532. +_LT_DECL([], [objdir], [0],
  3533. + [The name of the directory that contains temporary libtool files])dnl
  3534. +m4_pattern_allow([LT_OBJDIR])dnl
  3535. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3536. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3537. +])# _LT_CHECK_OBJDIR
  3538. -# AC_LIBTOOL_PICMODE([MODE])
  3539. -# --------------------------
  3540. -# implement the --with-pic flag
  3541. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3542. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3543. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3544. -pic_mode=ifelse($#,1,$1,default)
  3545. -])# AC_LIBTOOL_PICMODE
  3546. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3547. +# --------------------------------------
  3548. +# Check hardcoding attributes.
  3549. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3550. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3551. +_LT_TAGVAR(hardcode_action, $1)=
  3552. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3553. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3554. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3555. + # We can hardcode non-existent directories.
  3556. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3557. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3558. + # have to relink, otherwise we might link with an installed library
  3559. + # when we should be linking with a yet-to-be-installed one
  3560. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3561. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3562. + # Linking always hardcodes the temporary library directory.
  3563. + _LT_TAGVAR(hardcode_action, $1)=relink
  3564. + else
  3565. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3566. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3567. + fi
  3568. +else
  3569. + # We cannot hardcode anything, or else we can only hardcode existing
  3570. + # directories.
  3571. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3572. +fi
  3573. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3574. -# AC_PROG_EGREP
  3575. -# -------------
  3576. -# This is predefined starting with Autoconf 2.54, so this conditional
  3577. -# definition can be removed once we require Autoconf 2.54 or later.
  3578. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3579. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3580. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3581. - then ac_cv_prog_egrep='grep -E'
  3582. - else ac_cv_prog_egrep='egrep'
  3583. - fi])
  3584. - EGREP=$ac_cv_prog_egrep
  3585. - AC_SUBST([EGREP])
  3586. -])])
  3587. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3588. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3589. + # Fast installation is not supported
  3590. + enable_fast_install=no
  3591. +elif test "$shlibpath_overrides_runpath" = yes ||
  3592. + test "$enable_shared" = no; then
  3593. + # Fast installation is not necessary
  3594. + enable_fast_install=needless
  3595. +fi
  3596. +_LT_TAGDECL([], [hardcode_action], [0],
  3597. + [How to hardcode a shared library path into an executable])
  3598. +])# _LT_LINKER_HARDCODE_LIBPATH
  3599. -# AC_PATH_TOOL_PREFIX
  3600. -# -------------------
  3601. -# find a file program which can recognise shared library
  3602. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3603. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3604. -AC_MSG_CHECKING([for $1])
  3605. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3606. -[case $MAGIC_CMD in
  3607. -[[\\/*] | ?:[\\/]*])
  3608. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3609. - ;;
  3610. -*)
  3611. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3612. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3613. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3614. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3615. -dnl not every word. This closes a longstanding sh security hole.
  3616. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3617. - for ac_dir in $ac_dummy; do
  3618. - IFS="$lt_save_ifs"
  3619. - test -z "$ac_dir" && ac_dir=.
  3620. - if test -f $ac_dir/$1; then
  3621. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3622. - if test -n "$file_magic_test_file"; then
  3623. - case $deplibs_check_method in
  3624. - "file_magic "*)
  3625. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3626. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3627. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3628. - $EGREP "$file_magic_regex" > /dev/null; then
  3629. - :
  3630. - else
  3631. - cat <<EOF 1>&2
  3632. +# _LT_CMD_STRIPLIB
  3633. +# ----------------
  3634. +m4_defun([_LT_CMD_STRIPLIB],
  3635. +[m4_require([_LT_DECL_EGREP])
  3636. +striplib=
  3637. +old_striplib=
  3638. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3639. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3640. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3641. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3642. + AC_MSG_RESULT([yes])
  3643. +else
  3644. +# FIXME - insert some real tests, host_os isn't really good enough
  3645. + case $host_os in
  3646. + darwin*)
  3647. + if test -n "$STRIP" ; then
  3648. + striplib="$STRIP -x"
  3649. + old_striplib="$STRIP -S"
  3650. + AC_MSG_RESULT([yes])
  3651. + else
  3652. + AC_MSG_RESULT([no])
  3653. + fi
  3654. + ;;
  3655. + *)
  3656. + AC_MSG_RESULT([no])
  3657. + ;;
  3658. + esac
  3659. +fi
  3660. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3661. +_LT_DECL([], [striplib], [1])
  3662. +])# _LT_CMD_STRIPLIB
  3663. -*** Warning: the command libtool uses to detect shared libraries,
  3664. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3665. -*** The result is that libtool may fail to recognize shared libraries
  3666. -*** as such. This will affect the creation of libtool libraries that
  3667. -*** depend on shared libraries, but programs linked with such libtool
  3668. -*** libraries will work regardless of this problem. Nevertheless, you
  3669. -*** may want to report the problem to your system manager and/or to
  3670. -*** bug-libtool@gnu.org
  3671. -EOF
  3672. - fi ;;
  3673. - esac
  3674. - fi
  3675. - break
  3676. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3677. +# -----------------------------
  3678. +# PORTME Fill in your ld.so characteristics
  3679. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3680. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3681. +m4_require([_LT_DECL_EGREP])dnl
  3682. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3683. +m4_require([_LT_DECL_OBJDUMP])dnl
  3684. +m4_require([_LT_DECL_SED])dnl
  3685. +AC_MSG_CHECKING([dynamic linker characteristics])
  3686. +m4_if([$1],
  3687. + [], [
  3688. +if test "$GCC" = yes; then
  3689. + case $host_os in
  3690. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3691. + *) lt_awk_arg="/^libraries:/" ;;
  3692. + esac
  3693. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3694. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3695. + # if the path contains ";" then we assume it to be the separator
  3696. + # otherwise default to the standard path separator (i.e. ":") - it is
  3697. + # assumed that no part of a normal pathname contains ";" but that should
  3698. + # okay in the real world where ";" in dirpaths is itself problematic.
  3699. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3700. + else
  3701. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3702. + fi
  3703. + # Ok, now we have the path, separated by spaces, we can step through it
  3704. + # and add multilib dir if necessary.
  3705. + lt_tmp_lt_search_path_spec=
  3706. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3707. + for lt_sys_path in $lt_search_path_spec; do
  3708. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3709. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3710. + else
  3711. + test -d "$lt_sys_path" && \
  3712. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3713. fi
  3714. done
  3715. - IFS="$lt_save_ifs"
  3716. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3717. - ;;
  3718. -esac])
  3719. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3720. -if test -n "$MAGIC_CMD"; then
  3721. - AC_MSG_RESULT($MAGIC_CMD)
  3722. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3723. +BEGIN {RS=" "; FS="/|\n";} {
  3724. + lt_foo="";
  3725. + lt_count=0;
  3726. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3727. + if ($lt_i != "" && $lt_i != ".") {
  3728. + if ($lt_i == "..") {
  3729. + lt_count++;
  3730. + } else {
  3731. + if (lt_count == 0) {
  3732. + lt_foo="/" $lt_i lt_foo;
  3733. + } else {
  3734. + lt_count--;
  3735. + }
  3736. + }
  3737. + }
  3738. + }
  3739. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3740. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3741. +}'`
  3742. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3743. else
  3744. - AC_MSG_RESULT(no)
  3745. -fi
  3746. -])# AC_PATH_TOOL_PREFIX
  3747. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3748. +fi])
  3749. +library_names_spec=
  3750. +libname_spec='lib$name'
  3751. +soname_spec=
  3752. +shrext_cmds=".so"
  3753. +postinstall_cmds=
  3754. +postuninstall_cmds=
  3755. +finish_cmds=
  3756. +finish_eval=
  3757. +shlibpath_var=
  3758. +shlibpath_overrides_runpath=unknown
  3759. +version_type=none
  3760. +dynamic_linker="$host_os ld.so"
  3761. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3762. +need_lib_prefix=unknown
  3763. +hardcode_into_libs=no
  3764. +# when you set need_version to no, make sure it does not cause -set_version
  3765. +# flags to be left without arguments
  3766. +need_version=unknown
  3767. -# AC_PATH_MAGIC
  3768. -# -------------
  3769. -# find a file program which can recognise a shared library
  3770. -AC_DEFUN([AC_PATH_MAGIC],
  3771. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3772. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3773. - if test -n "$ac_tool_prefix"; then
  3774. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3775. - else
  3776. - MAGIC_CMD=:
  3777. - fi
  3778. -fi
  3779. -])# AC_PATH_MAGIC
  3780. +case $host_os in
  3781. +aix3*)
  3782. + version_type=linux
  3783. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3784. + shlibpath_var=LIBPATH
  3785. + # AIX 3 has no versioning support, so we append a major version to the name.
  3786. + soname_spec='${libname}${release}${shared_ext}$major'
  3787. + ;;
  3788. -# AC_PROG_LD
  3789. -# ----------
  3790. -# find the pathname to the GNU or non-GNU linker
  3791. -AC_DEFUN([AC_PROG_LD],
  3792. -[AC_ARG_WITH([gnu-ld],
  3793. - [AC_HELP_STRING([--with-gnu-ld],
  3794. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3795. - [test "$withval" = no || with_gnu_ld=yes],
  3796. - [with_gnu_ld=no])
  3797. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3798. -AC_REQUIRE([AC_PROG_CC])dnl
  3799. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3800. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3801. -ac_prog=ld
  3802. -if test "$GCC" = yes; then
  3803. - # Check if gcc -print-prog-name=ld gives a path.
  3804. - AC_MSG_CHECKING([for ld used by $CC])
  3805. - case $host in
  3806. - *-*-mingw*)
  3807. - # gcc leaves a trailing carriage return which upsets mingw
  3808. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3809. - *)
  3810. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3811. - esac
  3812. - case $ac_prog in
  3813. - # Accept absolute paths.
  3814. - [[\\/]]* | ?:[[\\/]]*)
  3815. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3816. - # Canonicalize the pathname of ld
  3817. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3818. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3819. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3820. - done
  3821. - test -z "$LD" && LD="$ac_prog"
  3822. +aix[[4-9]]*)
  3823. + version_type=linux
  3824. + need_lib_prefix=no
  3825. + need_version=no
  3826. + hardcode_into_libs=yes
  3827. + if test "$host_cpu" = ia64; then
  3828. + # AIX 5 supports IA64
  3829. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3830. + shlibpath_var=LD_LIBRARY_PATH
  3831. + else
  3832. + # With GCC up to 2.95.x, collect2 would create an import file
  3833. + # for dependence libraries. The import file would start with
  3834. + # the line `#! .'. This would cause the generated library to
  3835. + # depend on `.', always an invalid library. This was fixed in
  3836. + # development snapshots of GCC prior to 3.0.
  3837. + case $host_os in
  3838. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3839. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3840. + echo ' yes '
  3841. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3842. + :
  3843. + else
  3844. + can_build_shared=no
  3845. + fi
  3846. ;;
  3847. - "")
  3848. - # If it fails, then pretend we aren't using GCC.
  3849. - ac_prog=ld
  3850. - ;;
  3851. - *)
  3852. - # If it is relative, then search for the first ld in PATH.
  3853. - with_gnu_ld=unknown
  3854. - ;;
  3855. - esac
  3856. -elif test "$with_gnu_ld" = yes; then
  3857. - AC_MSG_CHECKING([for GNU ld])
  3858. -else
  3859. - AC_MSG_CHECKING([for non-GNU ld])
  3860. -fi
  3861. -AC_CACHE_VAL(lt_cv_path_LD,
  3862. -[if test -z "$LD"; then
  3863. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3864. - for ac_dir in $PATH; do
  3865. - IFS="$lt_save_ifs"
  3866. - test -z "$ac_dir" && ac_dir=.
  3867. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3868. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3869. - # Check to see if the program is GNU ld. I'd rather use --version,
  3870. - # but apparently some variants of GNU ld only accept -v.
  3871. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3872. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3873. - *GNU* | *'with BFD'*)
  3874. - test "$with_gnu_ld" != no && break
  3875. - ;;
  3876. - *)
  3877. - test "$with_gnu_ld" != yes && break
  3878. - ;;
  3879. - esac
  3880. + esac
  3881. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3882. + # soname into executable. Probably we can add versioning support to
  3883. + # collect2, so additional links can be useful in future.
  3884. + if test "$aix_use_runtimelinking" = yes; then
  3885. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3886. + # instead of lib<name>.a to let people know that these are not
  3887. + # typical AIX shared libraries.
  3888. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3889. + else
  3890. + # We preserve .a as extension for shared libraries through AIX4.2
  3891. + # and later when we are not doing run time linking.
  3892. + library_names_spec='${libname}${release}.a $libname.a'
  3893. + soname_spec='${libname}${release}${shared_ext}$major'
  3894. fi
  3895. - done
  3896. - IFS="$lt_save_ifs"
  3897. -else
  3898. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3899. -fi])
  3900. -LD="$lt_cv_path_LD"
  3901. -if test -n "$LD"; then
  3902. - AC_MSG_RESULT($LD)
  3903. -else
  3904. - AC_MSG_RESULT(no)
  3905. -fi
  3906. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3907. -AC_PROG_LD_GNU
  3908. -])# AC_PROG_LD
  3909. -
  3910. -
  3911. -# AC_PROG_LD_GNU
  3912. -# --------------
  3913. -AC_DEFUN([AC_PROG_LD_GNU],
  3914. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3915. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3916. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3917. -case `$LD -v 2>&1 </dev/null` in
  3918. -*GNU* | *'with BFD'*)
  3919. - lt_cv_prog_gnu_ld=yes
  3920. - ;;
  3921. -*)
  3922. - lt_cv_prog_gnu_ld=no
  3923. + shlibpath_var=LIBPATH
  3924. + fi
  3925. ;;
  3926. -esac])
  3927. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3928. -])# AC_PROG_LD_GNU
  3929. -
  3930. -# AC_PROG_LD_RELOAD_FLAG
  3931. -# ----------------------
  3932. -# find reload flag for linker
  3933. -# -- PORTME Some linkers may need a different reload flag.
  3934. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3935. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3936. - lt_cv_ld_reload_flag,
  3937. - [lt_cv_ld_reload_flag='-r'])
  3938. -reload_flag=$lt_cv_ld_reload_flag
  3939. -case $reload_flag in
  3940. -"" | " "*) ;;
  3941. -*) reload_flag=" $reload_flag" ;;
  3942. -esac
  3943. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3944. -case $host_os in
  3945. - darwin*)
  3946. - if test "$GCC" = yes; then
  3947. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3948. - else
  3949. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3950. - fi
  3951. +amigaos*)
  3952. + case $host_cpu in
  3953. + powerpc)
  3954. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3955. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3956. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3957. ;;
  3958. -esac
  3959. -])# AC_PROG_LD_RELOAD_FLAG
  3960. -
  3961. -
  3962. -# AC_DEPLIBS_CHECK_METHOD
  3963. -# -----------------------
  3964. -# how to check for library dependencies
  3965. -# -- PORTME fill in with the dynamic library characteristics
  3966. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3967. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3968. -lt_cv_deplibs_check_method,
  3969. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3970. -lt_cv_file_magic_test_file=
  3971. -lt_cv_deplibs_check_method='unknown'
  3972. -# Need to set the preceding variable on all platforms that support
  3973. -# interlibrary dependencies.
  3974. -# 'none' -- dependencies not supported.
  3975. -# `unknown' -- same as none, but documents that we really don't know.
  3976. -# 'pass_all' -- all dependencies passed with no checks.
  3977. -# 'test_compile' -- check by making test program.
  3978. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3979. -# which responds to the $file_magic_cmd with a given extended regex.
  3980. -# If you have `file' or equivalent on your system and you're not sure
  3981. -# whether `pass_all' will *always* work, you probably want this one.
  3982. -
  3983. -case $host_os in
  3984. -aix4* | aix5*)
  3985. - lt_cv_deplibs_check_method=pass_all
  3986. + m68k)
  3987. + library_names_spec='$libname.ixlibrary $libname.a'
  3988. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3989. + 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'
  3990. + ;;
  3991. + esac
  3992. ;;
  3993. beos*)
  3994. - lt_cv_deplibs_check_method=pass_all
  3995. + library_names_spec='${libname}${shared_ext}'
  3996. + dynamic_linker="$host_os ld.so"
  3997. + shlibpath_var=LIBRARY_PATH
  3998. ;;
  3999. bsdi[[45]]*)
  4000. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  4001. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  4002. - lt_cv_file_magic_test_file=/shlib/libc.so
  4003. - ;;
  4004. -
  4005. -cygwin*)
  4006. - # func_win32_libid is a shell function defined in ltmain.sh
  4007. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4008. - lt_cv_file_magic_cmd='func_win32_libid'
  4009. + version_type=linux
  4010. + need_version=no
  4011. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4012. + soname_spec='${libname}${release}${shared_ext}$major'
  4013. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4014. + shlibpath_var=LD_LIBRARY_PATH
  4015. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4016. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4017. + # the default ld.so.conf also contains /usr/contrib/lib and
  4018. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4019. + # libtool to hard-code these into programs
  4020. ;;
  4021. -mingw* | pw32*)
  4022. - # Base MSYS/MinGW do not provide the 'file' command needed by
  4023. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4024. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4025. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  4026. - ;;
  4027. +cygwin* | mingw* | pw32* | cegcc*)
  4028. + version_type=windows
  4029. + shrext_cmds=".dll"
  4030. + need_version=no
  4031. + need_lib_prefix=no
  4032. -darwin* | rhapsody*)
  4033. - lt_cv_deplibs_check_method=pass_all
  4034. - ;;
  4035. + case $GCC,$host_os in
  4036. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  4037. + library_names_spec='$libname.dll.a'
  4038. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4039. + postinstall_cmds='base_file=`basename \${file}`~
  4040. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4041. + dldir=$destdir/`dirname \$dlpath`~
  4042. + test -d \$dldir || mkdir -p \$dldir~
  4043. + $install_prog $dir/$dlname \$dldir/$dlname~
  4044. + chmod a+x \$dldir/$dlname~
  4045. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4046. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4047. + fi'
  4048. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4049. + dlpath=$dir/\$dldll~
  4050. + $RM \$dlpath'
  4051. + shlibpath_overrides_runpath=yes
  4052. -freebsd* | dragonfly*)
  4053. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4054. - case $host_cpu in
  4055. - i*86 )
  4056. - # Not sure whether the presence of OpenBSD here was a mistake.
  4057. - # Let's accept both of them until this is cleared up.
  4058. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4059. - lt_cv_file_magic_cmd=/usr/bin/file
  4060. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4061. + case $host_os in
  4062. + cygwin*)
  4063. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4064. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4065. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4066. + ;;
  4067. + mingw* | cegcc*)
  4068. + # MinGW DLLs use traditional 'lib' prefix
  4069. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4070. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4071. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4072. + # It is most probably a Windows format PATH printed by
  4073. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4074. + # path with ; separators, and with drive letters. We can handle the
  4075. + # drive letters (cygwin fileutils understands them), so leave them,
  4076. + # especially as we might pass files found there to a mingw objdump,
  4077. + # which wouldn't understand a cygwinified path. Ahh.
  4078. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4079. + else
  4080. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4081. + fi
  4082. + ;;
  4083. + pw32*)
  4084. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  4085. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4086. ;;
  4087. esac
  4088. - else
  4089. - lt_cv_deplibs_check_method=pass_all
  4090. - fi
  4091. - ;;
  4092. -
  4093. -gnu*)
  4094. - lt_cv_deplibs_check_method=pass_all
  4095. - ;;
  4096. -
  4097. -hpux10.20* | hpux11*)
  4098. - lt_cv_file_magic_cmd=/usr/bin/file
  4099. - case $host_cpu in
  4100. - ia64*)
  4101. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4102. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4103. - ;;
  4104. - hppa*64*)
  4105. - [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]']
  4106. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4107. ;;
  4108. +
  4109. *)
  4110. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4111. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4112. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4113. ;;
  4114. esac
  4115. + dynamic_linker='Win32 ld.exe'
  4116. + # FIXME: first we should search . and the directory the executable is in
  4117. + shlibpath_var=PATH
  4118. ;;
  4119. -interix3*)
  4120. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4121. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4122. - ;;
  4123. -
  4124. -irix5* | irix6* | nonstopux*)
  4125. - case $LD in
  4126. - *-32|*"-32 ") libmagic=32-bit;;
  4127. - *-n32|*"-n32 ") libmagic=N32;;
  4128. - *-64|*"-64 ") libmagic=64-bit;;
  4129. - *) libmagic=never-match;;
  4130. - esac
  4131. - lt_cv_deplibs_check_method=pass_all
  4132. - ;;
  4133. -
  4134. -# This must be Linux ELF.
  4135. -linux* | k*bsd*-gnu)
  4136. - lt_cv_deplibs_check_method=pass_all
  4137. - ;;
  4138. -
  4139. -netbsd* | netbsdelf*-gnu)
  4140. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4141. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4142. - else
  4143. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4144. - fi
  4145. +darwin* | rhapsody*)
  4146. + dynamic_linker="$host_os dyld"
  4147. + version_type=darwin
  4148. + need_lib_prefix=no
  4149. + need_version=no
  4150. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4151. + soname_spec='${libname}${release}${major}$shared_ext'
  4152. + shlibpath_overrides_runpath=yes
  4153. + shlibpath_var=DYLD_LIBRARY_PATH
  4154. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4155. +m4_if([$1], [],[
  4156. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4157. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4158. ;;
  4159. -newos6*)
  4160. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4161. - lt_cv_file_magic_cmd=/usr/bin/file
  4162. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4163. +dgux*)
  4164. + version_type=linux
  4165. + need_lib_prefix=no
  4166. + need_version=no
  4167. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4168. + soname_spec='${libname}${release}${shared_ext}$major'
  4169. + shlibpath_var=LD_LIBRARY_PATH
  4170. ;;
  4171. -nto-qnx*)
  4172. - lt_cv_deplibs_check_method=unknown
  4173. +freebsd1*)
  4174. + dynamic_linker=no
  4175. ;;
  4176. -openbsd*)
  4177. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4178. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4179. +freebsd* | dragonfly*)
  4180. + # DragonFly does not have aout. When/if they implement a new
  4181. + # versioning mechanism, adjust this.
  4182. + if test -x /usr/bin/objformat; then
  4183. + objformat=`/usr/bin/objformat`
  4184. else
  4185. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4186. + case $host_os in
  4187. + freebsd[[123]]*) objformat=aout ;;
  4188. + *) objformat=elf ;;
  4189. + esac
  4190. fi
  4191. + version_type=freebsd-$objformat
  4192. + case $version_type in
  4193. + freebsd-elf*)
  4194. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4195. + need_version=no
  4196. + need_lib_prefix=no
  4197. + ;;
  4198. + freebsd-*)
  4199. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4200. + need_version=yes
  4201. + ;;
  4202. + esac
  4203. + shlibpath_var=LD_LIBRARY_PATH
  4204. + case $host_os in
  4205. + freebsd2*)
  4206. + shlibpath_overrides_runpath=yes
  4207. + ;;
  4208. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4209. + shlibpath_overrides_runpath=yes
  4210. + hardcode_into_libs=yes
  4211. + ;;
  4212. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4213. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4214. + shlibpath_overrides_runpath=no
  4215. + hardcode_into_libs=yes
  4216. + ;;
  4217. + *) # from 4.6 on, and DragonFly
  4218. + shlibpath_overrides_runpath=yes
  4219. + hardcode_into_libs=yes
  4220. + ;;
  4221. + esac
  4222. ;;
  4223. -osf3* | osf4* | osf5*)
  4224. - lt_cv_deplibs_check_method=pass_all
  4225. - ;;
  4226. -
  4227. -solaris*)
  4228. - lt_cv_deplibs_check_method=pass_all
  4229. +gnu*)
  4230. + version_type=linux
  4231. + need_lib_prefix=no
  4232. + need_version=no
  4233. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4234. + soname_spec='${libname}${release}${shared_ext}$major'
  4235. + shlibpath_var=LD_LIBRARY_PATH
  4236. + hardcode_into_libs=yes
  4237. ;;
  4238. -sysv4 | sysv4.3*)
  4239. - case $host_vendor in
  4240. - motorola)
  4241. - 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]]'
  4242. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4243. - ;;
  4244. - ncr)
  4245. - lt_cv_deplibs_check_method=pass_all
  4246. +hpux9* | hpux10* | hpux11*)
  4247. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4248. + # link against other versions.
  4249. + version_type=sunos
  4250. + need_lib_prefix=no
  4251. + need_version=no
  4252. + case $host_cpu in
  4253. + ia64*)
  4254. + shrext_cmds='.so'
  4255. + hardcode_into_libs=yes
  4256. + dynamic_linker="$host_os dld.so"
  4257. + shlibpath_var=LD_LIBRARY_PATH
  4258. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4259. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4260. + soname_spec='${libname}${release}${shared_ext}$major'
  4261. + if test "X$HPUX_IA64_MODE" = X32; then
  4262. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4263. + else
  4264. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4265. + fi
  4266. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4267. ;;
  4268. - sequent)
  4269. - lt_cv_file_magic_cmd='/bin/file'
  4270. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4271. + hppa*64*)
  4272. + shrext_cmds='.sl'
  4273. + hardcode_into_libs=yes
  4274. + dynamic_linker="$host_os dld.sl"
  4275. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4276. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4277. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4278. + soname_spec='${libname}${release}${shared_ext}$major'
  4279. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4280. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4281. ;;
  4282. - sni)
  4283. - lt_cv_file_magic_cmd='/bin/file'
  4284. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4285. - lt_cv_file_magic_test_file=/lib/libc.so
  4286. + *)
  4287. + shrext_cmds='.sl'
  4288. + dynamic_linker="$host_os dld.sl"
  4289. + shlibpath_var=SHLIB_PATH
  4290. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4291. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4292. + soname_spec='${libname}${release}${shared_ext}$major'
  4293. ;;
  4294. - siemens)
  4295. - lt_cv_deplibs_check_method=pass_all
  4296. + esac
  4297. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4298. + postinstall_cmds='chmod 555 $lib'
  4299. + ;;
  4300. +
  4301. +interix[[3-9]]*)
  4302. + version_type=linux
  4303. + need_lib_prefix=no
  4304. + need_version=no
  4305. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4306. + soname_spec='${libname}${release}${shared_ext}$major'
  4307. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4308. + shlibpath_var=LD_LIBRARY_PATH
  4309. + shlibpath_overrides_runpath=no
  4310. + hardcode_into_libs=yes
  4311. + ;;
  4312. +
  4313. +irix5* | irix6* | nonstopux*)
  4314. + case $host_os in
  4315. + nonstopux*) version_type=nonstopux ;;
  4316. + *)
  4317. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4318. + version_type=linux
  4319. + else
  4320. + version_type=irix
  4321. + fi ;;
  4322. + esac
  4323. + need_lib_prefix=no
  4324. + need_version=no
  4325. + soname_spec='${libname}${release}${shared_ext}$major'
  4326. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4327. + case $host_os in
  4328. + irix5* | nonstopux*)
  4329. + libsuff= shlibsuff=
  4330. ;;
  4331. - pc)
  4332. - lt_cv_deplibs_check_method=pass_all
  4333. + *)
  4334. + case $LD in # libtool.m4 will add one of these switches to LD
  4335. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4336. + libsuff= shlibsuff= libmagic=32-bit;;
  4337. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4338. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4339. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4340. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4341. + *) libsuff= shlibsuff= libmagic=never-match;;
  4342. + esac
  4343. ;;
  4344. esac
  4345. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4346. + shlibpath_overrides_runpath=no
  4347. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4348. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4349. + hardcode_into_libs=yes
  4350. ;;
  4351. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4352. - lt_cv_deplibs_check_method=pass_all
  4353. +# No shared lib support for Linux oldld, aout, or coff.
  4354. +linux*oldld* | linux*aout* | linux*coff*)
  4355. + dynamic_linker=no
  4356. ;;
  4357. -esac
  4358. -])
  4359. -file_magic_cmd=$lt_cv_file_magic_cmd
  4360. -deplibs_check_method=$lt_cv_deplibs_check_method
  4361. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4362. -])# AC_DEPLIBS_CHECK_METHOD
  4363. +# This must be Linux ELF.
  4364. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4365. + version_type=linux
  4366. + need_lib_prefix=no
  4367. + need_version=no
  4368. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4369. + soname_spec='${libname}${release}${shared_ext}$major'
  4370. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4371. + shlibpath_var=LD_LIBRARY_PATH
  4372. + shlibpath_overrides_runpath=no
  4373. + # Some binutils ld are patched to set DT_RUNPATH
  4374. + save_LDFLAGS=$LDFLAGS
  4375. + save_libdir=$libdir
  4376. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4377. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4378. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4379. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4380. + [shlibpath_overrides_runpath=yes])])
  4381. + LDFLAGS=$save_LDFLAGS
  4382. + libdir=$save_libdir
  4383. -# AC_PROG_NM
  4384. -# ----------
  4385. -# find the pathname to a BSD-compatible name lister
  4386. -AC_DEFUN([AC_PROG_NM],
  4387. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4388. -[if test -n "$NM"; then
  4389. - # Let the user override the test.
  4390. - lt_cv_path_NM="$NM"
  4391. -else
  4392. - lt_nm_to_check="${ac_tool_prefix}nm"
  4393. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4394. - lt_nm_to_check="$lt_nm_to_check nm"
  4395. + # This implies no fast_install, which is unacceptable.
  4396. + # Some rework will be needed to allow for fast_install
  4397. + # before this can be enabled.
  4398. + hardcode_into_libs=yes
  4399. +
  4400. + # Append ld.so.conf contents to the search path
  4401. + if test -f /etc/ld.so.conf; then
  4402. + 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' ' '`
  4403. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4404. fi
  4405. - for lt_tmp_nm in $lt_nm_to_check; do
  4406. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4407. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4408. - IFS="$lt_save_ifs"
  4409. - test -z "$ac_dir" && ac_dir=.
  4410. - tmp_nm="$ac_dir/$lt_tmp_nm"
  4411. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4412. - # Check to see if the nm accepts a BSD-compat flag.
  4413. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4414. - # nm: unknown option "B" ignored
  4415. - # Tru64's nm complains that /dev/null is an invalid object file
  4416. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4417. - */dev/null* | *'Invalid file or object type'*)
  4418. - lt_cv_path_NM="$tmp_nm -B"
  4419. - break
  4420. - ;;
  4421. - *)
  4422. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4423. - */dev/null*)
  4424. - lt_cv_path_NM="$tmp_nm -p"
  4425. - break
  4426. - ;;
  4427. - *)
  4428. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4429. - continue # so that we can try to find one that supports BSD flags
  4430. - ;;
  4431. - esac
  4432. - ;;
  4433. - esac
  4434. - fi
  4435. - done
  4436. - IFS="$lt_save_ifs"
  4437. - done
  4438. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4439. -fi])
  4440. -NM="$lt_cv_path_NM"
  4441. -])# AC_PROG_NM
  4442. -
  4443. -# AC_CHECK_LIBM
  4444. -# -------------
  4445. -# check for math library
  4446. -AC_DEFUN([AC_CHECK_LIBM],
  4447. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4448. -LIBM=
  4449. -case $host in
  4450. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4451. - # These system don't have libm, or don't need it
  4452. - ;;
  4453. -*-ncr-sysv4.3*)
  4454. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4455. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4456. - ;;
  4457. -*)
  4458. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4459. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4460. + # powerpc, because MkLinux only supported shared libraries with the
  4461. + # GNU dynamic linker. Since this was broken with cross compilers,
  4462. + # most powerpc-linux boxes support dynamic linking these days and
  4463. + # people can always --disable-shared, the test was removed, and we
  4464. + # assume the GNU/Linux dynamic linker is in use.
  4465. + dynamic_linker='GNU/Linux ld.so'
  4466. ;;
  4467. -esac
  4468. -])# AC_CHECK_LIBM
  4469. -
  4470. -
  4471. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4472. -# -----------------------------------
  4473. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4474. -# LTDLINCL to the include flags for the libltdl header and adds
  4475. -# --enable-ltdl-convenience to the configure arguments. Note that
  4476. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4477. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4478. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4479. -# (note the single quotes!). If your package is not flat and you're not
  4480. -# using automake, define top_builddir and top_srcdir appropriately in
  4481. -# the Makefiles.
  4482. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4483. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4484. - case $enable_ltdl_convenience in
  4485. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4486. - "") enable_ltdl_convenience=yes
  4487. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4488. - esac
  4489. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4490. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4491. - # For backwards non-gettext consistent compatibility...
  4492. - INCLTDL="$LTDLINCL"
  4493. -])# AC_LIBLTDL_CONVENIENCE
  4494. +netbsdelf*-gnu)
  4495. + version_type=linux
  4496. + need_lib_prefix=no
  4497. + need_version=no
  4498. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4499. + soname_spec='${libname}${release}${shared_ext}$major'
  4500. + shlibpath_var=LD_LIBRARY_PATH
  4501. + shlibpath_overrides_runpath=no
  4502. + hardcode_into_libs=yes
  4503. + dynamic_linker='NetBSD ld.elf_so'
  4504. + ;;
  4505. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4506. -# -----------------------------------
  4507. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4508. -# LTDLINCL to the include flags for the libltdl header and adds
  4509. -# --enable-ltdl-install to the configure arguments. Note that
  4510. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4511. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4512. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4513. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4514. -# flat and you're not using automake, define top_builddir and top_srcdir
  4515. -# appropriately in the Makefiles.
  4516. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4517. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4518. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4519. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4520. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4521. - [if test x"$enable_ltdl_install" = xno; then
  4522. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4523. - else
  4524. - enable_ltdl_install=yes
  4525. - fi
  4526. - ])
  4527. - if test x"$enable_ltdl_install" = x"yes"; then
  4528. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4529. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4530. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4531. +netbsd*)
  4532. + version_type=sunos
  4533. + need_lib_prefix=no
  4534. + need_version=no
  4535. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4536. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4537. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4538. + dynamic_linker='NetBSD (a.out) ld.so'
  4539. else
  4540. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4541. - LIBLTDL="-lltdl"
  4542. - LTDLINCL=
  4543. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4544. + soname_spec='${libname}${release}${shared_ext}$major'
  4545. + dynamic_linker='NetBSD ld.elf_so'
  4546. fi
  4547. - # For backwards non-gettext consistent compatibility...
  4548. - INCLTDL="$LTDLINCL"
  4549. -])# AC_LIBLTDL_INSTALLABLE
  4550. -
  4551. -
  4552. -# AC_LIBTOOL_CXX
  4553. -# --------------
  4554. -# enable support for C++ libraries
  4555. -AC_DEFUN([AC_LIBTOOL_CXX],
  4556. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4557. -])# AC_LIBTOOL_CXX
  4558. -
  4559. -
  4560. -# _LT_AC_LANG_CXX
  4561. -# ---------------
  4562. -AC_DEFUN([_LT_AC_LANG_CXX],
  4563. -[AC_REQUIRE([AC_PROG_CXX])
  4564. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4565. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4566. -])# _LT_AC_LANG_CXX
  4567. -
  4568. -# _LT_AC_PROG_CXXCPP
  4569. -# ------------------
  4570. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4571. -[
  4572. -AC_REQUIRE([AC_PROG_CXX])
  4573. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4574. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4575. - (test "X$CXX" != "Xg++"))) ; then
  4576. - AC_PROG_CXXCPP
  4577. -fi
  4578. -])# _LT_AC_PROG_CXXCPP
  4579. -
  4580. -# AC_LIBTOOL_F77
  4581. -# --------------
  4582. -# enable support for Fortran 77 libraries
  4583. -AC_DEFUN([AC_LIBTOOL_F77],
  4584. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4585. -])# AC_LIBTOOL_F77
  4586. + shlibpath_var=LD_LIBRARY_PATH
  4587. + shlibpath_overrides_runpath=yes
  4588. + hardcode_into_libs=yes
  4589. + ;;
  4590. +newsos6)
  4591. + version_type=linux
  4592. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4593. + shlibpath_var=LD_LIBRARY_PATH
  4594. + shlibpath_overrides_runpath=yes
  4595. + ;;
  4596. -# _LT_AC_LANG_F77
  4597. -# ---------------
  4598. -AC_DEFUN([_LT_AC_LANG_F77],
  4599. -[AC_REQUIRE([AC_PROG_F77])
  4600. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4601. -])# _LT_AC_LANG_F77
  4602. +*nto* | *qnx*)
  4603. + version_type=qnx
  4604. + need_lib_prefix=no
  4605. + need_version=no
  4606. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4607. + soname_spec='${libname}${release}${shared_ext}$major'
  4608. + shlibpath_var=LD_LIBRARY_PATH
  4609. + shlibpath_overrides_runpath=no
  4610. + hardcode_into_libs=yes
  4611. + dynamic_linker='ldqnx.so'
  4612. + ;;
  4613. +openbsd*)
  4614. + version_type=sunos
  4615. + sys_lib_dlsearch_path_spec="/usr/lib"
  4616. + need_lib_prefix=no
  4617. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4618. + case $host_os in
  4619. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4620. + *) need_version=no ;;
  4621. + esac
  4622. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4623. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4624. + shlibpath_var=LD_LIBRARY_PATH
  4625. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4626. + case $host_os in
  4627. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4628. + shlibpath_overrides_runpath=no
  4629. + ;;
  4630. + *)
  4631. + shlibpath_overrides_runpath=yes
  4632. + ;;
  4633. + esac
  4634. + else
  4635. + shlibpath_overrides_runpath=yes
  4636. + fi
  4637. + ;;
  4638. -# AC_LIBTOOL_GCJ
  4639. -# --------------
  4640. -# enable support for GCJ libraries
  4641. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4642. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4643. -])# AC_LIBTOOL_GCJ
  4644. +os2*)
  4645. + libname_spec='$name'
  4646. + shrext_cmds=".dll"
  4647. + need_lib_prefix=no
  4648. + library_names_spec='$libname${shared_ext} $libname.a'
  4649. + dynamic_linker='OS/2 ld.exe'
  4650. + shlibpath_var=LIBPATH
  4651. + ;;
  4652. +osf3* | osf4* | osf5*)
  4653. + version_type=osf
  4654. + need_lib_prefix=no
  4655. + need_version=no
  4656. + soname_spec='${libname}${release}${shared_ext}$major'
  4657. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4658. + shlibpath_var=LD_LIBRARY_PATH
  4659. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4660. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4661. + ;;
  4662. -# _LT_AC_LANG_GCJ
  4663. -# ---------------
  4664. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4665. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4666. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4667. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4668. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4669. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4670. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4671. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4672. -])# _LT_AC_LANG_GCJ
  4673. +rdos*)
  4674. + dynamic_linker=no
  4675. + ;;
  4676. +solaris*)
  4677. + version_type=linux
  4678. + need_lib_prefix=no
  4679. + need_version=no
  4680. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4681. + soname_spec='${libname}${release}${shared_ext}$major'
  4682. + shlibpath_var=LD_LIBRARY_PATH
  4683. + shlibpath_overrides_runpath=yes
  4684. + hardcode_into_libs=yes
  4685. + # ldd complains unless libraries are executable
  4686. + postinstall_cmds='chmod +x $lib'
  4687. + ;;
  4688. -# AC_LIBTOOL_RC
  4689. -# -------------
  4690. -# enable support for Windows resource files
  4691. -AC_DEFUN([AC_LIBTOOL_RC],
  4692. -[AC_REQUIRE([LT_AC_PROG_RC])
  4693. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4694. -])# AC_LIBTOOL_RC
  4695. +sunos4*)
  4696. + version_type=sunos
  4697. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4698. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4699. + shlibpath_var=LD_LIBRARY_PATH
  4700. + shlibpath_overrides_runpath=yes
  4701. + if test "$with_gnu_ld" = yes; then
  4702. + need_lib_prefix=no
  4703. + fi
  4704. + need_version=yes
  4705. + ;;
  4706. +sysv4 | sysv4.3*)
  4707. + version_type=linux
  4708. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4709. + soname_spec='${libname}${release}${shared_ext}$major'
  4710. + shlibpath_var=LD_LIBRARY_PATH
  4711. + case $host_vendor in
  4712. + sni)
  4713. + shlibpath_overrides_runpath=no
  4714. + need_lib_prefix=no
  4715. + runpath_var=LD_RUN_PATH
  4716. + ;;
  4717. + siemens)
  4718. + need_lib_prefix=no
  4719. + ;;
  4720. + motorola)
  4721. + need_lib_prefix=no
  4722. + need_version=no
  4723. + shlibpath_overrides_runpath=no
  4724. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4725. + ;;
  4726. + esac
  4727. + ;;
  4728. -# AC_LIBTOOL_LANG_C_CONFIG
  4729. -# ------------------------
  4730. -# Ensure that the configuration vars for the C compiler are
  4731. -# suitably defined. Those variables are subsequently used by
  4732. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4733. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4734. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4735. -[lt_save_CC="$CC"
  4736. -AC_LANG_PUSH(C)
  4737. +sysv4*MP*)
  4738. + if test -d /usr/nec ;then
  4739. + version_type=linux
  4740. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4741. + soname_spec='$libname${shared_ext}.$major'
  4742. + shlibpath_var=LD_LIBRARY_PATH
  4743. + fi
  4744. + ;;
  4745. -# Source file extension for C test sources.
  4746. -ac_ext=c
  4747. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4748. + version_type=freebsd-elf
  4749. + need_lib_prefix=no
  4750. + need_version=no
  4751. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4752. + soname_spec='${libname}${release}${shared_ext}$major'
  4753. + shlibpath_var=LD_LIBRARY_PATH
  4754. + shlibpath_overrides_runpath=yes
  4755. + hardcode_into_libs=yes
  4756. + if test "$with_gnu_ld" = yes; then
  4757. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4758. + else
  4759. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4760. + case $host_os in
  4761. + sco3.2v5*)
  4762. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4763. + ;;
  4764. + esac
  4765. + fi
  4766. + sys_lib_dlsearch_path_spec='/usr/lib'
  4767. + ;;
  4768. -# Object file extension for compiled C test sources.
  4769. -objext=o
  4770. -_LT_AC_TAGVAR(objext, $1)=$objext
  4771. +tpf*)
  4772. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4773. + version_type=linux
  4774. + need_lib_prefix=no
  4775. + need_version=no
  4776. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4777. + shlibpath_var=LD_LIBRARY_PATH
  4778. + shlibpath_overrides_runpath=no
  4779. + hardcode_into_libs=yes
  4780. + ;;
  4781. -# Code to be used in simple compile tests
  4782. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4783. +uts4*)
  4784. + version_type=linux
  4785. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4786. + soname_spec='${libname}${release}${shared_ext}$major'
  4787. + shlibpath_var=LD_LIBRARY_PATH
  4788. + ;;
  4789. -# Code to be used in simple link tests
  4790. -lt_simple_link_test_code='int main(){return(0);}\n'
  4791. +*)
  4792. + dynamic_linker=no
  4793. + ;;
  4794. +esac
  4795. +AC_MSG_RESULT([$dynamic_linker])
  4796. +test "$dynamic_linker" = no && can_build_shared=no
  4797. -_LT_AC_SYS_COMPILER
  4798. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4799. +if test "$GCC" = yes; then
  4800. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4801. +fi
  4802. -# save warnings/boilerplate of simple test code
  4803. -_LT_COMPILER_BOILERPLATE
  4804. -_LT_LINKER_BOILERPLATE
  4805. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4806. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4807. +fi
  4808. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4809. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4810. +fi
  4811. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4812. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4813. -AC_LIBTOOL_PROG_CC_C_O($1)
  4814. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4815. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4816. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4817. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4818. -AC_LIBTOOL_SYS_LIB_STRIP
  4819. -AC_LIBTOOL_DLOPEN_SELF
  4820. -
  4821. -# Report which library types will actually be built
  4822. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4823. -AC_MSG_RESULT([$can_build_shared])
  4824. +_LT_DECL([], [variables_saved_for_relink], [1],
  4825. + [Variables whose values should be saved in libtool wrapper scripts and
  4826. + restored at link time])
  4827. +_LT_DECL([], [need_lib_prefix], [0],
  4828. + [Do we need the "lib" prefix for modules?])
  4829. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4830. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4831. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4832. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4833. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4834. + [Is shlibpath searched before the hard-coded library search path?])
  4835. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4836. +_LT_DECL([], [library_names_spec], [1],
  4837. + [[List of archive names. First name is the real one, the rest are links.
  4838. + The last name is the one that the linker finds with -lNAME]])
  4839. +_LT_DECL([], [soname_spec], [1],
  4840. + [[The coded name of the library, if different from the real name]])
  4841. +_LT_DECL([], [postinstall_cmds], [2],
  4842. + [Command to use after installation of a shared archive])
  4843. +_LT_DECL([], [postuninstall_cmds], [2],
  4844. + [Command to use after uninstallation of a shared archive])
  4845. +_LT_DECL([], [finish_cmds], [2],
  4846. + [Commands used to finish a libtool library installation in a directory])
  4847. +_LT_DECL([], [finish_eval], [1],
  4848. + [[As "finish_cmds", except a single script fragment to be evaled but
  4849. + not shown]])
  4850. +_LT_DECL([], [hardcode_into_libs], [0],
  4851. + [Whether we should hardcode library paths into libraries])
  4852. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4853. + [Compile-time system search path for libraries])
  4854. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4855. + [Run-time system search path for libraries])
  4856. +])# _LT_SYS_DYNAMIC_LINKER
  4857. -AC_MSG_CHECKING([whether to build shared libraries])
  4858. -test "$can_build_shared" = "no" && enable_shared=no
  4859. -# On AIX, shared libraries and static libraries use the same namespace, and
  4860. -# are all built from PIC.
  4861. -case $host_os in
  4862. -aix3*)
  4863. - test "$enable_shared" = yes && enable_static=no
  4864. - if test -n "$RANLIB"; then
  4865. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4866. - postinstall_cmds='$RANLIB $lib'
  4867. - fi
  4868. - ;;
  4869. -
  4870. -aix4* | aix5*)
  4871. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4872. - test "$enable_shared" = yes && enable_static=no
  4873. - fi
  4874. - ;;
  4875. -esac
  4876. -AC_MSG_RESULT([$enable_shared])
  4877. -
  4878. -AC_MSG_CHECKING([whether to build static libraries])
  4879. -# Make sure either enable_shared or enable_static is yes.
  4880. -test "$enable_shared" = yes || enable_static=yes
  4881. -AC_MSG_RESULT([$enable_static])
  4882. -
  4883. -AC_LIBTOOL_CONFIG($1)
  4884. -
  4885. -AC_LANG_POP
  4886. -CC="$lt_save_CC"
  4887. -])# AC_LIBTOOL_LANG_C_CONFIG
  4888. -
  4889. -
  4890. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4891. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4892. # --------------------------
  4893. -# Ensure that the configuration vars for the C compiler are
  4894. -# suitably defined. Those variables are subsequently used by
  4895. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4896. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4897. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4898. -[AC_LANG_PUSH(C++)
  4899. -AC_REQUIRE([AC_PROG_CXX])
  4900. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4901. -
  4902. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4903. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4904. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4905. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4906. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4907. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4908. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4909. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4910. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4911. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4912. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4913. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4914. -_LT_AC_TAGVAR(module_cmds, $1)=
  4915. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4916. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4917. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4918. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4919. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4920. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4921. +# find a file program which can recognize shared library
  4922. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4923. +[m4_require([_LT_DECL_EGREP])dnl
  4924. +AC_MSG_CHECKING([for $1])
  4925. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4926. +[case $MAGIC_CMD in
  4927. +[[\\/*] | ?:[\\/]*])
  4928. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4929. + ;;
  4930. +*)
  4931. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4932. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4933. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4934. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4935. +dnl not every word. This closes a longstanding sh security hole.
  4936. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4937. + for ac_dir in $ac_dummy; do
  4938. + IFS="$lt_save_ifs"
  4939. + test -z "$ac_dir" && ac_dir=.
  4940. + if test -f $ac_dir/$1; then
  4941. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4942. + if test -n "$file_magic_test_file"; then
  4943. + case $deplibs_check_method in
  4944. + "file_magic "*)
  4945. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4946. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4947. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4948. + $EGREP "$file_magic_regex" > /dev/null; then
  4949. + :
  4950. + else
  4951. + cat <<_LT_EOF 1>&2
  4952. -# Dependencies to place before and after the object being linked:
  4953. -_LT_AC_TAGVAR(predep_objects, $1)=
  4954. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4955. -_LT_AC_TAGVAR(predeps, $1)=
  4956. -_LT_AC_TAGVAR(postdeps, $1)=
  4957. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4958. +*** Warning: the command libtool uses to detect shared libraries,
  4959. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4960. +*** The result is that libtool may fail to recognize shared libraries
  4961. +*** as such. This will affect the creation of libtool libraries that
  4962. +*** depend on shared libraries, but programs linked with such libtool
  4963. +*** libraries will work regardless of this problem. Nevertheless, you
  4964. +*** may want to report the problem to your system manager and/or to
  4965. +*** bug-libtool@gnu.org
  4966. -# Source file extension for C++ test sources.
  4967. -ac_ext=cpp
  4968. +_LT_EOF
  4969. + fi ;;
  4970. + esac
  4971. + fi
  4972. + break
  4973. + fi
  4974. + done
  4975. + IFS="$lt_save_ifs"
  4976. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  4977. + ;;
  4978. +esac])
  4979. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4980. +if test -n "$MAGIC_CMD"; then
  4981. + AC_MSG_RESULT($MAGIC_CMD)
  4982. +else
  4983. + AC_MSG_RESULT(no)
  4984. +fi
  4985. +_LT_DECL([], [MAGIC_CMD], [0],
  4986. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4987. +])# _LT_PATH_TOOL_PREFIX
  4988. -# Object file extension for compiled C++ test sources.
  4989. -objext=o
  4990. -_LT_AC_TAGVAR(objext, $1)=$objext
  4991. +# Old name:
  4992. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4993. +dnl aclocal-1.4 backwards compatibility:
  4994. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4995. -# Code to be used in simple compile tests
  4996. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4997. -# Code to be used in simple link tests
  4998. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  4999. +# _LT_PATH_MAGIC
  5000. +# --------------
  5001. +# find a file program which can recognize a shared library
  5002. +m4_defun([_LT_PATH_MAGIC],
  5003. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5004. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  5005. + if test -n "$ac_tool_prefix"; then
  5006. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5007. + else
  5008. + MAGIC_CMD=:
  5009. + fi
  5010. +fi
  5011. +])# _LT_PATH_MAGIC
  5012. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5013. -_LT_AC_SYS_COMPILER
  5014. -# save warnings/boilerplate of simple test code
  5015. -_LT_COMPILER_BOILERPLATE
  5016. -_LT_LINKER_BOILERPLATE
  5017. +# LT_PATH_LD
  5018. +# ----------
  5019. +# find the pathname to the GNU or non-GNU linker
  5020. +AC_DEFUN([LT_PATH_LD],
  5021. +[AC_REQUIRE([AC_PROG_CC])dnl
  5022. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5023. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5024. +m4_require([_LT_DECL_SED])dnl
  5025. +m4_require([_LT_DECL_EGREP])dnl
  5026. -# Allow CC to be a program name with arguments.
  5027. -lt_save_CC=$CC
  5028. -lt_save_LD=$LD
  5029. -lt_save_GCC=$GCC
  5030. -GCC=$GXX
  5031. -lt_save_with_gnu_ld=$with_gnu_ld
  5032. -lt_save_path_LD=$lt_cv_path_LD
  5033. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5034. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5035. +AC_ARG_WITH([gnu-ld],
  5036. + [AS_HELP_STRING([--with-gnu-ld],
  5037. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5038. + [test "$withval" = no || with_gnu_ld=yes],
  5039. + [with_gnu_ld=no])dnl
  5040. +
  5041. +ac_prog=ld
  5042. +if test "$GCC" = yes; then
  5043. + # Check if gcc -print-prog-name=ld gives a path.
  5044. + AC_MSG_CHECKING([for ld used by $CC])
  5045. + case $host in
  5046. + *-*-mingw*)
  5047. + # gcc leaves a trailing carriage return which upsets mingw
  5048. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5049. + *)
  5050. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5051. + esac
  5052. + case $ac_prog in
  5053. + # Accept absolute paths.
  5054. + [[\\/]]* | ?:[[\\/]]*)
  5055. + re_direlt='/[[^/]][[^/]]*/\.\./'
  5056. + # Canonicalize the pathname of ld
  5057. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5058. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5059. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5060. + done
  5061. + test -z "$LD" && LD="$ac_prog"
  5062. + ;;
  5063. + "")
  5064. + # If it fails, then pretend we aren't using GCC.
  5065. + ac_prog=ld
  5066. + ;;
  5067. + *)
  5068. + # If it is relative, then search for the first ld in PATH.
  5069. + with_gnu_ld=unknown
  5070. + ;;
  5071. + esac
  5072. +elif test "$with_gnu_ld" = yes; then
  5073. + AC_MSG_CHECKING([for GNU ld])
  5074. else
  5075. - $as_unset lt_cv_prog_gnu_ld
  5076. + AC_MSG_CHECKING([for non-GNU ld])
  5077. fi
  5078. -if test -n "${lt_cv_path_LDCXX+set}"; then
  5079. - lt_cv_path_LD=$lt_cv_path_LDCXX
  5080. +AC_CACHE_VAL(lt_cv_path_LD,
  5081. +[if test -z "$LD"; then
  5082. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5083. + for ac_dir in $PATH; do
  5084. + IFS="$lt_save_ifs"
  5085. + test -z "$ac_dir" && ac_dir=.
  5086. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5087. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5088. + # Check to see if the program is GNU ld. I'd rather use --version,
  5089. + # but apparently some variants of GNU ld only accept -v.
  5090. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5091. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5092. + *GNU* | *'with BFD'*)
  5093. + test "$with_gnu_ld" != no && break
  5094. + ;;
  5095. + *)
  5096. + test "$with_gnu_ld" != yes && break
  5097. + ;;
  5098. + esac
  5099. + fi
  5100. + done
  5101. + IFS="$lt_save_ifs"
  5102. else
  5103. - $as_unset lt_cv_path_LD
  5104. -fi
  5105. -test -z "${LDCXX+set}" || LD=$LDCXX
  5106. -CC=${CXX-"c++"}
  5107. -compiler=$CC
  5108. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5109. -_LT_CC_BASENAME([$compiler])
  5110. -
  5111. -# We don't want -fno-exception wen compiling C++ code, so set the
  5112. -# no_builtin_flag separately
  5113. -if test "$GXX" = yes; then
  5114. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5115. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5116. +fi])
  5117. +LD="$lt_cv_path_LD"
  5118. +if test -n "$LD"; then
  5119. + AC_MSG_RESULT($LD)
  5120. else
  5121. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5122. + AC_MSG_RESULT(no)
  5123. fi
  5124. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5125. +_LT_PATH_LD_GNU
  5126. +AC_SUBST([LD])
  5127. -if test "$GXX" = yes; then
  5128. - # Set up default GNU C++ configuration
  5129. -
  5130. - AC_PROG_LD
  5131. -
  5132. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5133. - # archiving commands below assume that GNU ld is being used.
  5134. - if test "$with_gnu_ld" = yes; then
  5135. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5136. - _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'
  5137. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5138. +])# LT_PATH_LD
  5139. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5140. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5141. +# Old names:
  5142. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5143. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5144. +dnl aclocal-1.4 backwards compatibility:
  5145. +dnl AC_DEFUN([AM_PROG_LD], [])
  5146. +dnl AC_DEFUN([AC_PROG_LD], [])
  5147. +
  5148. +
  5149. +# _LT_PATH_LD_GNU
  5150. +#- --------------
  5151. +m4_defun([_LT_PATH_LD_GNU],
  5152. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5153. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5154. +case `$LD -v 2>&1 </dev/null` in
  5155. +*GNU* | *'with BFD'*)
  5156. + lt_cv_prog_gnu_ld=yes
  5157. + ;;
  5158. +*)
  5159. + lt_cv_prog_gnu_ld=no
  5160. + ;;
  5161. +esac])
  5162. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5163. +])# _LT_PATH_LD_GNU
  5164. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5165. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5166. - # investigate it a little bit more. (MM)
  5167. - wlarc='${wl}'
  5168. - # ancient GNU ld didn't support --whole-archive et. al.
  5169. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5170. - grep 'no-whole-archive' > /dev/null; then
  5171. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5172. +# _LT_CMD_RELOAD
  5173. +# --------------
  5174. +# find reload flag for linker
  5175. +# -- PORTME Some linkers may need a different reload flag.
  5176. +m4_defun([_LT_CMD_RELOAD],
  5177. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5178. + lt_cv_ld_reload_flag,
  5179. + [lt_cv_ld_reload_flag='-r'])
  5180. +reload_flag=$lt_cv_ld_reload_flag
  5181. +case $reload_flag in
  5182. +"" | " "*) ;;
  5183. +*) reload_flag=" $reload_flag" ;;
  5184. +esac
  5185. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5186. +case $host_os in
  5187. + darwin*)
  5188. + if test "$GCC" = yes; then
  5189. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5190. else
  5191. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5192. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5193. fi
  5194. - else
  5195. - with_gnu_ld=no
  5196. - wlarc=
  5197. -
  5198. - # A generic and very simple default shared library creation
  5199. - # command for GNU C++ for the case where it uses the native
  5200. - # linker, instead of GNU ld. If possible, this setting should
  5201. - # overridden to take advantage of the native linker features on
  5202. - # the platform it is being used on.
  5203. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5204. - fi
  5205. + ;;
  5206. +esac
  5207. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5208. +_LT_DECL([], [reload_cmds], [2])dnl
  5209. +])# _LT_CMD_RELOAD
  5210. - # Commands to make compiler produce verbose output that lists
  5211. - # what "hidden" libraries, object files and flags are used when
  5212. - # linking a shared library.
  5213. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5214. -else
  5215. - GXX=no
  5216. - with_gnu_ld=no
  5217. - wlarc=
  5218. -fi
  5219. +# _LT_CHECK_MAGIC_METHOD
  5220. +# ----------------------
  5221. +# how to check for library dependencies
  5222. +# -- PORTME fill in with the dynamic library characteristics
  5223. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5224. +[m4_require([_LT_DECL_EGREP])
  5225. +m4_require([_LT_DECL_OBJDUMP])
  5226. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5227. +lt_cv_deplibs_check_method,
  5228. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5229. +lt_cv_file_magic_test_file=
  5230. +lt_cv_deplibs_check_method='unknown'
  5231. +# Need to set the preceding variable on all platforms that support
  5232. +# interlibrary dependencies.
  5233. +# 'none' -- dependencies not supported.
  5234. +# `unknown' -- same as none, but documents that we really don't know.
  5235. +# 'pass_all' -- all dependencies passed with no checks.
  5236. +# 'test_compile' -- check by making test program.
  5237. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5238. +# which responds to the $file_magic_cmd with a given extended regex.
  5239. +# If you have `file' or equivalent on your system and you're not sure
  5240. +# whether `pass_all' will *always* work, you probably want this one.
  5241. -# PORTME: fill in a description of your system's C++ link characteristics
  5242. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5243. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5244. case $host_os in
  5245. - aix3*)
  5246. - # FIXME: insert proper C++ library support
  5247. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5248. - ;;
  5249. - aix4* | aix5*)
  5250. - if test "$host_cpu" = ia64; then
  5251. - # On IA64, the linker does run time linking by default, so we don't
  5252. - # have to do anything special.
  5253. - aix_use_runtimelinking=no
  5254. - exp_sym_flag='-Bexport'
  5255. - no_entry_flag=""
  5256. - else
  5257. - aix_use_runtimelinking=no
  5258. +aix[[4-9]]*)
  5259. + lt_cv_deplibs_check_method=pass_all
  5260. + ;;
  5261. - # Test if we are trying to use run time linking or normal
  5262. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5263. - # need to do runtime linking.
  5264. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5265. - for ld_flag in $LDFLAGS; do
  5266. - case $ld_flag in
  5267. - *-brtl*)
  5268. - aix_use_runtimelinking=yes
  5269. - break
  5270. - ;;
  5271. - esac
  5272. - done
  5273. - ;;
  5274. - esac
  5275. +beos*)
  5276. + lt_cv_deplibs_check_method=pass_all
  5277. + ;;
  5278. - exp_sym_flag='-bexport'
  5279. - no_entry_flag='-bnoentry'
  5280. - fi
  5281. +bsdi[[45]]*)
  5282. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5283. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5284. + lt_cv_file_magic_test_file=/shlib/libc.so
  5285. + ;;
  5286. - # When large executables or shared objects are built, AIX ld can
  5287. - # have problems creating the table of contents. If linking a library
  5288. - # or program results in "error TOC overflow" add -mminimal-toc to
  5289. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5290. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5291. -
  5292. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5293. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5294. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5295. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5296. +cygwin*)
  5297. + # func_win32_libid is a shell function defined in ltmain.sh
  5298. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5299. + lt_cv_file_magic_cmd='func_win32_libid'
  5300. + ;;
  5301. - if test "$GXX" = yes; then
  5302. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5303. - # We only want to do this on AIX 4.2 and lower, the check
  5304. - # below for broken collect2 doesn't work under 4.3+
  5305. - collect2name=`${CC} -print-prog-name=collect2`
  5306. - if test -f "$collect2name" && \
  5307. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5308. - then
  5309. - # We have reworked collect2
  5310. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5311. - else
  5312. - # We have old collect2
  5313. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5314. - # It fails to find uninstalled libraries when the uninstalled
  5315. - # path is not listed in the libpath. Setting hardcode_minus_L
  5316. - # to unsupported forces relinking
  5317. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5318. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5319. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5320. - fi
  5321. - ;;
  5322. - esac
  5323. - shared_flag='-shared'
  5324. - if test "$aix_use_runtimelinking" = yes; then
  5325. - shared_flag="$shared_flag "'${wl}-G'
  5326. - fi
  5327. - else
  5328. - # not using gcc
  5329. - if test "$host_cpu" = ia64; then
  5330. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5331. - # chokes on -Wl,-G. The following line is correct:
  5332. - shared_flag='-G'
  5333. - else
  5334. - if test "$aix_use_runtimelinking" = yes; then
  5335. - shared_flag='${wl}-G'
  5336. - else
  5337. - shared_flag='${wl}-bM:SRE'
  5338. - fi
  5339. - fi
  5340. - fi
  5341. -
  5342. - # It seems that -bexpall does not export symbols beginning with
  5343. - # underscore (_), so it is better to generate a list of symbols to export.
  5344. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5345. - if test "$aix_use_runtimelinking" = yes; then
  5346. - # Warning - without using the other runtime loading flags (-brtl),
  5347. - # -berok will link without error, but may produce a broken library.
  5348. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5349. - # Determine the default libpath from the value encoded in an empty executable.
  5350. - _LT_AC_SYS_LIBPATH_AIX
  5351. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5352. +mingw* | pw32*)
  5353. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5354. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5355. + # unless we find 'file', for example because we are cross-compiling.
  5356. + if ( file / ) >/dev/null 2>&1; then
  5357. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5358. + lt_cv_file_magic_cmd='func_win32_libid'
  5359. + else
  5360. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5361. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5362. + fi
  5363. + ;;
  5364. - _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5365. - else
  5366. - if test "$host_cpu" = ia64; then
  5367. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5368. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5369. - _LT_AC_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"
  5370. - else
  5371. - # Determine the default libpath from the value encoded in an empty executable.
  5372. - _LT_AC_SYS_LIBPATH_AIX
  5373. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5374. - # Warning - without using the other run time loading flags,
  5375. - # -berok will link without error, but may produce a broken library.
  5376. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5377. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5378. - # Exported symbols can be pulled into shared objects from archives
  5379. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5380. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5381. - # This is similar to how AIX traditionally builds its shared libraries.
  5382. - _LT_AC_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'
  5383. - fi
  5384. - fi
  5385. - ;;
  5386. +cegcc)
  5387. + # use the weaker test based on 'objdump'. See mingw*.
  5388. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5389. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5390. + ;;
  5391. - beos*)
  5392. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5393. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5394. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5395. - # support --undefined. This deserves some investigation. FIXME
  5396. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5397. - else
  5398. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5399. - fi
  5400. - ;;
  5401. +darwin* | rhapsody*)
  5402. + lt_cv_deplibs_check_method=pass_all
  5403. + ;;
  5404. - chorus*)
  5405. - case $cc_basename in
  5406. - *)
  5407. - # FIXME: insert proper C++ library support
  5408. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5409. - ;;
  5410. +freebsd* | dragonfly*)
  5411. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5412. + case $host_cpu in
  5413. + i*86 )
  5414. + # Not sure whether the presence of OpenBSD here was a mistake.
  5415. + # Let's accept both of them until this is cleared up.
  5416. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5417. + lt_cv_file_magic_cmd=/usr/bin/file
  5418. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5419. + ;;
  5420. esac
  5421. - ;;
  5422. + else
  5423. + lt_cv_deplibs_check_method=pass_all
  5424. + fi
  5425. + ;;
  5426. - cygwin* | mingw* | pw32*)
  5427. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5428. - # as there is no search path for DLLs.
  5429. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5430. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5431. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5432. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5433. -
  5434. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5435. - _LT_AC_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'
  5436. - # If the export-symbols file already is a .def file (1st line
  5437. - # is EXPORTS), use it as is; otherwise, prepend...
  5438. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5439. - cp $export_symbols $output_objdir/$soname.def;
  5440. - else
  5441. - echo EXPORTS > $output_objdir/$soname.def;
  5442. - cat $export_symbols >> $output_objdir/$soname.def;
  5443. - fi~
  5444. - $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'
  5445. - else
  5446. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5447. - fi
  5448. +gnu*)
  5449. + lt_cv_deplibs_check_method=pass_all
  5450. ;;
  5451. - darwin* | rhapsody*)
  5452. - case $host_os in
  5453. - rhapsody* | darwin1.[[012]])
  5454. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5455. - ;;
  5456. - *) # Darwin 1.3 on
  5457. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5458. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5459. - else
  5460. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5461. - 10.[[012]])
  5462. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5463. - ;;
  5464. - 10.*)
  5465. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5466. - ;;
  5467. - esac
  5468. - fi
  5469. - ;;
  5470. - esac
  5471. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5472. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5473. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5474. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5475. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5476. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5477. -
  5478. - if test "$GXX" = yes ; then
  5479. - lt_int_apple_cc_single_mod=no
  5480. - output_verbose_link_cmd='echo'
  5481. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5482. - lt_int_apple_cc_single_mod=yes
  5483. - fi
  5484. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5485. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5486. - else
  5487. - _LT_AC_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'
  5488. - fi
  5489. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5490. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5491. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5492. - _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}'
  5493. - else
  5494. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5495. - fi
  5496. - _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}'
  5497. - else
  5498. - case $cc_basename in
  5499. - xlc*)
  5500. - output_verbose_link_cmd='echo'
  5501. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  5502. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5503. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5504. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5505. - _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}'
  5506. - ;;
  5507. - *)
  5508. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5509. - ;;
  5510. - esac
  5511. - fi
  5512. - ;;
  5513. - dgux*)
  5514. - case $cc_basename in
  5515. - ec++*)
  5516. - # FIXME: insert proper C++ library support
  5517. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5518. - ;;
  5519. - ghcx*)
  5520. - # Green Hills C++ Compiler
  5521. - # FIXME: insert proper C++ library support
  5522. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5523. - ;;
  5524. - *)
  5525. - # FIXME: insert proper C++ library support
  5526. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5527. - ;;
  5528. - esac
  5529. - ;;
  5530. - freebsd[[12]]*)
  5531. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5532. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5533. - ;;
  5534. - freebsd-elf*)
  5535. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5536. - ;;
  5537. - freebsd* | dragonfly*)
  5538. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5539. - # conventions
  5540. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5541. +hpux10.20* | hpux11*)
  5542. + lt_cv_file_magic_cmd=/usr/bin/file
  5543. + case $host_cpu in
  5544. + ia64*)
  5545. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5546. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5547. ;;
  5548. - gnu*)
  5549. + hppa*64*)
  5550. + [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]']
  5551. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5552. ;;
  5553. - hpux9*)
  5554. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5555. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5556. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5557. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5558. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5559. - # but as the default
  5560. - # location of the library.
  5561. -
  5562. - case $cc_basename in
  5563. - CC*)
  5564. - # FIXME: insert proper C++ library support
  5565. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5566. - ;;
  5567. - aCC*)
  5568. - _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'
  5569. - # Commands to make compiler produce verbose output that lists
  5570. - # what "hidden" libraries, object files and flags are used when
  5571. - # linking a shared library.
  5572. - #
  5573. - # There doesn't appear to be a way to prevent this compiler from
  5574. - # explicitly linking system object files so we need to strip them
  5575. - # from the output so that they don't get included in the library
  5576. - # dependencies.
  5577. - 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'
  5578. - ;;
  5579. - *)
  5580. - if test "$GXX" = yes; then
  5581. - _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'
  5582. - else
  5583. - # FIXME: insert proper C++ library support
  5584. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5585. - fi
  5586. - ;;
  5587. - esac
  5588. + *)
  5589. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5590. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5591. ;;
  5592. - hpux10*|hpux11*)
  5593. - if test $with_gnu_ld = no; then
  5594. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5595. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5596. + esac
  5597. + ;;
  5598. - case $host_cpu in
  5599. - hppa*64*|ia64*)
  5600. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5601. - ;;
  5602. - *)
  5603. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5604. - ;;
  5605. - esac
  5606. - fi
  5607. - case $host_cpu in
  5608. - hppa*64*|ia64*)
  5609. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5610. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5611. - ;;
  5612. - *)
  5613. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5614. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5615. - # but as the default
  5616. - # location of the library.
  5617. - ;;
  5618. - esac
  5619. +interix[[3-9]]*)
  5620. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5621. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5622. + ;;
  5623. - case $cc_basename in
  5624. - CC*)
  5625. - # FIXME: insert proper C++ library support
  5626. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5627. - ;;
  5628. - aCC*)
  5629. - case $host_cpu in
  5630. - hppa*64*)
  5631. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5632. - ;;
  5633. - ia64*)
  5634. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5635. - ;;
  5636. - *)
  5637. - _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'
  5638. - ;;
  5639. - esac
  5640. - # Commands to make compiler produce verbose output that lists
  5641. - # what "hidden" libraries, object files and flags are used when
  5642. - # linking a shared library.
  5643. - #
  5644. - # There doesn't appear to be a way to prevent this compiler from
  5645. - # explicitly linking system object files so we need to strip them
  5646. - # from the output so that they don't get included in the library
  5647. - # dependencies.
  5648. - 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'
  5649. - ;;
  5650. - *)
  5651. - if test "$GXX" = yes; then
  5652. - if test $with_gnu_ld = no; then
  5653. - case $host_cpu in
  5654. - hppa*64*)
  5655. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5656. - ;;
  5657. - ia64*)
  5658. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5659. - ;;
  5660. - *)
  5661. - _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'
  5662. - ;;
  5663. - esac
  5664. - fi
  5665. - else
  5666. - # FIXME: insert proper C++ library support
  5667. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5668. - fi
  5669. - ;;
  5670. - esac
  5671. - ;;
  5672. - interix3*)
  5673. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5674. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5675. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5676. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5677. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5678. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5679. - # default) and relocated if they conflict, which is a slow very memory
  5680. - # consuming and fragmenting process. To avoid this, we pick a random,
  5681. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5682. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5683. - _LT_AC_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'
  5684. - _LT_AC_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'
  5685. - ;;
  5686. - irix5* | irix6*)
  5687. - case $cc_basename in
  5688. - CC*)
  5689. - # SGI C++
  5690. - _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 ${output_objdir}/so_locations -o $lib'
  5691. -
  5692. - # Archives containing C++ object files must be created using
  5693. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5694. - # necessary to make sure instantiated templates are included
  5695. - # in the archive.
  5696. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5697. - ;;
  5698. - *)
  5699. - if test "$GXX" = yes; then
  5700. - if test "$with_gnu_ld" = no; then
  5701. - _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}${output_objdir}/so_locations -o $lib'
  5702. - else
  5703. - _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'
  5704. - fi
  5705. - fi
  5706. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5707. - ;;
  5708. - esac
  5709. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5710. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5711. - ;;
  5712. - linux* | k*bsd*-gnu)
  5713. - case $cc_basename in
  5714. - KCC*)
  5715. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5716. -
  5717. - # KCC will only create a shared library if the output file
  5718. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5719. - # to its proper name (with version) after linking.
  5720. - _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'
  5721. - _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'
  5722. - # Commands to make compiler produce verbose output that lists
  5723. - # what "hidden" libraries, object files and flags are used when
  5724. - # linking a shared library.
  5725. - #
  5726. - # There doesn't appear to be a way to prevent this compiler from
  5727. - # explicitly linking system object files so we need to strip them
  5728. - # from the output so that they don't get included in the library
  5729. - # dependencies.
  5730. - 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'
  5731. -
  5732. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5733. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5734. -
  5735. - # Archives containing C++ object files must be created using
  5736. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5737. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5738. - ;;
  5739. - icpc*)
  5740. - # Intel C++
  5741. - with_gnu_ld=yes
  5742. - # version 8.0 and above of icpc choke on multiply defined symbols
  5743. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5744. - # earlier do not add the objects themselves.
  5745. - case `$CC -V 2>&1` in
  5746. - *"Version 7."*)
  5747. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5748. - _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'
  5749. - ;;
  5750. - *) # Version 8.0 or newer
  5751. - tmp_idyn=
  5752. - case $host_cpu in
  5753. - ia64*) tmp_idyn=' -i_dynamic';;
  5754. - esac
  5755. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5756. - _LT_AC_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'
  5757. - ;;
  5758. - esac
  5759. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5760. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5761. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5762. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5763. - ;;
  5764. - pgCC*)
  5765. - # Portland Group C++ compiler
  5766. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5767. - _LT_AC_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'
  5768. -
  5769. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5770. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5771. - _LT_AC_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'
  5772. - ;;
  5773. - cxx*)
  5774. - # Compaq C++
  5775. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5776. - _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'
  5777. +irix5* | irix6* | nonstopux*)
  5778. + case $LD in
  5779. + *-32|*"-32 ") libmagic=32-bit;;
  5780. + *-n32|*"-n32 ") libmagic=N32;;
  5781. + *-64|*"-64 ") libmagic=64-bit;;
  5782. + *) libmagic=never-match;;
  5783. + esac
  5784. + lt_cv_deplibs_check_method=pass_all
  5785. + ;;
  5786. - runpath_var=LD_RUN_PATH
  5787. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5788. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5789. +# This must be Linux ELF.
  5790. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5791. + lt_cv_deplibs_check_method=pass_all
  5792. + ;;
  5793. - # Commands to make compiler produce verbose output that lists
  5794. - # what "hidden" libraries, object files and flags are used when
  5795. - # linking a shared library.
  5796. - #
  5797. - # There doesn't appear to be a way to prevent this compiler from
  5798. - # explicitly linking system object files so we need to strip them
  5799. - # from the output so that they don't get included in the library
  5800. - # dependencies.
  5801. - 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'
  5802. - ;;
  5803. - esac
  5804. - ;;
  5805. - lynxos*)
  5806. - # FIXME: insert proper C++ library support
  5807. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5808. - ;;
  5809. - m88k*)
  5810. - # FIXME: insert proper C++ library support
  5811. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5812. - ;;
  5813. - mvs*)
  5814. - case $cc_basename in
  5815. - cxx*)
  5816. - # FIXME: insert proper C++ library support
  5817. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5818. - ;;
  5819. - *)
  5820. - # FIXME: insert proper C++ library support
  5821. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5822. - ;;
  5823. - esac
  5824. - ;;
  5825. - netbsd* | netbsdelf*-gnu)
  5826. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5827. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5828. - wlarc=
  5829. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5830. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5831. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5832. - fi
  5833. - # Workaround some broken pre-1.5 toolchains
  5834. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5835. - ;;
  5836. - openbsd2*)
  5837. - # C++ shared libraries are fairly broken
  5838. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5839. - ;;
  5840. - openbsd*)
  5841. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5842. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5843. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5844. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5845. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5846. - _LT_AC_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'
  5847. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5848. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5849. - fi
  5850. - output_verbose_link_cmd='echo'
  5851. - ;;
  5852. - osf3*)
  5853. - case $cc_basename in
  5854. - KCC*)
  5855. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5856. -
  5857. - # KCC will only create a shared library if the output file
  5858. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5859. - # to its proper name (with version) after linking.
  5860. - _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'
  5861. -
  5862. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5863. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5864. -
  5865. - # Archives containing C++ object files must be created using
  5866. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5867. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5868. -
  5869. - ;;
  5870. - RCC*)
  5871. - # Rational C++ 2.4.1
  5872. - # FIXME: insert proper C++ library support
  5873. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5874. - ;;
  5875. - cxx*)
  5876. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5877. - _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 ${output_objdir}/so_locations -o $lib'
  5878. -
  5879. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5880. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5881. -
  5882. - # Commands to make compiler produce verbose output that lists
  5883. - # what "hidden" libraries, object files and flags are used when
  5884. - # linking a shared library.
  5885. - #
  5886. - # There doesn't appear to be a way to prevent this compiler from
  5887. - # explicitly linking system object files so we need to strip them
  5888. - # from the output so that they don't get included in the library
  5889. - # dependencies.
  5890. - 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'
  5891. - ;;
  5892. - *)
  5893. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5894. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5895. - _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}${output_objdir}/so_locations -o $lib'
  5896. -
  5897. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5898. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5899. -
  5900. - # Commands to make compiler produce verbose output that lists
  5901. - # what "hidden" libraries, object files and flags are used when
  5902. - # linking a shared library.
  5903. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5904. +netbsd* | netbsdelf*-gnu)
  5905. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5906. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5907. + else
  5908. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5909. + fi
  5910. + ;;
  5911. - else
  5912. - # FIXME: insert proper C++ library support
  5913. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5914. - fi
  5915. - ;;
  5916. - esac
  5917. - ;;
  5918. - osf4* | osf5*)
  5919. - case $cc_basename in
  5920. - KCC*)
  5921. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5922. -
  5923. - # KCC will only create a shared library if the output file
  5924. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5925. - # to its proper name (with version) after linking.
  5926. - _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'
  5927. -
  5928. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5929. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5930. -
  5931. - # Archives containing C++ object files must be created using
  5932. - # the KAI C++ compiler.
  5933. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5934. - ;;
  5935. - RCC*)
  5936. - # Rational C++ 2.4.1
  5937. - # FIXME: insert proper C++ library support
  5938. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5939. - ;;
  5940. - cxx*)
  5941. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5942. - _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 ${output_objdir}/so_locations -o $lib'
  5943. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5944. - echo "-hidden">> $lib.exp~
  5945. - $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 ${output_objdir}/so_locations -o $lib~
  5946. - $rm $lib.exp'
  5947. -
  5948. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5949. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5950. -
  5951. - # Commands to make compiler produce verbose output that lists
  5952. - # what "hidden" libraries, object files and flags are used when
  5953. - # linking a shared library.
  5954. - #
  5955. - # There doesn't appear to be a way to prevent this compiler from
  5956. - # explicitly linking system object files so we need to strip them
  5957. - # from the output so that they don't get included in the library
  5958. - # dependencies.
  5959. - 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'
  5960. - ;;
  5961. - *)
  5962. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5963. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5964. - _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}${output_objdir}/so_locations -o $lib'
  5965. -
  5966. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5967. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5968. -
  5969. - # Commands to make compiler produce verbose output that lists
  5970. - # what "hidden" libraries, object files and flags are used when
  5971. - # linking a shared library.
  5972. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5973. +newos6*)
  5974. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  5975. + lt_cv_file_magic_cmd=/usr/bin/file
  5976. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5977. + ;;
  5978. - else
  5979. - # FIXME: insert proper C++ library support
  5980. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5981. - fi
  5982. - ;;
  5983. - esac
  5984. - ;;
  5985. - psos*)
  5986. - # FIXME: insert proper C++ library support
  5987. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5988. - ;;
  5989. - sunos4*)
  5990. - case $cc_basename in
  5991. - CC*)
  5992. - # Sun C++ 4.x
  5993. - # FIXME: insert proper C++ library support
  5994. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5995. - ;;
  5996. - lcc*)
  5997. - # Lucid
  5998. - # FIXME: insert proper C++ library support
  5999. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6000. - ;;
  6001. - *)
  6002. - # FIXME: insert proper C++ library support
  6003. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6004. - ;;
  6005. - esac
  6006. - ;;
  6007. - solaris*)
  6008. - case $cc_basename in
  6009. - CC*)
  6010. - # Sun C++ 4.2, 5.x and Centerline C++
  6011. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  6012. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6013. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6014. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6015. - $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'
  6016. -
  6017. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6018. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6019. - case $host_os in
  6020. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6021. - *)
  6022. - # The C++ compiler is used as linker so we must use $wl
  6023. - # flag to pass the commands to the underlying system
  6024. - # linker. We must also pass each convience library through
  6025. - # to the system linker between allextract/defaultextract.
  6026. - # The C++ compiler will combine linker options so we
  6027. - # cannot just pass the convience library names through
  6028. - # without $wl.
  6029. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6030. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  6031. - ;;
  6032. - esac
  6033. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6034. +*nto* | *qnx*)
  6035. + lt_cv_deplibs_check_method=pass_all
  6036. + ;;
  6037. - output_verbose_link_cmd='echo'
  6038. +openbsd*)
  6039. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6040. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6041. + else
  6042. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6043. + fi
  6044. + ;;
  6045. - # Archives containing C++ object files must be created using
  6046. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6047. - # necessary to make sure instantiated templates are included
  6048. - # in the archive.
  6049. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6050. - ;;
  6051. - gcx*)
  6052. - # Green Hills C++ Compiler
  6053. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6054. +osf3* | osf4* | osf5*)
  6055. + lt_cv_deplibs_check_method=pass_all
  6056. + ;;
  6057. - # The C++ compiler must be used to create the archive.
  6058. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6059. - ;;
  6060. - *)
  6061. - # GNU C++ compiler with Solaris linker
  6062. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6063. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6064. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6065. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6066. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6067. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6068. +rdos*)
  6069. + lt_cv_deplibs_check_method=pass_all
  6070. + ;;
  6071. - # Commands to make compiler produce verbose output that lists
  6072. - # what "hidden" libraries, object files and flags are used when
  6073. - # linking a shared library.
  6074. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6075. - else
  6076. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6077. - # platform.
  6078. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6079. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6080. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6081. +solaris*)
  6082. + lt_cv_deplibs_check_method=pass_all
  6083. + ;;
  6084. - # Commands to make compiler produce verbose output that lists
  6085. - # what "hidden" libraries, object files and flags are used when
  6086. - # linking a shared library.
  6087. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6088. - fi
  6089. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6090. + lt_cv_deplibs_check_method=pass_all
  6091. + ;;
  6092. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6093. - fi
  6094. - ;;
  6095. - esac
  6096. +sysv4 | sysv4.3*)
  6097. + case $host_vendor in
  6098. + motorola)
  6099. + 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]]'
  6100. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6101. ;;
  6102. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6103. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6104. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6105. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6106. - runpath_var='LD_RUN_PATH'
  6107. -
  6108. - case $cc_basename in
  6109. - CC*)
  6110. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6111. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6112. - ;;
  6113. - *)
  6114. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6115. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6116. - ;;
  6117. - esac
  6118. + ncr)
  6119. + lt_cv_deplibs_check_method=pass_all
  6120. ;;
  6121. - sysv5* | sco3.2v5* | sco5v6*)
  6122. - # Note: We can NOT use -z defs as we might desire, because we do not
  6123. - # link with -lc, and that would cause any symbols used from libc to
  6124. - # always be unresolved, which means just about no library would
  6125. - # ever link correctly. If we're not using GNU ld we use -z text
  6126. - # though, which does catch some bad symbols but isn't as heavy-handed
  6127. - # as -z defs.
  6128. - # For security reasons, it is highly recommended that you always
  6129. - # use absolute paths for naming shared libraries, and exclude the
  6130. - # DT_RUNPATH tag from executables and libraries. But doing so
  6131. - # requires that you compile everything twice, which is a pain.
  6132. - # So that behaviour is only enabled if SCOABSPATH is set to a
  6133. - # non-empty value in the environment. Most likely only useful for
  6134. - # creating official distributions of packages.
  6135. - # This is a hack until libtool officially supports absolute path
  6136. - # names for shared libraries.
  6137. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6138. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6139. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6140. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6141. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6142. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6143. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6144. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6145. - runpath_var='LD_RUN_PATH'
  6146. -
  6147. - case $cc_basename in
  6148. - CC*)
  6149. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6150. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6151. - ;;
  6152. - *)
  6153. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6154. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6155. - ;;
  6156. - esac
  6157. + sequent)
  6158. + lt_cv_file_magic_cmd='/bin/file'
  6159. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6160. ;;
  6161. - tandem*)
  6162. - case $cc_basename in
  6163. - NCC*)
  6164. - # NonStop-UX NCC 3.20
  6165. - # FIXME: insert proper C++ library support
  6166. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6167. - ;;
  6168. - *)
  6169. - # FIXME: insert proper C++ library support
  6170. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6171. - ;;
  6172. - esac
  6173. + sni)
  6174. + lt_cv_file_magic_cmd='/bin/file'
  6175. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6176. + lt_cv_file_magic_test_file=/lib/libc.so
  6177. ;;
  6178. - vxworks*)
  6179. - # FIXME: insert proper C++ library support
  6180. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6181. + siemens)
  6182. + lt_cv_deplibs_check_method=pass_all
  6183. ;;
  6184. - *)
  6185. - # FIXME: insert proper C++ library support
  6186. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6187. + pc)
  6188. + lt_cv_deplibs_check_method=pass_all
  6189. ;;
  6190. -esac
  6191. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6192. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6193. -
  6194. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6195. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6196. -
  6197. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6198. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6199. -AC_LIBTOOL_PROG_CC_C_O($1)
  6200. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6201. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6202. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6203. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6204. -
  6205. -AC_LIBTOOL_CONFIG($1)
  6206. -
  6207. -AC_LANG_POP
  6208. -CC=$lt_save_CC
  6209. -LDCXX=$LD
  6210. -LD=$lt_save_LD
  6211. -GCC=$lt_save_GCC
  6212. -with_gnu_ldcxx=$with_gnu_ld
  6213. -with_gnu_ld=$lt_save_with_gnu_ld
  6214. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6215. -lt_cv_path_LD=$lt_save_path_LD
  6216. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6217. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6218. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6219. + esac
  6220. + ;;
  6221. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6222. -# ------------------------------------
  6223. -# Figure out "hidden" library dependencies from verbose
  6224. -# compiler output when linking a shared library.
  6225. -# Parse the compiler output and extract the necessary
  6226. -# objects, libraries and library flags.
  6227. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6228. -dnl we can't use the lt_simple_compile_test_code here,
  6229. -dnl because it contains code intended for an executable,
  6230. -dnl not a library. It's possible we should let each
  6231. -dnl tag define a new lt_????_link_test_code variable,
  6232. -dnl but it's only used here...
  6233. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6234. -int a;
  6235. -void foo (void) { a = 0; }
  6236. -EOF
  6237. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6238. -class Foo
  6239. -{
  6240. -public:
  6241. - Foo (void) { a = 0; }
  6242. -private:
  6243. - int a;
  6244. -};
  6245. -EOF
  6246. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6247. - subroutine foo
  6248. - implicit none
  6249. - integer*4 a
  6250. - a=0
  6251. - return
  6252. - end
  6253. -EOF
  6254. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6255. -public class foo {
  6256. - private int a;
  6257. - public void bar (void) {
  6258. - a = 0;
  6259. - }
  6260. -};
  6261. -EOF
  6262. +tpf*)
  6263. + lt_cv_deplibs_check_method=pass_all
  6264. + ;;
  6265. +esac
  6266. ])
  6267. -dnl Parse the compiler output and extract the necessary
  6268. -dnl objects, libraries and library flags.
  6269. -if AC_TRY_EVAL(ac_compile); then
  6270. - # Parse the compiler output and extract the necessary
  6271. - # objects, libraries and library flags.
  6272. -
  6273. - # Sentinel used to keep track of whether or not we are before
  6274. - # the conftest object file.
  6275. - pre_test_object_deps_done=no
  6276. -
  6277. - # The `*' in the case matches for architectures that use `case' in
  6278. - # $output_verbose_cmd can trigger glob expansion during the loop
  6279. - # eval without this substitution.
  6280. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  6281. -
  6282. - for p in `eval $output_verbose_link_cmd`; do
  6283. - case $p in
  6284. -
  6285. - -L* | -R* | -l*)
  6286. - # Some compilers place space between "-{L,R}" and the path.
  6287. - # Remove the space.
  6288. - if test $p = "-L" \
  6289. - || test $p = "-R"; then
  6290. - prev=$p
  6291. - continue
  6292. - else
  6293. - prev=
  6294. - fi
  6295. -
  6296. - if test "$pre_test_object_deps_done" = no; then
  6297. - case $p in
  6298. - -L* | -R*)
  6299. - # Internal compiler library paths should come after those
  6300. - # provided the user. The postdeps already come after the
  6301. - # user supplied libs so there is no need to process them.
  6302. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6303. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6304. - else
  6305. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6306. - fi
  6307. - ;;
  6308. - # The "-l" case would never come before the object being
  6309. - # linked, so don't bother handling this case.
  6310. - esac
  6311. - else
  6312. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6313. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6314. - else
  6315. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6316. - fi
  6317. - fi
  6318. - ;;
  6319. -
  6320. - *.$objext)
  6321. - # This assumes that the test object file only shows up
  6322. - # once in the compiler output.
  6323. - if test "$p" = "conftest.$objext"; then
  6324. - pre_test_object_deps_done=yes
  6325. - continue
  6326. - fi
  6327. +file_magic_cmd=$lt_cv_file_magic_cmd
  6328. +deplibs_check_method=$lt_cv_deplibs_check_method
  6329. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6330. - if test "$pre_test_object_deps_done" = no; then
  6331. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6332. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6333. - else
  6334. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6335. - fi
  6336. - else
  6337. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6338. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6339. - else
  6340. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6341. - fi
  6342. - fi
  6343. - ;;
  6344. +_LT_DECL([], [deplibs_check_method], [1],
  6345. + [Method to check whether dependent libraries are shared objects])
  6346. +_LT_DECL([], [file_magic_cmd], [1],
  6347. + [Command to use when deplibs_check_method == "file_magic"])
  6348. +])# _LT_CHECK_MAGIC_METHOD
  6349. - *) ;; # Ignore the rest.
  6350. - esac
  6351. +# LT_PATH_NM
  6352. +# ----------
  6353. +# find the pathname to a BSD- or MS-compatible name lister
  6354. +AC_DEFUN([LT_PATH_NM],
  6355. +[AC_REQUIRE([AC_PROG_CC])dnl
  6356. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6357. +[if test -n "$NM"; then
  6358. + # Let the user override the test.
  6359. + lt_cv_path_NM="$NM"
  6360. +else
  6361. + lt_nm_to_check="${ac_tool_prefix}nm"
  6362. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6363. + lt_nm_to_check="$lt_nm_to_check nm"
  6364. + fi
  6365. + for lt_tmp_nm in $lt_nm_to_check; do
  6366. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6367. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6368. + IFS="$lt_save_ifs"
  6369. + test -z "$ac_dir" && ac_dir=.
  6370. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6371. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6372. + # Check to see if the nm accepts a BSD-compat flag.
  6373. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6374. + # nm: unknown option "B" ignored
  6375. + # Tru64's nm complains that /dev/null is an invalid object file
  6376. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6377. + */dev/null* | *'Invalid file or object type'*)
  6378. + lt_cv_path_NM="$tmp_nm -B"
  6379. + break
  6380. + ;;
  6381. + *)
  6382. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6383. + */dev/null*)
  6384. + lt_cv_path_NM="$tmp_nm -p"
  6385. + break
  6386. + ;;
  6387. + *)
  6388. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6389. + continue # so that we can try to find one that supports BSD flags
  6390. + ;;
  6391. + esac
  6392. + ;;
  6393. + esac
  6394. + fi
  6395. + done
  6396. + IFS="$lt_save_ifs"
  6397. done
  6398. -
  6399. - # Clean up.
  6400. - rm -f a.out a.exe
  6401. + : ${lt_cv_path_NM=no}
  6402. +fi])
  6403. +if test "$lt_cv_path_NM" != "no"; then
  6404. + NM="$lt_cv_path_NM"
  6405. else
  6406. - echo "libtool.m4: error: problem compiling $1 test program"
  6407. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6408. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6409. + AC_SUBST([DUMPBIN])
  6410. + if test "$DUMPBIN" != ":"; then
  6411. + NM="$DUMPBIN"
  6412. + fi
  6413. fi
  6414. +test -z "$NM" && NM=nm
  6415. +AC_SUBST([NM])
  6416. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6417. -$rm -f confest.$objext
  6418. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6419. + [lt_cv_nm_interface="BSD nm"
  6420. + echo "int some_variable = 0;" > conftest.$ac_ext
  6421. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6422. + (eval "$ac_compile" 2>conftest.err)
  6423. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6424. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6425. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6426. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6427. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6428. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6429. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6430. + lt_cv_nm_interface="MS dumpbin"
  6431. + fi
  6432. + rm -f conftest*])
  6433. +])# LT_PATH_NM
  6434. +
  6435. +# Old names:
  6436. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6437. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6438. +dnl aclocal-1.4 backwards compatibility:
  6439. +dnl AC_DEFUN([AM_PROG_NM], [])
  6440. +dnl AC_DEFUN([AC_PROG_NM], [])
  6441. -# PORTME: override above test on systems where it is broken
  6442. -ifelse([$1],[CXX],
  6443. -[case $host_os in
  6444. -interix3*)
  6445. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6446. - # hack all around it, let's just trust "g++" to DTRT.
  6447. - _LT_AC_TAGVAR(predep_objects,$1)=
  6448. - _LT_AC_TAGVAR(postdep_objects,$1)=
  6449. - _LT_AC_TAGVAR(postdeps,$1)=
  6450. - ;;
  6451. -solaris*)
  6452. - case $cc_basename in
  6453. - CC*)
  6454. - # Adding this requires a known-good setup of shared libraries for
  6455. - # Sun compiler versions before 5.6, else PIC objects from an old
  6456. - # archive will be linked into the output, leading to subtle bugs.
  6457. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  6458. - ;;
  6459. - esac
  6460. +# LT_LIB_M
  6461. +# --------
  6462. +# check for math library
  6463. +AC_DEFUN([LT_LIB_M],
  6464. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6465. +LIBM=
  6466. +case $host in
  6467. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6468. + # These system don't have libm, or don't need it
  6469. + ;;
  6470. +*-ncr-sysv4.3*)
  6471. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6472. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6473. + ;;
  6474. +*)
  6475. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6476. ;;
  6477. esac
  6478. -])
  6479. -
  6480. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6481. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6482. -esac
  6483. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6484. +AC_SUBST([LIBM])
  6485. +])# LT_LIB_M
  6486. -# AC_LIBTOOL_LANG_F77_CONFIG
  6487. -# --------------------------
  6488. -# Ensure that the configuration vars for the C compiler are
  6489. -# suitably defined. Those variables are subsequently used by
  6490. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6491. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6492. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6493. -[AC_REQUIRE([AC_PROG_F77])
  6494. -AC_LANG_PUSH(Fortran 77)
  6495. +# Old name:
  6496. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6497. +dnl aclocal-1.4 backwards compatibility:
  6498. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6499. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6500. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6501. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6502. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6503. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6504. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6505. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6506. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6507. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6508. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6509. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6510. -_LT_AC_TAGVAR(module_cmds, $1)=
  6511. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6512. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6513. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6514. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6515. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6516. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6517. -# Source file extension for f77 test sources.
  6518. -ac_ext=f
  6519. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6520. +# -------------------------------
  6521. +m4_defun([_LT_COMPILER_NO_RTTI],
  6522. +[m4_require([_LT_TAG_COMPILER])dnl
  6523. -# Object file extension for compiled f77 test sources.
  6524. -objext=o
  6525. -_LT_AC_TAGVAR(objext, $1)=$objext
  6526. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6527. -# Code to be used in simple compile tests
  6528. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6529. +if test "$GCC" = yes; then
  6530. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6531. -# Code to be used in simple link tests
  6532. -lt_simple_link_test_code=" program t\n end\n"
  6533. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6534. + lt_cv_prog_compiler_rtti_exceptions,
  6535. + [-fno-rtti -fno-exceptions], [],
  6536. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6537. +fi
  6538. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6539. + [Compiler flag to turn off builtin functions])
  6540. +])# _LT_COMPILER_NO_RTTI
  6541. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6542. -_LT_AC_SYS_COMPILER
  6543. -# save warnings/boilerplate of simple test code
  6544. -_LT_COMPILER_BOILERPLATE
  6545. -_LT_LINKER_BOILERPLATE
  6546. +# _LT_CMD_GLOBAL_SYMBOLS
  6547. +# ----------------------
  6548. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6549. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6550. +AC_REQUIRE([AC_PROG_CC])dnl
  6551. +AC_REQUIRE([LT_PATH_NM])dnl
  6552. +AC_REQUIRE([LT_PATH_LD])dnl
  6553. +m4_require([_LT_DECL_SED])dnl
  6554. +m4_require([_LT_DECL_EGREP])dnl
  6555. +m4_require([_LT_TAG_COMPILER])dnl
  6556. -# Allow CC to be a program name with arguments.
  6557. -lt_save_CC="$CC"
  6558. -CC=${F77-"f77"}
  6559. -compiler=$CC
  6560. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6561. -_LT_CC_BASENAME([$compiler])
  6562. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6563. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6564. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6565. +[
  6566. +# These are sane defaults that work on at least a few old systems.
  6567. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6568. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6569. -AC_MSG_RESULT([$can_build_shared])
  6570. +# Character class describing NM global symbol codes.
  6571. +symcode='[[BCDEGRST]]'
  6572. -AC_MSG_CHECKING([whether to build shared libraries])
  6573. -test "$can_build_shared" = "no" && enable_shared=no
  6574. +# Regexp to match symbols that can be accessed directly from C.
  6575. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6576. -# On AIX, shared libraries and static libraries use the same namespace, and
  6577. -# are all built from PIC.
  6578. +# Define system-specific variables.
  6579. case $host_os in
  6580. -aix3*)
  6581. - test "$enable_shared" = yes && enable_static=no
  6582. - if test -n "$RANLIB"; then
  6583. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6584. - postinstall_cmds='$RANLIB $lib'
  6585. - fi
  6586. +aix*)
  6587. + symcode='[[BCDT]]'
  6588. ;;
  6589. -aix4* | aix5*)
  6590. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6591. - test "$enable_shared" = yes && enable_static=no
  6592. - fi
  6593. - ;;
  6594. -esac
  6595. -AC_MSG_RESULT([$enable_shared])
  6596. -
  6597. -AC_MSG_CHECKING([whether to build static libraries])
  6598. -# Make sure either enable_shared or enable_static is yes.
  6599. -test "$enable_shared" = yes || enable_static=yes
  6600. -AC_MSG_RESULT([$enable_static])
  6601. -
  6602. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6603. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6604. -
  6605. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6606. -AC_LIBTOOL_PROG_CC_C_O($1)
  6607. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6608. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6609. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6610. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6611. -
  6612. -AC_LIBTOOL_CONFIG($1)
  6613. -
  6614. -AC_LANG_POP
  6615. -CC="$lt_save_CC"
  6616. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6617. -
  6618. -
  6619. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6620. -# --------------------------
  6621. -# Ensure that the configuration vars for the C compiler are
  6622. -# suitably defined. Those variables are subsequently used by
  6623. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6624. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6625. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6626. -[AC_LANG_SAVE
  6627. -
  6628. -# Source file extension for Java test sources.
  6629. -ac_ext=java
  6630. -
  6631. -# Object file extension for compiled Java test sources.
  6632. -objext=o
  6633. -_LT_AC_TAGVAR(objext, $1)=$objext
  6634. -
  6635. -# Code to be used in simple compile tests
  6636. -lt_simple_compile_test_code="class foo {}\n"
  6637. -
  6638. -# Code to be used in simple link tests
  6639. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  6640. -
  6641. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6642. -_LT_AC_SYS_COMPILER
  6643. -
  6644. -# save warnings/boilerplate of simple test code
  6645. -_LT_COMPILER_BOILERPLATE
  6646. -_LT_LINKER_BOILERPLATE
  6647. -
  6648. -# Allow CC to be a program name with arguments.
  6649. -lt_save_CC="$CC"
  6650. -CC=${GCJ-"gcj"}
  6651. -compiler=$CC
  6652. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6653. -_LT_CC_BASENAME([$compiler])
  6654. -
  6655. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6656. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6657. -
  6658. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6659. -
  6660. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6661. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6662. -AC_LIBTOOL_PROG_CC_C_O($1)
  6663. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6664. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6665. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6666. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6667. -
  6668. -AC_LIBTOOL_CONFIG($1)
  6669. -
  6670. -AC_LANG_RESTORE
  6671. -CC="$lt_save_CC"
  6672. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6673. -
  6674. -
  6675. -# AC_LIBTOOL_LANG_RC_CONFIG
  6676. -# -------------------------
  6677. -# Ensure that the configuration vars for the Windows resource compiler are
  6678. -# suitably defined. Those variables are subsequently used by
  6679. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6680. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6681. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6682. -[AC_LANG_SAVE
  6683. -
  6684. -# Source file extension for RC test sources.
  6685. -ac_ext=rc
  6686. -
  6687. -# Object file extension for compiled RC test sources.
  6688. -objext=o
  6689. -_LT_AC_TAGVAR(objext, $1)=$objext
  6690. -
  6691. -# Code to be used in simple compile tests
  6692. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6693. -
  6694. -# Code to be used in simple link tests
  6695. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6696. -
  6697. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6698. -_LT_AC_SYS_COMPILER
  6699. -
  6700. -# save warnings/boilerplate of simple test code
  6701. -_LT_COMPILER_BOILERPLATE
  6702. -_LT_LINKER_BOILERPLATE
  6703. -
  6704. -# Allow CC to be a program name with arguments.
  6705. -lt_save_CC="$CC"
  6706. -CC=${RC-"windres"}
  6707. -compiler=$CC
  6708. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6709. -_LT_CC_BASENAME([$compiler])
  6710. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6711. -
  6712. -AC_LIBTOOL_CONFIG($1)
  6713. -
  6714. -AC_LANG_RESTORE
  6715. -CC="$lt_save_CC"
  6716. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6717. -
  6718. -
  6719. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6720. -# ----------------------------
  6721. -# If TAGNAME is not passed, then create an initial libtool script
  6722. -# with a default configuration from the untagged config vars. Otherwise
  6723. -# add code to config.status for appending the configuration named by
  6724. -# TAGNAME from the matching tagged config vars.
  6725. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6726. -[# The else clause should only fire when bootstrapping the
  6727. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6728. -# with your package, and you will get complaints that there are
  6729. -# no rules to generate ltmain.sh.
  6730. -if test -f "$ltmain"; then
  6731. - # See if we are running on zsh, and set the options which allow our commands through
  6732. - # without removal of \ escapes.
  6733. - if test -n "${ZSH_VERSION+set}" ; then
  6734. - setopt NO_GLOB_SUBST
  6735. - fi
  6736. - # Now quote all the things that may contain metacharacters while being
  6737. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6738. - # variables and quote the copies for generation of the libtool script.
  6739. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  6740. - SED SHELL STRIP \
  6741. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6742. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6743. - deplibs_check_method reload_flag reload_cmds need_locks \
  6744. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6745. - lt_cv_sys_global_symbol_to_c_name_address \
  6746. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6747. - old_postinstall_cmds old_postuninstall_cmds \
  6748. - _LT_AC_TAGVAR(compiler, $1) \
  6749. - _LT_AC_TAGVAR(CC, $1) \
  6750. - _LT_AC_TAGVAR(LD, $1) \
  6751. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6752. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6753. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6754. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6755. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6756. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6757. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6758. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6759. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6760. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6761. - _LT_AC_TAGVAR(predep_objects, $1) \
  6762. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6763. - _LT_AC_TAGVAR(predeps, $1) \
  6764. - _LT_AC_TAGVAR(postdeps, $1) \
  6765. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6766. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6767. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6768. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6769. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6770. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6771. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6772. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6773. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6774. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6775. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6776. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6777. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6778. - _LT_AC_TAGVAR(module_cmds, $1) \
  6779. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6780. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6781. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6782. - _LT_AC_TAGVAR(include_expsyms, $1); do
  6783. -
  6784. - case $var in
  6785. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6786. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6787. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  6788. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6789. - _LT_AC_TAGVAR(module_cmds, $1) | \
  6790. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6791. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6792. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6793. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6794. - postinstall_cmds | postuninstall_cmds | \
  6795. - old_postinstall_cmds | old_postuninstall_cmds | \
  6796. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6797. - # Double-quote double-evaled strings.
  6798. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6799. - ;;
  6800. - *)
  6801. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6802. - ;;
  6803. - esac
  6804. - done
  6805. -
  6806. - case $lt_echo in
  6807. - *'\[$]0 --fallback-echo"')
  6808. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  6809. - ;;
  6810. - esac
  6811. -
  6812. -ifelse([$1], [],
  6813. - [cfgfile="${ofile}T"
  6814. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  6815. - $rm -f "$cfgfile"
  6816. - AC_MSG_NOTICE([creating $ofile])],
  6817. - [cfgfile="$ofile"])
  6818. -
  6819. - cat <<__EOF__ >> "$cfgfile"
  6820. -ifelse([$1], [],
  6821. -[#! $SHELL
  6822. -
  6823. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6824. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6825. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6826. -#
  6827. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  6828. -# Free Software Foundation, Inc.
  6829. -#
  6830. -# This file is part of GNU Libtool:
  6831. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6832. -#
  6833. -# This program is free software; you can redistribute it and/or modify
  6834. -# it under the terms of the GNU General Public License as published by
  6835. -# the Free Software Foundation; either version 2 of the License, or
  6836. -# (at your option) any later version.
  6837. -#
  6838. -# This program is distributed in the hope that it will be useful, but
  6839. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  6840. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6841. -# General Public License for more details.
  6842. -#
  6843. -# You should have received a copy of the GNU General Public License
  6844. -# along with this program; if not, write to the Free Software
  6845. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  6846. -#
  6847. -# As a special exception to the GNU General Public License, if you
  6848. -# distribute this file as part of a program that contains a
  6849. -# configuration script generated by Autoconf, you may include it under
  6850. -# the same distribution terms that you use for the rest of that program.
  6851. -
  6852. -# A sed program that does not truncate output.
  6853. -SED=$lt_SED
  6854. -
  6855. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6856. -Xsed="$SED -e 1s/^X//"
  6857. -
  6858. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6859. -# if CDPATH is set.
  6860. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6861. -
  6862. -# The names of the tagged configurations supported by this script.
  6863. -available_tags=
  6864. -
  6865. -# ### BEGIN LIBTOOL CONFIG],
  6866. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6867. -
  6868. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6869. -
  6870. -# Shell to use when invoking shell scripts.
  6871. -SHELL=$lt_SHELL
  6872. -
  6873. -# Whether or not to build shared libraries.
  6874. -build_libtool_libs=$enable_shared
  6875. -
  6876. -# Whether or not to build static libraries.
  6877. -build_old_libs=$enable_static
  6878. -
  6879. -# Whether or not to add -lc for building shared libraries.
  6880. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6881. -
  6882. -# Whether or not to disallow shared libs when runtime libs are static
  6883. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6884. -
  6885. -# Whether or not to optimize for fast installation.
  6886. -fast_install=$enable_fast_install
  6887. -
  6888. -# The host system.
  6889. -host_alias=$host_alias
  6890. -host=$host
  6891. -host_os=$host_os
  6892. -
  6893. -# The build system.
  6894. -build_alias=$build_alias
  6895. -build=$build
  6896. -build_os=$build_os
  6897. -
  6898. -# An echo program that does not interpret backslashes.
  6899. -echo=$lt_echo
  6900. -
  6901. -# The archiver.
  6902. -AR=$lt_AR
  6903. -AR_FLAGS=$lt_AR_FLAGS
  6904. -
  6905. -# A C compiler.
  6906. -LTCC=$lt_LTCC
  6907. -
  6908. -# LTCC compiler flags.
  6909. -LTCFLAGS=$lt_LTCFLAGS
  6910. -
  6911. -# A language-specific compiler.
  6912. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6913. -
  6914. -# Is the compiler the GNU C compiler?
  6915. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6916. -
  6917. -# An ERE matcher.
  6918. -EGREP=$lt_EGREP
  6919. -
  6920. -# The linker used to build libraries.
  6921. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6922. -
  6923. -# Whether we need hard or soft links.
  6924. -LN_S=$lt_LN_S
  6925. -
  6926. -# A BSD-compatible nm program.
  6927. -NM=$lt_NM
  6928. -
  6929. -# A symbol stripping program
  6930. -STRIP=$lt_STRIP
  6931. -
  6932. -# Used to examine libraries when file_magic_cmd begins "file"
  6933. -MAGIC_CMD=$MAGIC_CMD
  6934. -
  6935. -# Used on cygwin: DLL creation program.
  6936. -DLLTOOL="$DLLTOOL"
  6937. -
  6938. -# Used on cygwin: object dumper.
  6939. -OBJDUMP="$OBJDUMP"
  6940. -
  6941. -# Used on cygwin: assembler.
  6942. -AS="$AS"
  6943. -
  6944. -# The name of the directory that contains temporary libtool files.
  6945. -objdir=$objdir
  6946. -
  6947. -# How to create reloadable object files.
  6948. -reload_flag=$lt_reload_flag
  6949. -reload_cmds=$lt_reload_cmds
  6950. -
  6951. -# How to pass a linker flag through the compiler.
  6952. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6953. -
  6954. -# Object file suffix (normally "o").
  6955. -objext="$ac_objext"
  6956. -
  6957. -# Old archive suffix (normally "a").
  6958. -libext="$libext"
  6959. -
  6960. -# Shared library suffix (normally ".so").
  6961. -shrext_cmds='$shrext_cmds'
  6962. -
  6963. -# Executable file suffix (normally "").
  6964. -exeext="$exeext"
  6965. -
  6966. -# Additional compiler flags for building library objects.
  6967. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6968. -pic_mode=$pic_mode
  6969. -
  6970. -# What is the maximum length of a command?
  6971. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6972. -
  6973. -# Does compiler simultaneously support -c and -o options?
  6974. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6975. -
  6976. -# Must we lock files when doing compilation?
  6977. -need_locks=$lt_need_locks
  6978. -
  6979. -# Do we need the lib prefix for modules?
  6980. -need_lib_prefix=$need_lib_prefix
  6981. -
  6982. -# Do we need a version for libraries?
  6983. -need_version=$need_version
  6984. -
  6985. -# Whether dlopen is supported.
  6986. -dlopen_support=$enable_dlopen
  6987. -
  6988. -# Whether dlopen of programs is supported.
  6989. -dlopen_self=$enable_dlopen_self
  6990. -
  6991. -# Whether dlopen of statically linked programs is supported.
  6992. -dlopen_self_static=$enable_dlopen_self_static
  6993. -
  6994. -# Compiler flag to prevent dynamic linking.
  6995. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6996. -
  6997. -# Compiler flag to turn off builtin functions.
  6998. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6999. -
  7000. -# Compiler flag to allow reflexive dlopens.
  7001. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7002. -
  7003. -# Compiler flag to generate shared objects directly from archives.
  7004. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7005. -
  7006. -# Compiler flag to generate thread-safe objects.
  7007. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7008. -
  7009. -# Library versioning type.
  7010. -version_type=$version_type
  7011. -
  7012. -# Format of library name prefix.
  7013. -libname_spec=$lt_libname_spec
  7014. -
  7015. -# List of archive names. First name is the real one, the rest are links.
  7016. -# The last name is the one that the linker finds with -lNAME.
  7017. -library_names_spec=$lt_library_names_spec
  7018. -
  7019. -# The coded name of the library, if different from the real name.
  7020. -soname_spec=$lt_soname_spec
  7021. -
  7022. -# Commands used to build and install an old-style archive.
  7023. -RANLIB=$lt_RANLIB
  7024. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7025. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7026. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7027. -
  7028. -# Create an old-style archive from a shared archive.
  7029. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7030. -
  7031. -# Create a temporary old-style archive to link instead of a shared archive.
  7032. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7033. -
  7034. -# Commands used to build and install a shared archive.
  7035. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7036. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7037. -postinstall_cmds=$lt_postinstall_cmds
  7038. -postuninstall_cmds=$lt_postuninstall_cmds
  7039. -
  7040. -# Commands used to build a loadable module (assumed same as above if empty)
  7041. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7042. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7043. -
  7044. -# Commands to strip libraries.
  7045. -old_striplib=$lt_old_striplib
  7046. -striplib=$lt_striplib
  7047. -
  7048. -# Dependencies to place before the objects being linked to create a
  7049. -# shared library.
  7050. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7051. -
  7052. -# Dependencies to place after the objects being linked to create a
  7053. -# shared library.
  7054. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7055. -
  7056. -# Dependencies to place before the objects being linked to create a
  7057. -# shared library.
  7058. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7059. -
  7060. -# Dependencies to place after the objects being linked to create a
  7061. -# shared library.
  7062. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7063. -
  7064. -# The library search path used internally by the compiler when linking
  7065. -# a shared library.
  7066. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  7067. -
  7068. -# Method to check whether dependent libraries are shared objects.
  7069. -deplibs_check_method=$lt_deplibs_check_method
  7070. -
  7071. -# Command to use when deplibs_check_method == file_magic.
  7072. -file_magic_cmd=$lt_file_magic_cmd
  7073. -
  7074. -# Flag that allows shared libraries with undefined symbols to be built.
  7075. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7076. -
  7077. -# Flag that forces no undefined symbols.
  7078. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  7079. -
  7080. -# Commands used to finish a libtool library installation in a directory.
  7081. -finish_cmds=$lt_finish_cmds
  7082. -
  7083. -# Same as above, but a single script fragment to be evaled but not shown.
  7084. -finish_eval=$lt_finish_eval
  7085. -
  7086. -# Take the output of nm and produce a listing of raw symbols and C names.
  7087. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  7088. -
  7089. -# Transform the output of nm in a proper C declaration
  7090. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7091. -
  7092. -# Transform the output of nm in a C name address pair
  7093. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7094. -
  7095. -# This is the shared library runtime path variable.
  7096. -runpath_var=$runpath_var
  7097. -
  7098. -# This is the shared library path variable.
  7099. -shlibpath_var=$shlibpath_var
  7100. -
  7101. -# Is shlibpath searched before the hard-coded library search path?
  7102. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7103. -
  7104. -# How to hardcode a shared library path into an executable.
  7105. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7106. -
  7107. -# Whether we should hardcode library paths into libraries.
  7108. -hardcode_into_libs=$hardcode_into_libs
  7109. -
  7110. -# Flag to hardcode \$libdir into a binary during linking.
  7111. -# This must work even if \$libdir does not exist.
  7112. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7113. -
  7114. -# If ld is used when linking, flag to hardcode \$libdir into
  7115. -# a binary during linking. This must work even if \$libdir does
  7116. -# not exist.
  7117. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7118. -
  7119. -# Whether we need a single -rpath flag with a separated argument.
  7120. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7121. -
  7122. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7123. -# resulting binary.
  7124. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7125. -
  7126. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7127. -# resulting binary.
  7128. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7129. -
  7130. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7131. -# the resulting binary.
  7132. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7133. -
  7134. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7135. -# and all subsequent libraries and executables linked against it.
  7136. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7137. -
  7138. -# Variables whose values should be saved in libtool wrapper scripts and
  7139. -# restored at relink time.
  7140. -variables_saved_for_relink="$variables_saved_for_relink"
  7141. -
  7142. -# Whether libtool must link a program against all its dependency libraries.
  7143. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7144. -
  7145. -# Compile-time system search path for libraries
  7146. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7147. -
  7148. -# Run-time system search path for libraries
  7149. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7150. -
  7151. -# Fix the shell variable \$srcfile for the compiler.
  7152. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  7153. -
  7154. -# Set to yes if exported symbols are required.
  7155. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7156. -
  7157. -# The commands to list exported symbols.
  7158. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7159. -
  7160. -# The commands to extract the exported symbol list from a shared archive.
  7161. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7162. -
  7163. -# Symbols that should not be listed in the preloaded symbols.
  7164. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7165. -
  7166. -# Symbols that must always be exported.
  7167. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7168. -
  7169. -ifelse([$1],[],
  7170. -[# ### END LIBTOOL CONFIG],
  7171. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7172. -
  7173. -__EOF__
  7174. -
  7175. -ifelse([$1],[], [
  7176. - case $host_os in
  7177. - aix3*)
  7178. - cat <<\EOF >> "$cfgfile"
  7179. -
  7180. -# AIX sometimes has problems with the GCC collect2 program. For some
  7181. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7182. -# vanish in a puff of smoke.
  7183. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7184. - COLLECT_NAMES=
  7185. - export COLLECT_NAMES
  7186. -fi
  7187. -EOF
  7188. - ;;
  7189. - esac
  7190. -
  7191. - # We use sed instead of cat because bash on DJGPP gets confused if
  7192. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7193. - # text mode, it properly converts lines to CR/LF. This bash problem
  7194. - # is reportedly fixed, but why not run on old versions too?
  7195. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7196. -
  7197. - mv -f "$cfgfile" "$ofile" || \
  7198. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7199. - chmod +x "$ofile"
  7200. -])
  7201. -else
  7202. - # If there is no Makefile yet, we rely on a make rule to execute
  7203. - # `config.status --recheck' to rerun these tests and create the
  7204. - # libtool script then.
  7205. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7206. - if test -f "$ltmain_in"; then
  7207. - test -f Makefile && make "$ltmain"
  7208. - fi
  7209. -fi
  7210. -])# AC_LIBTOOL_CONFIG
  7211. -
  7212. -
  7213. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7214. -# -------------------------------------------
  7215. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7216. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7217. -
  7218. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7219. -
  7220. -if test "$GCC" = yes; then
  7221. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7222. -
  7223. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7224. - lt_cv_prog_compiler_rtti_exceptions,
  7225. - [-fno-rtti -fno-exceptions], [],
  7226. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7227. -fi
  7228. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7229. -
  7230. -
  7231. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7232. -# ---------------------------------
  7233. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7234. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7235. -AC_REQUIRE([AC_PROG_NM])
  7236. -AC_REQUIRE([AC_OBJEXT])
  7237. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7238. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7239. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7240. -[
  7241. -# These are sane defaults that work on at least a few old systems.
  7242. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7243. -
  7244. -# Character class describing NM global symbol codes.
  7245. -symcode='[[BCDEGRST]]'
  7246. -
  7247. -# Regexp to match symbols that can be accessed directly from C.
  7248. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7249. -
  7250. -# Transform an extracted symbol line into a proper C declaration
  7251. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7252. -
  7253. -# Transform an extracted symbol line into symbol name and symbol address
  7254. -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'"
  7255. -
  7256. -# Define system-specific variables.
  7257. -case $host_os in
  7258. -aix*)
  7259. - symcode='[[BCDT]]'
  7260. - ;;
  7261. -cygwin* | mingw* | pw32*)
  7262. - symcode='[[ABCDGISTW]]'
  7263. - ;;
  7264. -hpux*) # Its linker distinguishes data from code symbols
  7265. - if test "$host_cpu" = ia64; then
  7266. - symcode='[[ABCDEGRST]]'
  7267. - fi
  7268. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7269. - 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'"
  7270. - ;;
  7271. -linux* | k*bsd*-gnu)
  7272. - if test "$host_cpu" = ia64; then
  7273. - symcode='[[ABCDGIRSTW]]'
  7274. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7275. - 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'"
  7276. +cygwin* | mingw* | pw32* | cegcc*)
  7277. + symcode='[[ABCDGISTW]]'
  7278. + ;;
  7279. +hpux*)
  7280. + if test "$host_cpu" = ia64; then
  7281. + symcode='[[ABCDEGRST]]'
  7282. fi
  7283. ;;
  7284. irix* | nonstopux*)
  7285. @@ -4665,44 +3383,72 @@
  7286. ;;
  7287. esac
  7288. -# Handle CRLF in mingw tool chain
  7289. -opt_cr=
  7290. -case $build_os in
  7291. -mingw*)
  7292. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7293. - ;;
  7294. -esac
  7295. -
  7296. # If we're using GNU nm, then use its standard symbol codes.
  7297. case `$NM -V 2>&1` in
  7298. *GNU* | *'with BFD'*)
  7299. symcode='[[ABCDGIRSTW]]' ;;
  7300. esac
  7301. -# Try without a prefix undercore, then with it.
  7302. -for ac_symprfx in "" "_"; do
  7303. +# Transform an extracted symbol line into a proper C declaration.
  7304. +# Some systems (esp. on ia64) link data and code symbols differently,
  7305. +# so use this general approach.
  7306. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7307. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7308. +# Transform an extracted symbol line into symbol name and symbol address
  7309. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7310. +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'"
  7311. +
  7312. +# Handle CRLF in mingw tool chain
  7313. +opt_cr=
  7314. +case $build_os in
  7315. +mingw*)
  7316. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7317. + ;;
  7318. +esac
  7319. +
  7320. +# Try without a prefix underscore, then with it.
  7321. +for ac_symprfx in "" "_"; do
  7322. +
  7323. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7324. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7325. # Write the raw and C identifiers.
  7326. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7327. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7328. + # Fake it for dumpbin and say T for any non-static function
  7329. + # and D for any global variable.
  7330. + # Also find C++ and __fastcall symbols from MSVC++,
  7331. + # which start with @ or ?.
  7332. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  7333. +" {last_section=section; section=\$ 3};"\
  7334. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7335. +" \$ 0!~/External *\|/{next};"\
  7336. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7337. +" {if(hide[section]) next};"\
  7338. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7339. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7340. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7341. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7342. +" ' prfx=^$ac_symprfx]"
  7343. + else
  7344. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7345. + fi
  7346. # Check to see that the pipe works correctly.
  7347. pipe_works=no
  7348. rm -f conftest*
  7349. - cat > conftest.$ac_ext <<EOF
  7350. + cat > conftest.$ac_ext <<_LT_EOF
  7351. #ifdef __cplusplus
  7352. extern "C" {
  7353. #endif
  7354. char nm_test_var;
  7355. -void nm_test_func(){}
  7356. +void nm_test_func(void);
  7357. +void nm_test_func(void){}
  7358. #ifdef __cplusplus
  7359. }
  7360. #endif
  7361. int main(){nm_test_var='a';nm_test_func();return(0);}
  7362. -EOF
  7363. +_LT_EOF
  7364. if AC_TRY_EVAL(ac_compile); then
  7365. # Now try to grab the symbols.
  7366. @@ -4716,48 +3462,50 @@
  7367. fi
  7368. # Make sure that we snagged all the symbols we need.
  7369. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7370. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7371. - cat <<EOF > conftest.$ac_ext
  7372. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7373. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7374. + cat <<_LT_EOF > conftest.$ac_ext
  7375. #ifdef __cplusplus
  7376. extern "C" {
  7377. #endif
  7378. -EOF
  7379. +_LT_EOF
  7380. # Now generate the symbol file.
  7381. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  7382. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7383. - cat <<EOF >> conftest.$ac_ext
  7384. -#if defined (__STDC__) && __STDC__
  7385. -# define lt_ptr_t void *
  7386. -#else
  7387. -# define lt_ptr_t char *
  7388. -# define const
  7389. -#endif
  7390. + cat <<_LT_EOF >> conftest.$ac_ext
  7391. -/* The mapping between symbol names and symbols. */
  7392. +/* The mapping between symbol names and symbols. */
  7393. const struct {
  7394. const char *name;
  7395. - lt_ptr_t address;
  7396. + void *address;
  7397. }
  7398. -lt_preloaded_symbols[[]] =
  7399. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  7400. {
  7401. -EOF
  7402. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  7403. - cat <<\EOF >> conftest.$ac_ext
  7404. - {0, (lt_ptr_t) 0}
  7405. + { "@PROGRAM@", (void *) 0 },
  7406. +_LT_EOF
  7407. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7408. + cat <<\_LT_EOF >> conftest.$ac_ext
  7409. + {0, (void *) 0}
  7410. };
  7411. +/* This works around a problem in FreeBSD linker */
  7412. +#ifdef FREEBSD_WORKAROUND
  7413. +static const void *lt_preloaded_setup() {
  7414. + return lt__PROGRAM__LTX_preloaded_symbols;
  7415. +}
  7416. +#endif
  7417. +
  7418. #ifdef __cplusplus
  7419. }
  7420. #endif
  7421. -EOF
  7422. +_LT_EOF
  7423. # Now try linking the two files.
  7424. mv conftest.$ac_objext conftstm.$ac_objext
  7425. lt_save_LIBS="$LIBS"
  7426. lt_save_CFLAGS="$CFLAGS"
  7427. LIBS="conftstm.$ac_objext"
  7428. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  7429. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  7430. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  7431. pipe_works=yes
  7432. fi
  7433. @@ -4776,7 +3524,7 @@
  7434. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  7435. cat conftest.$ac_ext >&5
  7436. fi
  7437. - rm -f conftest* conftst*
  7438. + rm -rf conftest* conftst*
  7439. # Do not use the global_symbol_pipe unless it works.
  7440. if test "$pipe_works" = yes; then
  7441. @@ -4794,115 +3542,136 @@
  7442. else
  7443. AC_MSG_RESULT(ok)
  7444. fi
  7445. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7446. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  7447. + [Take the output of nm and produce a listing of raw symbols and C names])
  7448. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  7449. + [Transform the output of nm in a proper C declaration])
  7450. +_LT_DECL([global_symbol_to_c_name_address],
  7451. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  7452. + [Transform the output of nm in a C name address pair])
  7453. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  7454. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  7455. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  7456. +]) # _LT_CMD_GLOBAL_SYMBOLS
  7457. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  7458. -# ---------------------------------------
  7459. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  7460. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  7461. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7462. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  7463. +
  7464. +# _LT_COMPILER_PIC([TAGNAME])
  7465. +# ---------------------------
  7466. +m4_defun([_LT_COMPILER_PIC],
  7467. +[m4_require([_LT_TAG_COMPILER])dnl
  7468. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  7469. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7470. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  7471. AC_MSG_CHECKING([for $compiler option to produce PIC])
  7472. - ifelse([$1],[CXX],[
  7473. +m4_if([$1], [CXX], [
  7474. # C++ specific cases for pic, static, wl, etc.
  7475. if test "$GXX" = yes; then
  7476. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7477. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7478. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7479. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7480. case $host_os in
  7481. aix*)
  7482. # All AIX code is PIC.
  7483. if test "$host_cpu" = ia64; then
  7484. # AIX 5 now supports IA64 processor
  7485. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7486. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7487. fi
  7488. ;;
  7489. +
  7490. amigaos*)
  7491. - # FIXME: we need at least 68020 code to build shared libraries, but
  7492. - # adding the `-m68020' flag to GCC prevents building anything better,
  7493. - # like `-m68040'.
  7494. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7495. + case $host_cpu in
  7496. + powerpc)
  7497. + # see comment about AmigaOS4 .so support
  7498. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7499. + ;;
  7500. + m68k)
  7501. + # FIXME: we need at least 68020 code to build shared libraries, but
  7502. + # adding the `-m68020' flag to GCC prevents building anything better,
  7503. + # like `-m68040'.
  7504. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7505. + ;;
  7506. + esac
  7507. ;;
  7508. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7509. +
  7510. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7511. # PIC is the default for these OSes.
  7512. ;;
  7513. - mingw* | os2* | pw32*)
  7514. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  7515. # This hack is so that the source file can tell whether it is being
  7516. # built for inclusion in a dll (and should export symbols for example).
  7517. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7518. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7519. + # (--disable-auto-import) libraries
  7520. + m4_if([$1], [GCJ], [],
  7521. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7522. ;;
  7523. darwin* | rhapsody*)
  7524. # PIC is the default on this platform
  7525. # Common symbols not allowed in MH_DYLIB files
  7526. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7527. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7528. ;;
  7529. *djgpp*)
  7530. # DJGPP does not support shared libraries at all
  7531. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7532. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7533. ;;
  7534. - interix3*)
  7535. + interix[[3-9]]*)
  7536. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7537. # Instead, we relocate shared libraries at runtime.
  7538. ;;
  7539. sysv4*MP*)
  7540. if test -d /usr/nec; then
  7541. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7542. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7543. fi
  7544. ;;
  7545. hpux*)
  7546. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7547. - # not for PA HP-UX.
  7548. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7549. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7550. + # sets the default TLS model and affects inlining.
  7551. case $host_cpu in
  7552. - hppa*64*|ia64*)
  7553. + hppa*64*)
  7554. ;;
  7555. *)
  7556. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7557. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7558. ;;
  7559. esac
  7560. ;;
  7561. + *qnx* | *nto*)
  7562. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7563. + # it will coredump.
  7564. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7565. + ;;
  7566. *)
  7567. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7568. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7569. ;;
  7570. esac
  7571. else
  7572. case $host_os in
  7573. - aix4* | aix5*)
  7574. + aix[[4-9]]*)
  7575. # All AIX code is PIC.
  7576. if test "$host_cpu" = ia64; then
  7577. # AIX 5 now supports IA64 processor
  7578. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7579. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7580. else
  7581. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7582. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7583. fi
  7584. ;;
  7585. chorus*)
  7586. case $cc_basename in
  7587. cxch68*)
  7588. # Green Hills C++ Compiler
  7589. - # _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"
  7590. + # _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"
  7591. ;;
  7592. esac
  7593. ;;
  7594. - darwin*)
  7595. - # PIC is the default on this platform
  7596. - # Common symbols not allowed in MH_DYLIB files
  7597. - case $cc_basename in
  7598. - xlc*)
  7599. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  7600. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7601. - ;;
  7602. - esac
  7603. - ;;
  7604. dgux*)
  7605. case $cc_basename in
  7606. ec++*)
  7607. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7608. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7609. ;;
  7610. ghcx*)
  7611. # Green Hills C++ Compiler
  7612. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7613. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7614. ;;
  7615. *)
  7616. ;;
  7617. @@ -4914,21 +3683,21 @@
  7618. hpux9* | hpux10* | hpux11*)
  7619. case $cc_basename in
  7620. CC*)
  7621. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7622. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7623. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7624. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7625. if test "$host_cpu" != ia64; then
  7626. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7627. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7628. fi
  7629. ;;
  7630. aCC*)
  7631. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7632. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7633. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7634. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7635. case $host_cpu in
  7636. hppa*64*|ia64*)
  7637. # +Z the default
  7638. ;;
  7639. *)
  7640. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7641. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7642. ;;
  7643. esac
  7644. ;;
  7645. @@ -4943,41 +3712,62 @@
  7646. irix5* | irix6* | nonstopux*)
  7647. case $cc_basename in
  7648. CC*)
  7649. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7650. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7651. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7652. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7653. # CC pic flag -KPIC is the default.
  7654. ;;
  7655. *)
  7656. ;;
  7657. esac
  7658. ;;
  7659. - linux* | k*bsd*-gnu)
  7660. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7661. case $cc_basename in
  7662. KCC*)
  7663. # KAI C++ Compiler
  7664. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7665. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7666. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7667. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7668. ;;
  7669. - icpc* | ecpc*)
  7670. - # Intel C++
  7671. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7672. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7673. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7674. - ;;
  7675. - pgCC*)
  7676. - # Portland Group C++ compiler.
  7677. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7678. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7679. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7680. + ecpc* )
  7681. + # old Intel C++ for x86_64 which still supported -KPIC.
  7682. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7683. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7684. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7685. + ;;
  7686. + icpc* )
  7687. + # Intel C++, used to be incompatible with GCC.
  7688. + # ICC 10 doesn't accept -KPIC any more.
  7689. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7690. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7691. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7692. + ;;
  7693. + pgCC* | pgcpp*)
  7694. + # Portland Group C++ compiler
  7695. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7696. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7697. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7698. ;;
  7699. cxx*)
  7700. # Compaq C++
  7701. # Make sure the PIC flag is empty. It appears that all Alpha
  7702. # Linux and Compaq Tru64 Unix objects are PIC.
  7703. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7704. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7705. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7706. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7707. + ;;
  7708. + xlc* | xlC*)
  7709. + # IBM XL 8.0 on PPC
  7710. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7711. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7712. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7713. ;;
  7714. *)
  7715. + case `$CC -V 2>&1 | sed 5q` in
  7716. + *Sun\ C*)
  7717. + # Sun C++ 5.9
  7718. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7719. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7720. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7721. + ;;
  7722. + esac
  7723. ;;
  7724. esac
  7725. ;;
  7726. @@ -4988,7 +3778,7 @@
  7727. mvs*)
  7728. case $cc_basename in
  7729. cxx*)
  7730. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7731. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7732. ;;
  7733. *)
  7734. ;;
  7735. @@ -4996,22 +3786,27 @@
  7736. ;;
  7737. netbsd* | netbsdelf*-gnu)
  7738. ;;
  7739. + *qnx* | *nto*)
  7740. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7741. + # it will coredump.
  7742. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7743. + ;;
  7744. osf3* | osf4* | osf5*)
  7745. case $cc_basename in
  7746. KCC*)
  7747. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7748. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7749. ;;
  7750. RCC*)
  7751. # Rational C++ 2.4.1
  7752. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7753. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7754. ;;
  7755. cxx*)
  7756. # Digital/Compaq C++
  7757. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7758. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7759. # Make sure the PIC flag is empty. It appears that all Alpha
  7760. # Linux and Compaq Tru64 Unix objects are PIC.
  7761. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7762. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7763. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7764. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7765. ;;
  7766. *)
  7767. ;;
  7768. @@ -5023,13 +3818,13 @@
  7769. case $cc_basename in
  7770. CC*)
  7771. # Sun C++ 4.2, 5.x and Centerline C++
  7772. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7773. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7774. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7775. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7776. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7777. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7778. ;;
  7779. gcx*)
  7780. # Green Hills C++ Compiler
  7781. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7782. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7783. ;;
  7784. *)
  7785. ;;
  7786. @@ -5039,82 +3834,107 @@
  7787. case $cc_basename in
  7788. CC*)
  7789. # Sun C++ 4.x
  7790. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7791. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7792. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7793. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7794. ;;
  7795. lcc*)
  7796. # Lucid
  7797. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7798. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7799. ;;
  7800. *)
  7801. ;;
  7802. esac
  7803. ;;
  7804. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7805. + case $cc_basename in
  7806. + CC*)
  7807. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7808. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7809. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7810. + ;;
  7811. + esac
  7812. + ;;
  7813. tandem*)
  7814. case $cc_basename in
  7815. NCC*)
  7816. # NonStop-UX NCC 3.20
  7817. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7818. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7819. ;;
  7820. *)
  7821. ;;
  7822. esac
  7823. ;;
  7824. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7825. - case $cc_basename in
  7826. - CC*)
  7827. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7828. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7829. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7830. - ;;
  7831. - esac
  7832. - ;;
  7833. vxworks*)
  7834. ;;
  7835. *)
  7836. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7837. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7838. ;;
  7839. esac
  7840. fi
  7841. ],
  7842. [
  7843. if test "$GCC" = yes; then
  7844. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7845. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7846. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7847. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7848. case $host_os in
  7849. aix*)
  7850. # All AIX code is PIC.
  7851. if test "$host_cpu" = ia64; then
  7852. # AIX 5 now supports IA64 processor
  7853. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7854. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7855. fi
  7856. ;;
  7857. amigaos*)
  7858. - # FIXME: we need at least 68020 code to build shared libraries, but
  7859. - # adding the `-m68020' flag to GCC prevents building anything better,
  7860. - # like `-m68040'.
  7861. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7862. + case $host_cpu in
  7863. + powerpc)
  7864. + # see comment about AmigaOS4 .so support
  7865. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7866. + ;;
  7867. + m68k)
  7868. + # FIXME: we need at least 68020 code to build shared libraries, but
  7869. + # adding the `-m68020' flag to GCC prevents building anything better,
  7870. + # like `-m68040'.
  7871. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7872. + ;;
  7873. + esac
  7874. ;;
  7875. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7876. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7877. # PIC is the default for these OSes.
  7878. ;;
  7879. - mingw* | pw32* | os2*)
  7880. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7881. # This hack is so that the source file can tell whether it is being
  7882. # built for inclusion in a dll (and should export symbols for example).
  7883. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7884. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7885. + # (--disable-auto-import) libraries
  7886. + m4_if([$1], [GCJ], [],
  7887. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7888. ;;
  7889. darwin* | rhapsody*)
  7890. # PIC is the default on this platform
  7891. # Common symbols not allowed in MH_DYLIB files
  7892. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7893. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7894. + ;;
  7895. +
  7896. + hpux*)
  7897. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7898. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7899. + # sets the default TLS model and affects inlining.
  7900. + case $host_cpu in
  7901. + hppa*64*)
  7902. + # +Z the default
  7903. + ;;
  7904. + *)
  7905. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7906. + ;;
  7907. + esac
  7908. ;;
  7909. - interix3*)
  7910. + interix[[3-9]]*)
  7911. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7912. # Instead, we relocate shared libraries at runtime.
  7913. ;;
  7914. @@ -5122,64 +3942,48 @@
  7915. msdosdjgpp*)
  7916. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7917. # on systems that don't support them.
  7918. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7919. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7920. enable_shared=no
  7921. ;;
  7922. + *nto* | *qnx*)
  7923. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7924. + # it will coredump.
  7925. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7926. + ;;
  7927. +
  7928. sysv4*MP*)
  7929. if test -d /usr/nec; then
  7930. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7931. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7932. fi
  7933. ;;
  7934. - hpux*)
  7935. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7936. - # not for PA HP-UX.
  7937. - case $host_cpu in
  7938. - hppa*64*|ia64*)
  7939. - # +Z the default
  7940. - ;;
  7941. - *)
  7942. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7943. - ;;
  7944. - esac
  7945. - ;;
  7946. -
  7947. *)
  7948. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7949. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7950. ;;
  7951. esac
  7952. else
  7953. # PORTME Check for flag to pass linker flags through the system compiler.
  7954. case $host_os in
  7955. aix*)
  7956. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7957. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7958. if test "$host_cpu" = ia64; then
  7959. # AIX 5 now supports IA64 processor
  7960. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7961. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7962. else
  7963. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7964. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7965. fi
  7966. ;;
  7967. - darwin*)
  7968. - # PIC is the default on this platform
  7969. - # Common symbols not allowed in MH_DYLIB files
  7970. - case $cc_basename in
  7971. - xlc*)
  7972. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  7973. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7974. - ;;
  7975. - esac
  7976. - ;;
  7977. - mingw* | pw32* | os2*)
  7978. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7979. # This hack is so that the source file can tell whether it is being
  7980. # built for inclusion in a dll (and should export symbols for example).
  7981. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7982. + m4_if([$1], [GCJ], [],
  7983. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7984. ;;
  7985. hpux9* | hpux10* | hpux11*)
  7986. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7987. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7988. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7989. # not for PA HP-UX.
  7990. case $host_cpu in
  7991. @@ -5187,1205 +3991,4001 @@
  7992. # +Z the default
  7993. ;;
  7994. *)
  7995. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7996. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7997. ;;
  7998. esac
  7999. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8000. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8001. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  8002. ;;
  8003. irix5* | irix6* | nonstopux*)
  8004. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8005. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8006. # PIC (with -KPIC) is the default.
  8007. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8008. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8009. + ;;
  8010. +
  8011. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8012. + case $cc_basename in
  8013. + # old Intel for x86_64 which still supported -KPIC.
  8014. + ecc*)
  8015. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8016. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8017. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8018. + ;;
  8019. + # icc used to be incompatible with GCC.
  8020. + # ICC 10 doesn't accept -KPIC any more.
  8021. + icc* | ifort*)
  8022. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8023. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8024. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8025. + ;;
  8026. + # Lahey Fortran 8.1.
  8027. + lf95*)
  8028. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8029. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  8030. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  8031. + ;;
  8032. + pgcc* | pgf77* | pgf90* | pgf95*)
  8033. + # Portland Group compilers (*not* the Pentium gcc compiler,
  8034. + # which looks to be a dead project)
  8035. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8036. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  8037. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8038. + ;;
  8039. + ccc*)
  8040. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8041. + # All Alpha code is PIC.
  8042. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8043. + ;;
  8044. + xl*)
  8045. + # IBM XL C 8.0/Fortran 10.1 on PPC
  8046. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8047. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  8048. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  8049. + ;;
  8050. + *)
  8051. + case `$CC -V 2>&1 | sed 5q` in
  8052. + *Sun\ C*)
  8053. + # Sun C 5.9
  8054. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8055. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8056. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8057. + ;;
  8058. + *Sun\ F*)
  8059. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8060. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8061. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8062. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  8063. + ;;
  8064. + esac
  8065. + ;;
  8066. + esac
  8067. + ;;
  8068. +
  8069. + newsos6)
  8070. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8071. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8072. + ;;
  8073. +
  8074. + *nto* | *qnx*)
  8075. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  8076. + # it will coredump.
  8077. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  8078. + ;;
  8079. +
  8080. + osf3* | osf4* | osf5*)
  8081. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8082. + # All OSF/1 code is PIC.
  8083. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8084. + ;;
  8085. +
  8086. + rdos*)
  8087. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8088. + ;;
  8089. +
  8090. + solaris*)
  8091. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8092. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8093. + case $cc_basename in
  8094. + f77* | f90* | f95*)
  8095. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  8096. + *)
  8097. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  8098. + esac
  8099. + ;;
  8100. +
  8101. + sunos4*)
  8102. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8103. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8104. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8105. + ;;
  8106. +
  8107. + sysv4 | sysv4.2uw2* | sysv4.3*)
  8108. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8109. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8110. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8111. ;;
  8112. - newsos6)
  8113. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8114. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8115. - ;;
  8116. + sysv4*MP*)
  8117. + if test -d /usr/nec ;then
  8118. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  8119. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8120. + fi
  8121. + ;;
  8122. +
  8123. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8124. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8125. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8126. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8127. + ;;
  8128. +
  8129. + unicos*)
  8130. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8131. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8132. + ;;
  8133. +
  8134. + uts4*)
  8135. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8136. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8137. + ;;
  8138. +
  8139. + *)
  8140. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8141. + ;;
  8142. + esac
  8143. + fi
  8144. +])
  8145. +case $host_os in
  8146. + # For platforms which do not support PIC, -DPIC is meaningless:
  8147. + *djgpp*)
  8148. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  8149. + ;;
  8150. + *)
  8151. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  8152. + ;;
  8153. +esac
  8154. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  8155. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  8156. + [How to pass a linker flag through the compiler])
  8157. +
  8158. +#
  8159. +# Check to make sure the PIC flag actually works.
  8160. +#
  8161. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  8162. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  8163. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  8164. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  8165. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  8166. + "" | " "*) ;;
  8167. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  8168. + esac],
  8169. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  8170. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  8171. +fi
  8172. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  8173. + [Additional compiler flags for building library objects])
  8174. +
  8175. +#
  8176. +# Check to make sure the static flag actually works.
  8177. +#
  8178. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  8179. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  8180. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  8181. + $lt_tmp_static_flag,
  8182. + [],
  8183. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  8184. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  8185. + [Compiler flag to prevent dynamic linking])
  8186. +])# _LT_COMPILER_PIC
  8187. +
  8188. +
  8189. +# _LT_LINKER_SHLIBS([TAGNAME])
  8190. +# ----------------------------
  8191. +# See if the linker supports building shared libraries.
  8192. +m4_defun([_LT_LINKER_SHLIBS],
  8193. +[AC_REQUIRE([LT_PATH_LD])dnl
  8194. +AC_REQUIRE([LT_PATH_NM])dnl
  8195. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8196. +m4_require([_LT_DECL_EGREP])dnl
  8197. +m4_require([_LT_DECL_SED])dnl
  8198. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  8199. +m4_require([_LT_TAG_COMPILER])dnl
  8200. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  8201. +m4_if([$1], [CXX], [
  8202. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8203. + case $host_os in
  8204. + aix[[4-9]]*)
  8205. + # If we're using GNU nm, then we don't want the "-C" option.
  8206. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8207. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8208. + _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'
  8209. + else
  8210. + _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'
  8211. + fi
  8212. + ;;
  8213. + pw32*)
  8214. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  8215. + ;;
  8216. + cygwin* | mingw* | cegcc*)
  8217. + _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'
  8218. + ;;
  8219. + linux* | k*bsd*-gnu)
  8220. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8221. + ;;
  8222. + *)
  8223. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8224. + ;;
  8225. + esac
  8226. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8227. +], [
  8228. + runpath_var=
  8229. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8230. + _LT_TAGVAR(always_export_symbols, $1)=no
  8231. + _LT_TAGVAR(archive_cmds, $1)=
  8232. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  8233. + _LT_TAGVAR(compiler_needs_object, $1)=no
  8234. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8235. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8236. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8237. + _LT_TAGVAR(hardcode_automatic, $1)=no
  8238. + _LT_TAGVAR(hardcode_direct, $1)=no
  8239. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8240. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8241. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8242. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8243. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  8244. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8245. + _LT_TAGVAR(inherit_rpath, $1)=no
  8246. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  8247. + _LT_TAGVAR(module_cmds, $1)=
  8248. + _LT_TAGVAR(module_expsym_cmds, $1)=
  8249. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  8250. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  8251. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  8252. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8253. + # include_expsyms should be a list of space-separated symbols to be *always*
  8254. + # included in the symbol list
  8255. + _LT_TAGVAR(include_expsyms, $1)=
  8256. + # exclude_expsyms can be an extended regexp of symbols to exclude
  8257. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8258. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8259. + # as well as any symbol that contains `d'.
  8260. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  8261. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8262. + # platforms (ab)use it in PIC code, but their linkers get confused if
  8263. + # the symbol is explicitly referenced. Since portable code cannot
  8264. + # rely on this symbol name, it's probably fine to never include it in
  8265. + # preloaded symbol tables.
  8266. + # Exclude shared library initialization/finalization symbols.
  8267. +dnl Note also adjust exclude_expsyms for C++ above.
  8268. + extract_expsyms_cmds=
  8269. +
  8270. + case $host_os in
  8271. + cygwin* | mingw* | pw32* | cegcc*)
  8272. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8273. + # When not using gcc, we currently assume that we are using
  8274. + # Microsoft Visual C++.
  8275. + if test "$GCC" != yes; then
  8276. + with_gnu_ld=no
  8277. + fi
  8278. + ;;
  8279. + interix*)
  8280. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  8281. + with_gnu_ld=yes
  8282. + ;;
  8283. + openbsd*)
  8284. + with_gnu_ld=no
  8285. + ;;
  8286. + linux* | k*bsd*-gnu)
  8287. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8288. + ;;
  8289. + esac
  8290. +
  8291. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8292. + if test "$with_gnu_ld" = yes; then
  8293. + # If archive_cmds runs LD, not CC, wlarc should be empty
  8294. + wlarc='${wl}'
  8295. +
  8296. + # Set some defaults for GNU ld with shared library support. These
  8297. + # are reset later if shared libraries are not supported. Putting them
  8298. + # here allows them to be overridden if necessary.
  8299. + runpath_var=LD_RUN_PATH
  8300. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8301. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8302. + # ancient GNU ld didn't support --whole-archive et. al.
  8303. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8304. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8305. + else
  8306. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8307. + fi
  8308. + supports_anon_versioning=no
  8309. + case `$LD -v 2>&1` in
  8310. + *GNU\ gold*) supports_anon_versioning=yes ;;
  8311. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  8312. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8313. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8314. + *\ 2.11.*) ;; # other 2.11 versions
  8315. + *) supports_anon_versioning=yes ;;
  8316. + esac
  8317. +
  8318. + # See if GNU ld supports shared libraries.
  8319. + case $host_os in
  8320. + aix[[3-9]]*)
  8321. + # On AIX/PPC, the GNU linker is very broken
  8322. + if test "$host_cpu" != ia64; then
  8323. + _LT_TAGVAR(ld_shlibs, $1)=no
  8324. + cat <<_LT_EOF 1>&2
  8325. +
  8326. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8327. +*** to be unable to reliably create shared libraries on AIX.
  8328. +*** Therefore, libtool is disabling shared libraries support. If you
  8329. +*** really care for shared libraries, you may want to modify your PATH
  8330. +*** so that a non-GNU linker is found, and then restart.
  8331. +
  8332. +_LT_EOF
  8333. + fi
  8334. + ;;
  8335. +
  8336. + amigaos*)
  8337. + case $host_cpu in
  8338. + powerpc)
  8339. + # see comment about AmigaOS4 .so support
  8340. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8341. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8342. + ;;
  8343. + m68k)
  8344. + _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)'
  8345. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8346. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8347. + ;;
  8348. + esac
  8349. + ;;
  8350. +
  8351. + beos*)
  8352. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8353. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8354. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8355. + # support --undefined. This deserves some investigation. FIXME
  8356. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8357. + else
  8358. + _LT_TAGVAR(ld_shlibs, $1)=no
  8359. + fi
  8360. + ;;
  8361. +
  8362. + cygwin* | mingw* | pw32* | cegcc*)
  8363. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  8364. + # as there is no search path for DLLs.
  8365. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8366. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8367. + _LT_TAGVAR(always_export_symbols, $1)=no
  8368. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8369. + _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'
  8370. +
  8371. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8372. + _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'
  8373. + # If the export-symbols file already is a .def file (1st line
  8374. + # is EXPORTS), use it as is; otherwise, prepend...
  8375. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8376. + cp $export_symbols $output_objdir/$soname.def;
  8377. + else
  8378. + echo EXPORTS > $output_objdir/$soname.def;
  8379. + cat $export_symbols >> $output_objdir/$soname.def;
  8380. + fi~
  8381. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8382. + else
  8383. + _LT_TAGVAR(ld_shlibs, $1)=no
  8384. + fi
  8385. + ;;
  8386. +
  8387. + interix[[3-9]]*)
  8388. + _LT_TAGVAR(hardcode_direct, $1)=no
  8389. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8390. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8391. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8392. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8393. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  8394. + # default) and relocated if they conflict, which is a slow very memory
  8395. + # consuming and fragmenting process. To avoid this, we pick a random,
  8396. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8397. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8398. + _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'
  8399. + _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'
  8400. + ;;
  8401. +
  8402. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8403. + tmp_diet=no
  8404. + if test "$host_os" = linux-dietlibc; then
  8405. + case $cc_basename in
  8406. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8407. + esac
  8408. + fi
  8409. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8410. + && test "$tmp_diet" = no
  8411. + then
  8412. + tmp_addflag=
  8413. + tmp_sharedflag='-shared'
  8414. + case $cc_basename,$host_cpu in
  8415. + pgcc*) # Portland Group C compiler
  8416. + _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'
  8417. + tmp_addflag=' $pic_flag'
  8418. + ;;
  8419. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8420. + _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'
  8421. + tmp_addflag=' $pic_flag -Mnomain' ;;
  8422. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8423. + tmp_addflag=' -i_dynamic' ;;
  8424. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8425. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  8426. + ifc* | ifort*) # Intel Fortran compiler
  8427. + tmp_addflag=' -nofor_main' ;;
  8428. + lf95*) # Lahey Fortran 8.1
  8429. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8430. + tmp_sharedflag='--shared' ;;
  8431. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8432. + tmp_sharedflag='-qmkshrobj'
  8433. + tmp_addflag= ;;
  8434. + esac
  8435. + case `$CC -V 2>&1 | sed 5q` in
  8436. + *Sun\ C*) # Sun C 5.9
  8437. + _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'
  8438. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8439. + tmp_sharedflag='-G' ;;
  8440. + *Sun\ F*) # Sun Fortran 8.3
  8441. + tmp_sharedflag='-G' ;;
  8442. + esac
  8443. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8444. +
  8445. + if test "x$supports_anon_versioning" = xyes; then
  8446. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8447. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8448. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8449. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8450. + fi
  8451. +
  8452. + case $cc_basename in
  8453. + xlf*)
  8454. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8455. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  8456. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8457. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8458. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8459. + if test "x$supports_anon_versioning" = xyes; then
  8460. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8461. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8462. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8463. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8464. + fi
  8465. + ;;
  8466. + esac
  8467. + else
  8468. + _LT_TAGVAR(ld_shlibs, $1)=no
  8469. + fi
  8470. + ;;
  8471. +
  8472. + netbsd* | netbsdelf*-gnu)
  8473. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8474. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8475. + wlarc=
  8476. + else
  8477. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8478. + _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'
  8479. + fi
  8480. + ;;
  8481. +
  8482. + solaris*)
  8483. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8484. + _LT_TAGVAR(ld_shlibs, $1)=no
  8485. + cat <<_LT_EOF 1>&2
  8486. +
  8487. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8488. +*** create shared libraries on Solaris systems. Therefore, libtool
  8489. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8490. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8491. +*** your PATH or compiler configuration so that the native linker is
  8492. +*** used, and then restart.
  8493. +
  8494. +_LT_EOF
  8495. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8496. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8497. + _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'
  8498. + else
  8499. + _LT_TAGVAR(ld_shlibs, $1)=no
  8500. + fi
  8501. + ;;
  8502. +
  8503. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8504. + case `$LD -v 2>&1` in
  8505. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8506. + _LT_TAGVAR(ld_shlibs, $1)=no
  8507. + cat <<_LT_EOF 1>&2
  8508. +
  8509. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8510. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8511. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8512. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8513. +*** your PATH or compiler configuration so that the native linker is
  8514. +*** used, and then restart.
  8515. +
  8516. +_LT_EOF
  8517. + ;;
  8518. + *)
  8519. + # For security reasons, it is highly recommended that you always
  8520. + # use absolute paths for naming shared libraries, and exclude the
  8521. + # DT_RUNPATH tag from executables and libraries. But doing so
  8522. + # requires that you compile everything twice, which is a pain.
  8523. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8524. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8525. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8526. + _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'
  8527. + else
  8528. + _LT_TAGVAR(ld_shlibs, $1)=no
  8529. + fi
  8530. + ;;
  8531. + esac
  8532. + ;;
  8533. +
  8534. + sunos4*)
  8535. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8536. + wlarc=
  8537. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8538. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8539. + ;;
  8540. +
  8541. + *)
  8542. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8543. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8544. + _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'
  8545. + else
  8546. + _LT_TAGVAR(ld_shlibs, $1)=no
  8547. + fi
  8548. + ;;
  8549. + esac
  8550. +
  8551. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8552. + runpath_var=
  8553. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8554. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8555. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8556. + fi
  8557. + else
  8558. + # PORTME fill in a description of your system's linker (not GNU ld)
  8559. + case $host_os in
  8560. + aix3*)
  8561. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8562. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8563. + _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'
  8564. + # Note: this linker hardcodes the directories in LIBPATH if there
  8565. + # are no directories specified by -L.
  8566. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8567. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8568. + # Neither direct hardcoding nor static linking is supported with a
  8569. + # broken collect2.
  8570. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8571. + fi
  8572. + ;;
  8573. +
  8574. + aix[[4-9]]*)
  8575. + if test "$host_cpu" = ia64; then
  8576. + # On IA64, the linker does run time linking by default, so we don't
  8577. + # have to do anything special.
  8578. + aix_use_runtimelinking=no
  8579. + exp_sym_flag='-Bexport'
  8580. + no_entry_flag=""
  8581. + else
  8582. + # If we're using GNU nm, then we don't want the "-C" option.
  8583. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8584. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8585. + _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'
  8586. + else
  8587. + _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'
  8588. + fi
  8589. + aix_use_runtimelinking=no
  8590. +
  8591. + # Test if we are trying to use run time linking or normal
  8592. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8593. + # need to do runtime linking.
  8594. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8595. + for ld_flag in $LDFLAGS; do
  8596. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8597. + aix_use_runtimelinking=yes
  8598. + break
  8599. + fi
  8600. + done
  8601. + ;;
  8602. + esac
  8603. +
  8604. + exp_sym_flag='-bexport'
  8605. + no_entry_flag='-bnoentry'
  8606. + fi
  8607. +
  8608. + # When large executables or shared objects are built, AIX ld can
  8609. + # have problems creating the table of contents. If linking a library
  8610. + # or program results in "error TOC overflow" add -mminimal-toc to
  8611. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8612. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8613. +
  8614. + _LT_TAGVAR(archive_cmds, $1)=''
  8615. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8616. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8617. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8618. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8619. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8620. +
  8621. + if test "$GCC" = yes; then
  8622. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8623. + # We only want to do this on AIX 4.2 and lower, the check
  8624. + # below for broken collect2 doesn't work under 4.3+
  8625. + collect2name=`${CC} -print-prog-name=collect2`
  8626. + if test -f "$collect2name" &&
  8627. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8628. + then
  8629. + # We have reworked collect2
  8630. + :
  8631. + else
  8632. + # We have old collect2
  8633. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8634. + # It fails to find uninstalled libraries when the uninstalled
  8635. + # path is not listed in the libpath. Setting hardcode_minus_L
  8636. + # to unsupported forces relinking
  8637. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8638. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8639. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8640. + fi
  8641. + ;;
  8642. + esac
  8643. + shared_flag='-shared'
  8644. + if test "$aix_use_runtimelinking" = yes; then
  8645. + shared_flag="$shared_flag "'${wl}-G'
  8646. + fi
  8647. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8648. + else
  8649. + # not using gcc
  8650. + if test "$host_cpu" = ia64; then
  8651. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8652. + # chokes on -Wl,-G. The following line is correct:
  8653. + shared_flag='-G'
  8654. + else
  8655. + if test "$aix_use_runtimelinking" = yes; then
  8656. + shared_flag='${wl}-G'
  8657. + else
  8658. + shared_flag='${wl}-bM:SRE'
  8659. + fi
  8660. + fi
  8661. + fi
  8662. +
  8663. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8664. + # It seems that -bexpall does not export symbols beginning with
  8665. + # underscore (_), so it is better to generate a list of symbols to export.
  8666. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8667. + if test "$aix_use_runtimelinking" = yes; then
  8668. + # Warning - without using the other runtime loading flags (-brtl),
  8669. + # -berok will link without error, but may produce a broken library.
  8670. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8671. + # Determine the default libpath from the value encoded in an
  8672. + # empty executable.
  8673. + _LT_SYS_MODULE_PATH_AIX
  8674. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8675. + _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"
  8676. + else
  8677. + if test "$host_cpu" = ia64; then
  8678. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8679. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8680. + _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"
  8681. + else
  8682. + # Determine the default libpath from the value encoded in an
  8683. + # empty executable.
  8684. + _LT_SYS_MODULE_PATH_AIX
  8685. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8686. + # Warning - without using the other run time loading flags,
  8687. + # -berok will link without error, but may produce a broken library.
  8688. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8689. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8690. + # Exported symbols can be pulled into shared objects from archives
  8691. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8692. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8693. + # This is similar to how AIX traditionally builds its shared libraries.
  8694. + _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'
  8695. + fi
  8696. + fi
  8697. + ;;
  8698. +
  8699. + amigaos*)
  8700. + case $host_cpu in
  8701. + powerpc)
  8702. + # see comment about AmigaOS4 .so support
  8703. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8704. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8705. + ;;
  8706. + m68k)
  8707. + _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)'
  8708. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8709. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8710. + ;;
  8711. + esac
  8712. + ;;
  8713. +
  8714. + bsdi[[45]]*)
  8715. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8716. + ;;
  8717. +
  8718. + cygwin* | mingw* | pw32* | cegcc*)
  8719. + # When not using gcc, we currently assume that we are using
  8720. + # Microsoft Visual C++.
  8721. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8722. + # no search path for DLLs.
  8723. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8724. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8725. + # Tell ltmain to make .lib files, not .a files.
  8726. + libext=lib
  8727. + # Tell ltmain to make .dll files, not .so files.
  8728. + shrext_cmds=".dll"
  8729. + # FIXME: Setting linknames here is a bad hack.
  8730. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8731. + # The linker will automatically build a .lib file if we build a DLL.
  8732. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8733. + # FIXME: Should let the user specify the lib program.
  8734. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8735. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8736. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8737. + ;;
  8738. +
  8739. + darwin* | rhapsody*)
  8740. + _LT_DARWIN_LINKER_FEATURES($1)
  8741. + ;;
  8742. +
  8743. + dgux*)
  8744. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8745. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8746. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8747. + ;;
  8748. +
  8749. + freebsd1*)
  8750. + _LT_TAGVAR(ld_shlibs, $1)=no
  8751. + ;;
  8752. +
  8753. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8754. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8755. + # does not break anything, and helps significantly (at the cost of a little
  8756. + # extra space).
  8757. + freebsd2.2*)
  8758. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8759. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8760. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8761. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8762. + ;;
  8763. +
  8764. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8765. + freebsd2*)
  8766. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8767. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8768. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8769. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8770. + ;;
  8771. +
  8772. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8773. + freebsd* | dragonfly*)
  8774. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8775. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8776. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8777. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8778. + ;;
  8779. +
  8780. + hpux9*)
  8781. + if test "$GCC" = yes; then
  8782. + _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'
  8783. + else
  8784. + _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'
  8785. + fi
  8786. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8787. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8788. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8789. +
  8790. + # hardcode_minus_L: Not really in the search PATH,
  8791. + # but as the default location of the library.
  8792. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8793. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8794. + ;;
  8795. +
  8796. + hpux10*)
  8797. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8798. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8799. + else
  8800. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8801. + fi
  8802. + if test "$with_gnu_ld" = no; then
  8803. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8804. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8805. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8806. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8807. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8808. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8809. + # hardcode_minus_L: Not really in the search PATH,
  8810. + # but as the default location of the library.
  8811. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8812. + fi
  8813. + ;;
  8814. +
  8815. + hpux11*)
  8816. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8817. + case $host_cpu in
  8818. + hppa*64*)
  8819. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8820. + ;;
  8821. + ia64*)
  8822. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8823. + ;;
  8824. + *)
  8825. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8826. + ;;
  8827. + esac
  8828. + else
  8829. + case $host_cpu in
  8830. + hppa*64*)
  8831. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8832. + ;;
  8833. + ia64*)
  8834. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8835. + ;;
  8836. + *)
  8837. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8838. + ;;
  8839. + esac
  8840. + fi
  8841. + if test "$with_gnu_ld" = no; then
  8842. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8843. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8844. +
  8845. + case $host_cpu in
  8846. + hppa*64*|ia64*)
  8847. + _LT_TAGVAR(hardcode_direct, $1)=no
  8848. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8849. + ;;
  8850. + *)
  8851. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8852. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8853. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8854. +
  8855. + # hardcode_minus_L: Not really in the search PATH,
  8856. + # but as the default location of the library.
  8857. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8858. + ;;
  8859. + esac
  8860. + fi
  8861. + ;;
  8862. +
  8863. + irix5* | irix6* | nonstopux*)
  8864. + if test "$GCC" = yes; then
  8865. + _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'
  8866. + # Try to use the -exported_symbol ld option, if it does not
  8867. + # work, assume that -exports_file does not work either and
  8868. + # implicitly export all symbols.
  8869. + save_LDFLAGS="$LDFLAGS"
  8870. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8871. + AC_LINK_IFELSE(int foo(void) {},
  8872. + _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'
  8873. + )
  8874. + LDFLAGS="$save_LDFLAGS"
  8875. + else
  8876. + _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'
  8877. + _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'
  8878. + fi
  8879. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8880. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8881. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8882. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8883. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8884. + ;;
  8885. +
  8886. + netbsd* | netbsdelf*-gnu)
  8887. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8888. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8889. + else
  8890. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8891. + fi
  8892. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8893. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8894. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8895. + ;;
  8896. +
  8897. + newsos6)
  8898. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8899. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8900. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8901. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8902. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8903. + ;;
  8904. +
  8905. + *nto* | *qnx*)
  8906. + ;;
  8907. +
  8908. + openbsd*)
  8909. + if test -f /usr/libexec/ld.so; then
  8910. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8911. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8912. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8913. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8914. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8915. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8916. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8917. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8918. + else
  8919. + case $host_os in
  8920. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8921. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8922. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8923. + ;;
  8924. + *)
  8925. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8926. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8927. + ;;
  8928. + esac
  8929. + fi
  8930. + else
  8931. + _LT_TAGVAR(ld_shlibs, $1)=no
  8932. + fi
  8933. + ;;
  8934. +
  8935. + os2*)
  8936. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8937. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8938. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8939. + _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'
  8940. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8941. + ;;
  8942. +
  8943. + osf3*)
  8944. + if test "$GCC" = yes; then
  8945. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8946. + _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'
  8947. + else
  8948. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8949. + _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'
  8950. + fi
  8951. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8952. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8953. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8954. + ;;
  8955. +
  8956. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8957. + if test "$GCC" = yes; then
  8958. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8959. + _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'
  8960. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8961. + else
  8962. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8963. + _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'
  8964. + _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~
  8965. + $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'
  8966. +
  8967. + # Both c and cxx compiler support -rpath directly
  8968. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8969. + fi
  8970. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8971. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8972. + ;;
  8973. +
  8974. + solaris*)
  8975. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8976. + if test "$GCC" = yes; then
  8977. + wlarc='${wl}'
  8978. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8979. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8980. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8981. + else
  8982. + case `$CC -V 2>&1` in
  8983. + *"Compilers 5.0"*)
  8984. + wlarc=''
  8985. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8986. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8987. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8988. + ;;
  8989. + *)
  8990. + wlarc='${wl}'
  8991. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8992. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8993. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8994. + ;;
  8995. + esac
  8996. + fi
  8997. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8998. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8999. + case $host_os in
  9000. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9001. + *)
  9002. + # The compiler driver will combine and reorder linker options,
  9003. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  9004. + # but is careful enough not to reorder.
  9005. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  9006. + if test "$GCC" = yes; then
  9007. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9008. + else
  9009. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  9010. + fi
  9011. + ;;
  9012. + esac
  9013. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9014. + ;;
  9015. +
  9016. + sunos4*)
  9017. + if test "x$host_vendor" = xsequent; then
  9018. + # Use $CC to link under sequent, because it throws in some extra .o
  9019. + # files that make .init and .fini sections work.
  9020. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9021. + else
  9022. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9023. + fi
  9024. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9025. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9026. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9027. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9028. + ;;
  9029. +
  9030. + sysv4)
  9031. + case $host_vendor in
  9032. + sni)
  9033. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9034. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  9035. + ;;
  9036. + siemens)
  9037. + ## LD is ld it makes a PLAMLIB
  9038. + ## CC just makes a GrossModule.
  9039. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9040. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  9041. + _LT_TAGVAR(hardcode_direct, $1)=no
  9042. + ;;
  9043. + motorola)
  9044. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9045. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  9046. + ;;
  9047. + esac
  9048. + runpath_var='LD_RUN_PATH'
  9049. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9050. + ;;
  9051. +
  9052. + sysv4.3*)
  9053. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9054. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9055. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  9056. + ;;
  9057. +
  9058. + sysv4*MP*)
  9059. + if test -d /usr/nec; then
  9060. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9061. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9062. + runpath_var=LD_RUN_PATH
  9063. + hardcode_runpath_var=yes
  9064. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9065. + fi
  9066. + ;;
  9067. +
  9068. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  9069. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9070. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9071. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9072. + runpath_var='LD_RUN_PATH'
  9073. +
  9074. + if test "$GCC" = yes; then
  9075. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9076. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9077. + else
  9078. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9079. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9080. + fi
  9081. + ;;
  9082. +
  9083. + sysv5* | sco3.2v5* | sco5v6*)
  9084. + # Note: We can NOT use -z defs as we might desire, because we do not
  9085. + # link with -lc, and that would cause any symbols used from libc to
  9086. + # always be unresolved, which means just about no library would
  9087. + # ever link correctly. If we're not using GNU ld we use -z text
  9088. + # though, which does catch some bad symbols but isn't as heavy-handed
  9089. + # as -z defs.
  9090. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9091. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  9092. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9093. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9094. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  9095. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9096. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9097. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  9098. + runpath_var='LD_RUN_PATH'
  9099. +
  9100. + if test "$GCC" = yes; then
  9101. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9102. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9103. + else
  9104. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9105. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9106. + fi
  9107. + ;;
  9108. +
  9109. + uts4*)
  9110. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9111. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9112. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9113. + ;;
  9114. +
  9115. + *)
  9116. + _LT_TAGVAR(ld_shlibs, $1)=no
  9117. + ;;
  9118. + esac
  9119. +
  9120. + if test x$host_vendor = xsni; then
  9121. + case $host in
  9122. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9123. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  9124. + ;;
  9125. + esac
  9126. + fi
  9127. + fi
  9128. +])
  9129. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  9130. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  9131. +
  9132. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  9133. +
  9134. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  9135. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  9136. +_LT_DECL([], [extract_expsyms_cmds], [2],
  9137. + [The commands to extract the exported symbol list from a shared archive])
  9138. +
  9139. +#
  9140. +# Do we need to explicitly link libc?
  9141. +#
  9142. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  9143. +x|xyes)
  9144. + # Assume -lc should be added
  9145. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9146. +
  9147. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  9148. + case $_LT_TAGVAR(archive_cmds, $1) in
  9149. + *'~'*)
  9150. + # FIXME: we may have to deal with multi-command sequences.
  9151. + ;;
  9152. + '$CC '*)
  9153. + # Test whether the compiler implicitly links with -lc since on some
  9154. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9155. + # to ld, don't add -lc before -lgcc.
  9156. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  9157. + $RM conftest*
  9158. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9159. +
  9160. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  9161. + soname=conftest
  9162. + lib=conftest
  9163. + libobjs=conftest.$ac_objext
  9164. + deplibs=
  9165. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  9166. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  9167. + compiler_flags=-v
  9168. + linker_flags=-v
  9169. + verstring=
  9170. + output_objdir=.
  9171. + libname=conftest
  9172. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  9173. + _LT_TAGVAR(allow_undefined_flag, $1)=
  9174. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  9175. + then
  9176. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9177. + else
  9178. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9179. + fi
  9180. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  9181. + else
  9182. + cat conftest.err 1>&5
  9183. + fi
  9184. + $RM conftest*
  9185. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  9186. + ;;
  9187. + esac
  9188. + fi
  9189. + ;;
  9190. +esac
  9191. +
  9192. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  9193. + [Whether or not to add -lc for building shared libraries])
  9194. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  9195. + [enable_shared_with_static_runtimes], [0],
  9196. + [Whether or not to disallow shared libs when runtime libs are static])
  9197. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  9198. + [Compiler flag to allow reflexive dlopens])
  9199. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  9200. + [Compiler flag to generate shared objects directly from archives])
  9201. +_LT_TAGDECL([], [compiler_needs_object], [1],
  9202. + [Whether the compiler copes with passing no objects directly])
  9203. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  9204. + [Create an old-style archive from a shared archive])
  9205. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  9206. + [Create a temporary old-style archive to link instead of a shared archive])
  9207. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  9208. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  9209. +_LT_TAGDECL([], [module_cmds], [2],
  9210. + [Commands used to build a loadable module if different from building
  9211. + a shared archive.])
  9212. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  9213. +_LT_TAGDECL([], [with_gnu_ld], [1],
  9214. + [Whether we are building with GNU ld or not])
  9215. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  9216. + [Flag that allows shared libraries with undefined symbols to be built])
  9217. +_LT_TAGDECL([], [no_undefined_flag], [1],
  9218. + [Flag that enforces no undefined symbols])
  9219. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  9220. + [Flag to hardcode $libdir into a binary during linking.
  9221. + This must work even if $libdir does not exist])
  9222. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  9223. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  9224. + during linking. This must work even if $libdir does not exist]])
  9225. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  9226. + [Whether we need a single "-rpath" flag with a separated argument])
  9227. +_LT_TAGDECL([], [hardcode_direct], [0],
  9228. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9229. + DIR into the resulting binary])
  9230. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  9231. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9232. + DIR into the resulting binary and the resulting library dependency is
  9233. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  9234. + library is relocated])
  9235. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  9236. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  9237. + into the resulting binary])
  9238. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  9239. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  9240. + into the resulting binary])
  9241. +_LT_TAGDECL([], [hardcode_automatic], [0],
  9242. + [Set to "yes" if building a shared library automatically hardcodes DIR
  9243. + into the library and all subsequent libraries and executables linked
  9244. + against it])
  9245. +_LT_TAGDECL([], [inherit_rpath], [0],
  9246. + [Set to yes if linker adds runtime paths of dependent libraries
  9247. + to runtime path list])
  9248. +_LT_TAGDECL([], [link_all_deplibs], [0],
  9249. + [Whether libtool must link a program against all its dependency libraries])
  9250. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  9251. + [Fix the shell variable $srcfile for the compiler])
  9252. +_LT_TAGDECL([], [always_export_symbols], [0],
  9253. + [Set to "yes" if exported symbols are required])
  9254. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  9255. + [The commands to list exported symbols])
  9256. +_LT_TAGDECL([], [exclude_expsyms], [1],
  9257. + [Symbols that should not be listed in the preloaded symbols])
  9258. +_LT_TAGDECL([], [include_expsyms], [1],
  9259. + [Symbols that must always be exported])
  9260. +_LT_TAGDECL([], [prelink_cmds], [2],
  9261. + [Commands necessary for linking programs (against libraries) with templates])
  9262. +_LT_TAGDECL([], [file_list_spec], [1],
  9263. + [Specify filename containing input files])
  9264. +dnl FIXME: Not yet implemented
  9265. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  9266. +dnl [Compiler flag to generate thread safe objects])
  9267. +])# _LT_LINKER_SHLIBS
  9268. +
  9269. +
  9270. +# _LT_LANG_C_CONFIG([TAG])
  9271. +# ------------------------
  9272. +# Ensure that the configuration variables for a C compiler are suitably
  9273. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9274. +# the compiler configuration to `libtool'.
  9275. +m4_defun([_LT_LANG_C_CONFIG],
  9276. +[m4_require([_LT_DECL_EGREP])dnl
  9277. +lt_save_CC="$CC"
  9278. +AC_LANG_PUSH(C)
  9279. +
  9280. +# Source file extension for C test sources.
  9281. +ac_ext=c
  9282. +
  9283. +# Object file extension for compiled C test sources.
  9284. +objext=o
  9285. +_LT_TAGVAR(objext, $1)=$objext
  9286. +
  9287. +# Code to be used in simple compile tests
  9288. +lt_simple_compile_test_code="int some_variable = 0;"
  9289. +
  9290. +# Code to be used in simple link tests
  9291. +lt_simple_link_test_code='int main(){return(0);}'
  9292. +
  9293. +_LT_TAG_COMPILER
  9294. +# Save the default compiler, since it gets overwritten when the other
  9295. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9296. +compiler_DEFAULT=$CC
  9297. +
  9298. +# save warnings/boilerplate of simple test code
  9299. +_LT_COMPILER_BOILERPLATE
  9300. +_LT_LINKER_BOILERPLATE
  9301. +
  9302. +if test -n "$compiler"; then
  9303. + _LT_COMPILER_NO_RTTI($1)
  9304. + _LT_COMPILER_PIC($1)
  9305. + _LT_COMPILER_C_O($1)
  9306. + _LT_COMPILER_FILE_LOCKS($1)
  9307. + _LT_LINKER_SHLIBS($1)
  9308. + _LT_SYS_DYNAMIC_LINKER($1)
  9309. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9310. + LT_SYS_DLOPEN_SELF
  9311. + _LT_CMD_STRIPLIB
  9312. +
  9313. + # Report which library types will actually be built
  9314. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9315. + AC_MSG_RESULT([$can_build_shared])
  9316. +
  9317. + AC_MSG_CHECKING([whether to build shared libraries])
  9318. + test "$can_build_shared" = "no" && enable_shared=no
  9319. +
  9320. + # On AIX, shared libraries and static libraries use the same namespace, and
  9321. + # are all built from PIC.
  9322. + case $host_os in
  9323. + aix3*)
  9324. + test "$enable_shared" = yes && enable_static=no
  9325. + if test -n "$RANLIB"; then
  9326. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9327. + postinstall_cmds='$RANLIB $lib'
  9328. + fi
  9329. + ;;
  9330. +
  9331. + aix[[4-9]]*)
  9332. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9333. + test "$enable_shared" = yes && enable_static=no
  9334. + fi
  9335. + ;;
  9336. + esac
  9337. + AC_MSG_RESULT([$enable_shared])
  9338. +
  9339. + AC_MSG_CHECKING([whether to build static libraries])
  9340. + # Make sure either enable_shared or enable_static is yes.
  9341. + test "$enable_shared" = yes || enable_static=yes
  9342. + AC_MSG_RESULT([$enable_static])
  9343. +
  9344. + _LT_CONFIG($1)
  9345. +fi
  9346. +AC_LANG_POP
  9347. +CC="$lt_save_CC"
  9348. +])# _LT_LANG_C_CONFIG
  9349. +
  9350. +
  9351. +# _LT_PROG_CXX
  9352. +# ------------
  9353. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9354. +# compiler, we have our own version here.
  9355. +m4_defun([_LT_PROG_CXX],
  9356. +[
  9357. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9358. +AC_PROG_CXX
  9359. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9360. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9361. + (test "X$CXX" != "Xg++"))) ; then
  9362. + AC_PROG_CXXCPP
  9363. +else
  9364. + _lt_caught_CXX_error=yes
  9365. +fi
  9366. +popdef([AC_MSG_ERROR])
  9367. +])# _LT_PROG_CXX
  9368. +
  9369. +dnl aclocal-1.4 backwards compatibility:
  9370. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9371. +
  9372. +
  9373. +# _LT_LANG_CXX_CONFIG([TAG])
  9374. +# --------------------------
  9375. +# Ensure that the configuration variables for a C++ compiler are suitably
  9376. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9377. +# the compiler configuration to `libtool'.
  9378. +m4_defun([_LT_LANG_CXX_CONFIG],
  9379. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9380. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9381. +m4_require([_LT_DECL_EGREP])dnl
  9382. +
  9383. +AC_LANG_PUSH(C++)
  9384. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9385. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9386. +_LT_TAGVAR(always_export_symbols, $1)=no
  9387. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9388. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9389. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9390. +_LT_TAGVAR(hardcode_direct, $1)=no
  9391. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9392. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9393. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9394. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9395. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9396. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9397. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9398. +_LT_TAGVAR(inherit_rpath, $1)=no
  9399. +_LT_TAGVAR(module_cmds, $1)=
  9400. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9401. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9402. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9403. +_LT_TAGVAR(no_undefined_flag, $1)=
  9404. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9405. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9406. +
  9407. +# Source file extension for C++ test sources.
  9408. +ac_ext=cpp
  9409. +
  9410. +# Object file extension for compiled C++ test sources.
  9411. +objext=o
  9412. +_LT_TAGVAR(objext, $1)=$objext
  9413. +
  9414. +# No sense in running all these tests if we already determined that
  9415. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9416. +# are currently assumed to apply to all compilers on this platform,
  9417. +# and will be corrupted by setting them based on a non-working compiler.
  9418. +if test "$_lt_caught_CXX_error" != yes; then
  9419. + # Code to be used in simple compile tests
  9420. + lt_simple_compile_test_code="int some_variable = 0;"
  9421. +
  9422. + # Code to be used in simple link tests
  9423. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9424. +
  9425. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9426. + _LT_TAG_COMPILER
  9427. +
  9428. + # save warnings/boilerplate of simple test code
  9429. + _LT_COMPILER_BOILERPLATE
  9430. + _LT_LINKER_BOILERPLATE
  9431. +
  9432. + # Allow CC to be a program name with arguments.
  9433. + lt_save_CC=$CC
  9434. + lt_save_LD=$LD
  9435. + lt_save_GCC=$GCC
  9436. + GCC=$GXX
  9437. + lt_save_with_gnu_ld=$with_gnu_ld
  9438. + lt_save_path_LD=$lt_cv_path_LD
  9439. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9440. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9441. + else
  9442. + $as_unset lt_cv_prog_gnu_ld
  9443. + fi
  9444. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9445. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9446. + else
  9447. + $as_unset lt_cv_path_LD
  9448. + fi
  9449. + test -z "${LDCXX+set}" || LD=$LDCXX
  9450. + CC=${CXX-"c++"}
  9451. + compiler=$CC
  9452. + _LT_TAGVAR(compiler, $1)=$CC
  9453. + _LT_CC_BASENAME([$compiler])
  9454. +
  9455. + if test -n "$compiler"; then
  9456. + # We don't want -fno-exception when compiling C++ code, so set the
  9457. + # no_builtin_flag separately
  9458. + if test "$GXX" = yes; then
  9459. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9460. + else
  9461. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9462. + fi
  9463. +
  9464. + if test "$GXX" = yes; then
  9465. + # Set up default GNU C++ configuration
  9466. +
  9467. + LT_PATH_LD
  9468. +
  9469. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9470. + # archiving commands below assume that GNU ld is being used.
  9471. + if test "$with_gnu_ld" = yes; then
  9472. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9473. + _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'
  9474. +
  9475. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9476. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9477. +
  9478. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9479. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9480. + # investigate it a little bit more. (MM)
  9481. + wlarc='${wl}'
  9482. +
  9483. + # ancient GNU ld didn't support --whole-archive et. al.
  9484. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9485. + $GREP 'no-whole-archive' > /dev/null; then
  9486. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9487. + else
  9488. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9489. + fi
  9490. + else
  9491. + with_gnu_ld=no
  9492. + wlarc=
  9493. +
  9494. + # A generic and very simple default shared library creation
  9495. + # command for GNU C++ for the case where it uses the native
  9496. + # linker, instead of GNU ld. If possible, this setting should
  9497. + # overridden to take advantage of the native linker features on
  9498. + # the platform it is being used on.
  9499. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9500. + fi
  9501. +
  9502. + # Commands to make compiler produce verbose output that lists
  9503. + # what "hidden" libraries, object files and flags are used when
  9504. + # linking a shared library.
  9505. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9506. +
  9507. + else
  9508. + GXX=no
  9509. + with_gnu_ld=no
  9510. + wlarc=
  9511. + fi
  9512. +
  9513. + # PORTME: fill in a description of your system's C++ link characteristics
  9514. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9515. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9516. + case $host_os in
  9517. + aix3*)
  9518. + # FIXME: insert proper C++ library support
  9519. + _LT_TAGVAR(ld_shlibs, $1)=no
  9520. + ;;
  9521. + aix[[4-9]]*)
  9522. + if test "$host_cpu" = ia64; then
  9523. + # On IA64, the linker does run time linking by default, so we don't
  9524. + # have to do anything special.
  9525. + aix_use_runtimelinking=no
  9526. + exp_sym_flag='-Bexport'
  9527. + no_entry_flag=""
  9528. + else
  9529. + aix_use_runtimelinking=no
  9530. +
  9531. + # Test if we are trying to use run time linking or normal
  9532. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9533. + # need to do runtime linking.
  9534. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9535. + for ld_flag in $LDFLAGS; do
  9536. + case $ld_flag in
  9537. + *-brtl*)
  9538. + aix_use_runtimelinking=yes
  9539. + break
  9540. + ;;
  9541. + esac
  9542. + done
  9543. + ;;
  9544. + esac
  9545. +
  9546. + exp_sym_flag='-bexport'
  9547. + no_entry_flag='-bnoentry'
  9548. + fi
  9549. +
  9550. + # When large executables or shared objects are built, AIX ld can
  9551. + # have problems creating the table of contents. If linking a library
  9552. + # or program results in "error TOC overflow" add -mminimal-toc to
  9553. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9554. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9555. +
  9556. + _LT_TAGVAR(archive_cmds, $1)=''
  9557. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9558. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9559. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9560. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9561. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9562. +
  9563. + if test "$GXX" = yes; then
  9564. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9565. + # We only want to do this on AIX 4.2 and lower, the check
  9566. + # below for broken collect2 doesn't work under 4.3+
  9567. + collect2name=`${CC} -print-prog-name=collect2`
  9568. + if test -f "$collect2name" &&
  9569. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9570. + then
  9571. + # We have reworked collect2
  9572. + :
  9573. + else
  9574. + # We have old collect2
  9575. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9576. + # It fails to find uninstalled libraries when the uninstalled
  9577. + # path is not listed in the libpath. Setting hardcode_minus_L
  9578. + # to unsupported forces relinking
  9579. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9580. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9581. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9582. + fi
  9583. + esac
  9584. + shared_flag='-shared'
  9585. + if test "$aix_use_runtimelinking" = yes; then
  9586. + shared_flag="$shared_flag "'${wl}-G'
  9587. + fi
  9588. + else
  9589. + # not using gcc
  9590. + if test "$host_cpu" = ia64; then
  9591. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9592. + # chokes on -Wl,-G. The following line is correct:
  9593. + shared_flag='-G'
  9594. + else
  9595. + if test "$aix_use_runtimelinking" = yes; then
  9596. + shared_flag='${wl}-G'
  9597. + else
  9598. + shared_flag='${wl}-bM:SRE'
  9599. + fi
  9600. + fi
  9601. + fi
  9602. +
  9603. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9604. + # It seems that -bexpall does not export symbols beginning with
  9605. + # underscore (_), so it is better to generate a list of symbols to
  9606. + # export.
  9607. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9608. + if test "$aix_use_runtimelinking" = yes; then
  9609. + # Warning - without using the other runtime loading flags (-brtl),
  9610. + # -berok will link without error, but may produce a broken library.
  9611. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9612. + # Determine the default libpath from the value encoded in an empty
  9613. + # executable.
  9614. + _LT_SYS_MODULE_PATH_AIX
  9615. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9616. +
  9617. + _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"
  9618. + else
  9619. + if test "$host_cpu" = ia64; then
  9620. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9621. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9622. + _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"
  9623. + else
  9624. + # Determine the default libpath from the value encoded in an
  9625. + # empty executable.
  9626. + _LT_SYS_MODULE_PATH_AIX
  9627. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9628. + # Warning - without using the other run time loading flags,
  9629. + # -berok will link without error, but may produce a broken library.
  9630. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9631. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9632. + # Exported symbols can be pulled into shared objects from archives
  9633. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9634. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9635. + # This is similar to how AIX traditionally builds its shared
  9636. + # libraries.
  9637. + _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'
  9638. + fi
  9639. + fi
  9640. + ;;
  9641. +
  9642. + beos*)
  9643. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9644. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9645. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9646. + # support --undefined. This deserves some investigation. FIXME
  9647. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9648. + else
  9649. + _LT_TAGVAR(ld_shlibs, $1)=no
  9650. + fi
  9651. + ;;
  9652. +
  9653. + chorus*)
  9654. + case $cc_basename in
  9655. + *)
  9656. + # FIXME: insert proper C++ library support
  9657. + _LT_TAGVAR(ld_shlibs, $1)=no
  9658. + ;;
  9659. + esac
  9660. + ;;
  9661. +
  9662. + cygwin* | mingw* | pw32* | cegcc*)
  9663. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9664. + # as there is no search path for DLLs.
  9665. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9666. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9667. + _LT_TAGVAR(always_export_symbols, $1)=no
  9668. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9669. +
  9670. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9671. + _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'
  9672. + # If the export-symbols file already is a .def file (1st line
  9673. + # is EXPORTS), use it as is; otherwise, prepend...
  9674. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9675. + cp $export_symbols $output_objdir/$soname.def;
  9676. + else
  9677. + echo EXPORTS > $output_objdir/$soname.def;
  9678. + cat $export_symbols >> $output_objdir/$soname.def;
  9679. + fi~
  9680. + $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'
  9681. + else
  9682. + _LT_TAGVAR(ld_shlibs, $1)=no
  9683. + fi
  9684. + ;;
  9685. + darwin* | rhapsody*)
  9686. + _LT_DARWIN_LINKER_FEATURES($1)
  9687. + ;;
  9688. +
  9689. + dgux*)
  9690. + case $cc_basename in
  9691. + ec++*)
  9692. + # FIXME: insert proper C++ library support
  9693. + _LT_TAGVAR(ld_shlibs, $1)=no
  9694. + ;;
  9695. + ghcx*)
  9696. + # Green Hills C++ Compiler
  9697. + # FIXME: insert proper C++ library support
  9698. + _LT_TAGVAR(ld_shlibs, $1)=no
  9699. + ;;
  9700. + *)
  9701. + # FIXME: insert proper C++ library support
  9702. + _LT_TAGVAR(ld_shlibs, $1)=no
  9703. + ;;
  9704. + esac
  9705. + ;;
  9706. +
  9707. + freebsd[[12]]*)
  9708. + # C++ shared libraries reported to be fairly broken before
  9709. + # switch to ELF
  9710. + _LT_TAGVAR(ld_shlibs, $1)=no
  9711. + ;;
  9712. +
  9713. + freebsd-elf*)
  9714. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9715. + ;;
  9716. +
  9717. + freebsd* | dragonfly*)
  9718. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9719. + # conventions
  9720. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9721. + ;;
  9722. +
  9723. + gnu*)
  9724. + ;;
  9725. +
  9726. + hpux9*)
  9727. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9728. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9729. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9730. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9731. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9732. + # but as the default
  9733. + # location of the library.
  9734. +
  9735. + case $cc_basename in
  9736. + CC*)
  9737. + # FIXME: insert proper C++ library support
  9738. + _LT_TAGVAR(ld_shlibs, $1)=no
  9739. + ;;
  9740. + aCC*)
  9741. + _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'
  9742. + # Commands to make compiler produce verbose output that lists
  9743. + # what "hidden" libraries, object files and flags are used when
  9744. + # linking a shared library.
  9745. + #
  9746. + # There doesn't appear to be a way to prevent this compiler from
  9747. + # explicitly linking system object files so we need to strip them
  9748. + # from the output so that they don't get included in the library
  9749. + # dependencies.
  9750. + 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'
  9751. + ;;
  9752. + *)
  9753. + if test "$GXX" = yes; then
  9754. + _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'
  9755. + else
  9756. + # FIXME: insert proper C++ library support
  9757. + _LT_TAGVAR(ld_shlibs, $1)=no
  9758. + fi
  9759. + ;;
  9760. + esac
  9761. + ;;
  9762. +
  9763. + hpux10*|hpux11*)
  9764. + if test $with_gnu_ld = no; then
  9765. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9766. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9767. +
  9768. + case $host_cpu in
  9769. + hppa*64*|ia64*)
  9770. + ;;
  9771. + *)
  9772. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9773. + ;;
  9774. + esac
  9775. + fi
  9776. + case $host_cpu in
  9777. + hppa*64*|ia64*)
  9778. + _LT_TAGVAR(hardcode_direct, $1)=no
  9779. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9780. + ;;
  9781. + *)
  9782. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9783. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9784. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9785. + # but as the default
  9786. + # location of the library.
  9787. + ;;
  9788. + esac
  9789. +
  9790. + case $cc_basename in
  9791. + CC*)
  9792. + # FIXME: insert proper C++ library support
  9793. + _LT_TAGVAR(ld_shlibs, $1)=no
  9794. + ;;
  9795. + aCC*)
  9796. + case $host_cpu in
  9797. + hppa*64*)
  9798. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9799. + ;;
  9800. + ia64*)
  9801. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9802. + ;;
  9803. + *)
  9804. + _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'
  9805. + ;;
  9806. + esac
  9807. + # Commands to make compiler produce verbose output that lists
  9808. + # what "hidden" libraries, object files and flags are used when
  9809. + # linking a shared library.
  9810. + #
  9811. + # There doesn't appear to be a way to prevent this compiler from
  9812. + # explicitly linking system object files so we need to strip them
  9813. + # from the output so that they don't get included in the library
  9814. + # dependencies.
  9815. + 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'
  9816. + ;;
  9817. + *)
  9818. + if test "$GXX" = yes; then
  9819. + if test $with_gnu_ld = no; then
  9820. + case $host_cpu in
  9821. + hppa*64*)
  9822. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9823. + ;;
  9824. + ia64*)
  9825. + _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'
  9826. + ;;
  9827. + *)
  9828. + _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'
  9829. + ;;
  9830. + esac
  9831. + fi
  9832. + else
  9833. + # FIXME: insert proper C++ library support
  9834. + _LT_TAGVAR(ld_shlibs, $1)=no
  9835. + fi
  9836. + ;;
  9837. + esac
  9838. + ;;
  9839. +
  9840. + interix[[3-9]]*)
  9841. + _LT_TAGVAR(hardcode_direct, $1)=no
  9842. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9843. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9844. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9845. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9846. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9847. + # default) and relocated if they conflict, which is a slow very memory
  9848. + # consuming and fragmenting process. To avoid this, we pick a random,
  9849. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9850. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9851. + _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'
  9852. + _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'
  9853. + ;;
  9854. + irix5* | irix6*)
  9855. + case $cc_basename in
  9856. + CC*)
  9857. + # SGI C++
  9858. + _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'
  9859. +
  9860. + # Archives containing C++ object files must be created using
  9861. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9862. + # necessary to make sure instantiated templates are included
  9863. + # in the archive.
  9864. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9865. + ;;
  9866. + *)
  9867. + if test "$GXX" = yes; then
  9868. + if test "$with_gnu_ld" = no; then
  9869. + _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'
  9870. + else
  9871. + _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'
  9872. + fi
  9873. + fi
  9874. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9875. + ;;
  9876. + esac
  9877. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9878. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9879. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9880. + ;;
  9881. +
  9882. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9883. + case $cc_basename in
  9884. + KCC*)
  9885. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9886. +
  9887. + # KCC will only create a shared library if the output file
  9888. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9889. + # to its proper name (with version) after linking.
  9890. + _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'
  9891. + _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'
  9892. + # Commands to make compiler produce verbose output that lists
  9893. + # what "hidden" libraries, object files and flags are used when
  9894. + # linking a shared library.
  9895. + #
  9896. + # There doesn't appear to be a way to prevent this compiler from
  9897. + # explicitly linking system object files so we need to strip them
  9898. + # from the output so that they don't get included in the library
  9899. + # dependencies.
  9900. + 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'
  9901. +
  9902. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9903. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9904. +
  9905. + # Archives containing C++ object files must be created using
  9906. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9907. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9908. + ;;
  9909. + icpc* | ecpc* )
  9910. + # Intel C++
  9911. + with_gnu_ld=yes
  9912. + # version 8.0 and above of icpc choke on multiply defined symbols
  9913. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9914. + # earlier do not add the objects themselves.
  9915. + case `$CC -V 2>&1` in
  9916. + *"Version 7."*)
  9917. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9918. + _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'
  9919. + ;;
  9920. + *) # Version 8.0 or newer
  9921. + tmp_idyn=
  9922. + case $host_cpu in
  9923. + ia64*) tmp_idyn=' -i_dynamic';;
  9924. + esac
  9925. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9926. + _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'
  9927. + ;;
  9928. + esac
  9929. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9930. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9931. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9932. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9933. + ;;
  9934. + pgCC* | pgcpp*)
  9935. + # Portland Group C++ compiler
  9936. + case `$CC -V` in
  9937. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9938. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9939. + rm -rf $tpldir~
  9940. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9941. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9942. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9943. + rm -rf $tpldir~
  9944. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9945. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9946. + $RANLIB $oldlib'
  9947. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9948. + rm -rf $tpldir~
  9949. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9950. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9951. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9952. + rm -rf $tpldir~
  9953. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9954. + $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'
  9955. + ;;
  9956. + *) # Version 6 will use weak symbols
  9957. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9958. + _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'
  9959. + ;;
  9960. + esac
  9961. +
  9962. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9963. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9964. + _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'
  9965. + ;;
  9966. + cxx*)
  9967. + # Compaq C++
  9968. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9969. + _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'
  9970. +
  9971. + runpath_var=LD_RUN_PATH
  9972. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9973. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9974. +
  9975. + # Commands to make compiler produce verbose output that lists
  9976. + # what "hidden" libraries, object files and flags are used when
  9977. + # linking a shared library.
  9978. + #
  9979. + # There doesn't appear to be a way to prevent this compiler from
  9980. + # explicitly linking system object files so we need to strip them
  9981. + # from the output so that they don't get included in the library
  9982. + # dependencies.
  9983. + 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'
  9984. + ;;
  9985. + xl*)
  9986. + # IBM XL 8.0 on PPC, with GNU ld
  9987. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9988. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9989. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9990. + if test "x$supports_anon_versioning" = xyes; then
  9991. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  9992. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9993. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9994. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9995. + fi
  9996. + ;;
  9997. + *)
  9998. + case `$CC -V 2>&1 | sed 5q` in
  9999. + *Sun\ C*)
  10000. + # Sun C++ 5.9
  10001. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10002. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10003. + _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'
  10004. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10005. + _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'
  10006. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  10007. +
  10008. + # Not sure whether something based on
  10009. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10010. + # would be better.
  10011. + output_verbose_link_cmd='echo'
  10012. +
  10013. + # Archives containing C++ object files must be created using
  10014. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10015. + # necessary to make sure instantiated templates are included
  10016. + # in the archive.
  10017. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10018. + ;;
  10019. + esac
  10020. + ;;
  10021. + esac
  10022. + ;;
  10023. +
  10024. + lynxos*)
  10025. + # FIXME: insert proper C++ library support
  10026. + _LT_TAGVAR(ld_shlibs, $1)=no
  10027. + ;;
  10028. +
  10029. + m88k*)
  10030. + # FIXME: insert proper C++ library support
  10031. + _LT_TAGVAR(ld_shlibs, $1)=no
  10032. + ;;
  10033. +
  10034. + mvs*)
  10035. + case $cc_basename in
  10036. + cxx*)
  10037. + # FIXME: insert proper C++ library support
  10038. + _LT_TAGVAR(ld_shlibs, $1)=no
  10039. + ;;
  10040. + *)
  10041. + # FIXME: insert proper C++ library support
  10042. + _LT_TAGVAR(ld_shlibs, $1)=no
  10043. + ;;
  10044. + esac
  10045. + ;;
  10046. +
  10047. + netbsd*)
  10048. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10049. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10050. + wlarc=
  10051. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10052. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10053. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10054. + fi
  10055. + # Workaround some broken pre-1.5 toolchains
  10056. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10057. + ;;
  10058. +
  10059. + *nto* | *qnx*)
  10060. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10061. + ;;
  10062. +
  10063. + openbsd2*)
  10064. + # C++ shared libraries are fairly broken
  10065. + _LT_TAGVAR(ld_shlibs, $1)=no
  10066. + ;;
  10067. +
  10068. + openbsd*)
  10069. + if test -f /usr/libexec/ld.so; then
  10070. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10071. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10072. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10073. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10074. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10075. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10076. + _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'
  10077. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10078. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10079. + fi
  10080. + output_verbose_link_cmd=echo
  10081. + else
  10082. + _LT_TAGVAR(ld_shlibs, $1)=no
  10083. + fi
  10084. + ;;
  10085. +
  10086. + osf3* | osf4* | osf5*)
  10087. + case $cc_basename in
  10088. + KCC*)
  10089. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10090. +
  10091. + # KCC will only create a shared library if the output file
  10092. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10093. + # to its proper name (with version) after linking.
  10094. + _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'
  10095. +
  10096. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10097. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10098. +
  10099. + # Archives containing C++ object files must be created using
  10100. + # the KAI C++ compiler.
  10101. + case $host in
  10102. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10103. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10104. + esac
  10105. + ;;
  10106. + RCC*)
  10107. + # Rational C++ 2.4.1
  10108. + # FIXME: insert proper C++ library support
  10109. + _LT_TAGVAR(ld_shlibs, $1)=no
  10110. + ;;
  10111. + cxx*)
  10112. + case $host in
  10113. + osf3*)
  10114. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10115. + _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'
  10116. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10117. + ;;
  10118. + *)
  10119. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10120. + _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'
  10121. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10122. + echo "-hidden">> $lib.exp~
  10123. + $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~
  10124. + $RM $lib.exp'
  10125. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10126. + ;;
  10127. + esac
  10128. +
  10129. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10130. +
  10131. + # Commands to make compiler produce verbose output that lists
  10132. + # what "hidden" libraries, object files and flags are used when
  10133. + # linking a shared library.
  10134. + #
  10135. + # There doesn't appear to be a way to prevent this compiler from
  10136. + # explicitly linking system object files so we need to strip them
  10137. + # from the output so that they don't get included in the library
  10138. + # dependencies.
  10139. + 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'
  10140. + ;;
  10141. + *)
  10142. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10143. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10144. + case $host in
  10145. + osf3*)
  10146. + _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'
  10147. + ;;
  10148. + *)
  10149. + _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'
  10150. + ;;
  10151. + esac
  10152. +
  10153. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10154. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10155. +
  10156. + # Commands to make compiler produce verbose output that lists
  10157. + # what "hidden" libraries, object files and flags are used when
  10158. + # linking a shared library.
  10159. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10160. +
  10161. + else
  10162. + # FIXME: insert proper C++ library support
  10163. + _LT_TAGVAR(ld_shlibs, $1)=no
  10164. + fi
  10165. + ;;
  10166. + esac
  10167. + ;;
  10168. +
  10169. + psos*)
  10170. + # FIXME: insert proper C++ library support
  10171. + _LT_TAGVAR(ld_shlibs, $1)=no
  10172. + ;;
  10173. +
  10174. + sunos4*)
  10175. + case $cc_basename in
  10176. + CC*)
  10177. + # Sun C++ 4.x
  10178. + # FIXME: insert proper C++ library support
  10179. + _LT_TAGVAR(ld_shlibs, $1)=no
  10180. + ;;
  10181. + lcc*)
  10182. + # Lucid
  10183. + # FIXME: insert proper C++ library support
  10184. + _LT_TAGVAR(ld_shlibs, $1)=no
  10185. + ;;
  10186. + *)
  10187. + # FIXME: insert proper C++ library support
  10188. + _LT_TAGVAR(ld_shlibs, $1)=no
  10189. + ;;
  10190. + esac
  10191. + ;;
  10192. +
  10193. + solaris*)
  10194. + case $cc_basename in
  10195. + CC*)
  10196. + # Sun C++ 4.2, 5.x and Centerline C++
  10197. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10198. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10199. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10200. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10201. + $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'
  10202. +
  10203. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10204. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10205. + case $host_os in
  10206. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10207. + *)
  10208. + # The compiler driver will combine and reorder linker options,
  10209. + # but understands `-z linker_flag'.
  10210. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10211. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10212. + ;;
  10213. + esac
  10214. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10215. +
  10216. + output_verbose_link_cmd='echo'
  10217. +
  10218. + # Archives containing C++ object files must be created using
  10219. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10220. + # necessary to make sure instantiated templates are included
  10221. + # in the archive.
  10222. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10223. + ;;
  10224. + gcx*)
  10225. + # Green Hills C++ Compiler
  10226. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10227. +
  10228. + # The C++ compiler must be used to create the archive.
  10229. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10230. + ;;
  10231. + *)
  10232. + # GNU C++ compiler with Solaris linker
  10233. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10234. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10235. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10236. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10237. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10238. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10239. +
  10240. + # Commands to make compiler produce verbose output that lists
  10241. + # what "hidden" libraries, object files and flags are used when
  10242. + # linking a shared library.
  10243. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10244. + else
  10245. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10246. + # platform.
  10247. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10248. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10249. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10250. +
  10251. + # Commands to make compiler produce verbose output that lists
  10252. + # what "hidden" libraries, object files and flags are used when
  10253. + # linking a shared library.
  10254. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10255. + fi
  10256. +
  10257. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10258. + case $host_os in
  10259. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10260. + *)
  10261. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10262. + ;;
  10263. + esac
  10264. + fi
  10265. + ;;
  10266. + esac
  10267. + ;;
  10268. +
  10269. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10270. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10271. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10272. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10273. + runpath_var='LD_RUN_PATH'
  10274. +
  10275. + case $cc_basename in
  10276. + CC*)
  10277. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10278. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10279. + ;;
  10280. + *)
  10281. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10282. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10283. + ;;
  10284. + esac
  10285. + ;;
  10286. +
  10287. + sysv5* | sco3.2v5* | sco5v6*)
  10288. + # Note: We can NOT use -z defs as we might desire, because we do not
  10289. + # link with -lc, and that would cause any symbols used from libc to
  10290. + # always be unresolved, which means just about no library would
  10291. + # ever link correctly. If we're not using GNU ld we use -z text
  10292. + # though, which does catch some bad symbols but isn't as heavy-handed
  10293. + # as -z defs.
  10294. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10295. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10296. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10297. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10298. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10299. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10300. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10301. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10302. + runpath_var='LD_RUN_PATH'
  10303. +
  10304. + case $cc_basename in
  10305. + CC*)
  10306. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10307. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10308. + ;;
  10309. + *)
  10310. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10311. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10312. + ;;
  10313. + esac
  10314. + ;;
  10315. +
  10316. + tandem*)
  10317. + case $cc_basename in
  10318. + NCC*)
  10319. + # NonStop-UX NCC 3.20
  10320. + # FIXME: insert proper C++ library support
  10321. + _LT_TAGVAR(ld_shlibs, $1)=no
  10322. + ;;
  10323. + *)
  10324. + # FIXME: insert proper C++ library support
  10325. + _LT_TAGVAR(ld_shlibs, $1)=no
  10326. + ;;
  10327. + esac
  10328. + ;;
  10329. +
  10330. + vxworks*)
  10331. + # FIXME: insert proper C++ library support
  10332. + _LT_TAGVAR(ld_shlibs, $1)=no
  10333. + ;;
  10334. +
  10335. + *)
  10336. + # FIXME: insert proper C++ library support
  10337. + _LT_TAGVAR(ld_shlibs, $1)=no
  10338. + ;;
  10339. + esac
  10340. +
  10341. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10342. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10343. +
  10344. + _LT_TAGVAR(GCC, $1)="$GXX"
  10345. + _LT_TAGVAR(LD, $1)="$LD"
  10346. +
  10347. + ## CAVEAT EMPTOR:
  10348. + ## There is no encapsulation within the following macros, do not change
  10349. + ## the running order or otherwise move them around unless you know exactly
  10350. + ## what you are doing...
  10351. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10352. + _LT_COMPILER_PIC($1)
  10353. + _LT_COMPILER_C_O($1)
  10354. + _LT_COMPILER_FILE_LOCKS($1)
  10355. + _LT_LINKER_SHLIBS($1)
  10356. + _LT_SYS_DYNAMIC_LINKER($1)
  10357. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10358. +
  10359. + _LT_CONFIG($1)
  10360. + fi # test -n "$compiler"
  10361. +
  10362. + CC=$lt_save_CC
  10363. + LDCXX=$LD
  10364. + LD=$lt_save_LD
  10365. + GCC=$lt_save_GCC
  10366. + with_gnu_ld=$lt_save_with_gnu_ld
  10367. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10368. + lt_cv_path_LD=$lt_save_path_LD
  10369. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10370. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10371. +fi # test "$_lt_caught_CXX_error" != yes
  10372. +
  10373. +AC_LANG_POP
  10374. +])# _LT_LANG_CXX_CONFIG
  10375. +
  10376. +
  10377. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10378. +# ---------------------------------
  10379. +# Figure out "hidden" library dependencies from verbose
  10380. +# compiler output when linking a shared library.
  10381. +# Parse the compiler output and extract the necessary
  10382. +# objects, libraries and library flags.
  10383. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10384. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10385. +# Dependencies to place before and after the object being linked:
  10386. +_LT_TAGVAR(predep_objects, $1)=
  10387. +_LT_TAGVAR(postdep_objects, $1)=
  10388. +_LT_TAGVAR(predeps, $1)=
  10389. +_LT_TAGVAR(postdeps, $1)=
  10390. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10391. +
  10392. +dnl we can't use the lt_simple_compile_test_code here,
  10393. +dnl because it contains code intended for an executable,
  10394. +dnl not a library. It's possible we should let each
  10395. +dnl tag define a new lt_????_link_test_code variable,
  10396. +dnl but it's only used here...
  10397. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10398. +int a;
  10399. +void foo (void) { a = 0; }
  10400. +_LT_EOF
  10401. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10402. +class Foo
  10403. +{
  10404. +public:
  10405. + Foo (void) { a = 0; }
  10406. +private:
  10407. + int a;
  10408. +};
  10409. +_LT_EOF
  10410. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10411. + subroutine foo
  10412. + implicit none
  10413. + integer*4 a
  10414. + a=0
  10415. + return
  10416. + end
  10417. +_LT_EOF
  10418. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10419. + subroutine foo
  10420. + implicit none
  10421. + integer a
  10422. + a=0
  10423. + return
  10424. + end
  10425. +_LT_EOF
  10426. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10427. +public class foo {
  10428. + private int a;
  10429. + public void bar (void) {
  10430. + a = 0;
  10431. + }
  10432. +};
  10433. +_LT_EOF
  10434. +])
  10435. +dnl Parse the compiler output and extract the necessary
  10436. +dnl objects, libraries and library flags.
  10437. +if AC_TRY_EVAL(ac_compile); then
  10438. + # Parse the compiler output and extract the necessary
  10439. + # objects, libraries and library flags.
  10440. +
  10441. + # Sentinel used to keep track of whether or not we are before
  10442. + # the conftest object file.
  10443. + pre_test_object_deps_done=no
  10444. +
  10445. + for p in `eval "$output_verbose_link_cmd"`; do
  10446. + case $p in
  10447. +
  10448. + -L* | -R* | -l*)
  10449. + # Some compilers place space between "-{L,R}" and the path.
  10450. + # Remove the space.
  10451. + if test $p = "-L" ||
  10452. + test $p = "-R"; then
  10453. + prev=$p
  10454. + continue
  10455. + else
  10456. + prev=
  10457. + fi
  10458. +
  10459. + if test "$pre_test_object_deps_done" = no; then
  10460. + case $p in
  10461. + -L* | -R*)
  10462. + # Internal compiler library paths should come after those
  10463. + # provided the user. The postdeps already come after the
  10464. + # user supplied libs so there is no need to process them.
  10465. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10466. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10467. + else
  10468. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10469. + fi
  10470. + ;;
  10471. + # The "-l" case would never come before the object being
  10472. + # linked, so don't bother handling this case.
  10473. + esac
  10474. + else
  10475. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10476. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10477. + else
  10478. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10479. + fi
  10480. + fi
  10481. + ;;
  10482. +
  10483. + *.$objext)
  10484. + # This assumes that the test object file only shows up
  10485. + # once in the compiler output.
  10486. + if test "$p" = "conftest.$objext"; then
  10487. + pre_test_object_deps_done=yes
  10488. + continue
  10489. + fi
  10490. +
  10491. + if test "$pre_test_object_deps_done" = no; then
  10492. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10493. + _LT_TAGVAR(predep_objects, $1)="$p"
  10494. + else
  10495. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10496. + fi
  10497. + else
  10498. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10499. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10500. + else
  10501. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10502. + fi
  10503. + fi
  10504. + ;;
  10505. +
  10506. + *) ;; # Ignore the rest.
  10507. +
  10508. + esac
  10509. + done
  10510. +
  10511. + # Clean up.
  10512. + rm -f a.out a.exe
  10513. +else
  10514. + echo "libtool.m4: error: problem compiling $1 test program"
  10515. +fi
  10516. +
  10517. +$RM -f confest.$objext
  10518. +
  10519. +# PORTME: override above test on systems where it is broken
  10520. +m4_if([$1], [CXX],
  10521. +[case $host_os in
  10522. +interix[[3-9]]*)
  10523. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10524. + # hack all around it, let's just trust "g++" to DTRT.
  10525. + _LT_TAGVAR(predep_objects,$1)=
  10526. + _LT_TAGVAR(postdep_objects,$1)=
  10527. + _LT_TAGVAR(postdeps,$1)=
  10528. + ;;
  10529. +
  10530. +linux*)
  10531. + case `$CC -V 2>&1 | sed 5q` in
  10532. + *Sun\ C*)
  10533. + # Sun C++ 5.9
  10534. +
  10535. + # The more standards-conforming stlport4 library is
  10536. + # incompatible with the Cstd library. Avoid specifying
  10537. + # it if it's in CXXFLAGS. Ignore libCrun as
  10538. + # -library=stlport4 depends on it.
  10539. + case " $CXX $CXXFLAGS " in
  10540. + *" -library=stlport4 "*)
  10541. + solaris_use_stlport4=yes
  10542. + ;;
  10543. + esac
  10544. +
  10545. + if test "$solaris_use_stlport4" != yes; then
  10546. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10547. + fi
  10548. + ;;
  10549. + esac
  10550. + ;;
  10551. +
  10552. +solaris*)
  10553. + case $cc_basename in
  10554. + CC*)
  10555. + # The more standards-conforming stlport4 library is
  10556. + # incompatible with the Cstd library. Avoid specifying
  10557. + # it if it's in CXXFLAGS. Ignore libCrun as
  10558. + # -library=stlport4 depends on it.
  10559. + case " $CXX $CXXFLAGS " in
  10560. + *" -library=stlport4 "*)
  10561. + solaris_use_stlport4=yes
  10562. + ;;
  10563. + esac
  10564. +
  10565. + # Adding this requires a known-good setup of shared libraries for
  10566. + # Sun compiler versions before 5.6, else PIC objects from an old
  10567. + # archive will be linked into the output, leading to subtle bugs.
  10568. + if test "$solaris_use_stlport4" != yes; then
  10569. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10570. + fi
  10571. + ;;
  10572. + esac
  10573. + ;;
  10574. +esac
  10575. +])
  10576. +
  10577. +case " $_LT_TAGVAR(postdeps, $1) " in
  10578. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10579. +esac
  10580. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10581. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10582. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10583. +fi
  10584. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10585. + [The directories searched by this compiler when creating a shared library])
  10586. +_LT_TAGDECL([], [predep_objects], [1],
  10587. + [Dependencies to place before and after the objects being linked to
  10588. + create a shared library])
  10589. +_LT_TAGDECL([], [postdep_objects], [1])
  10590. +_LT_TAGDECL([], [predeps], [1])
  10591. +_LT_TAGDECL([], [postdeps], [1])
  10592. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10593. + [The library search path used internally by the compiler when linking
  10594. + a shared library])
  10595. +])# _LT_SYS_HIDDEN_LIBDEPS
  10596. +
  10597. +
  10598. +# _LT_PROG_F77
  10599. +# ------------
  10600. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10601. +# if there is no fortran compiler, we have our own version here.
  10602. +m4_defun([_LT_PROG_F77],
  10603. +[
  10604. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10605. +AC_PROG_F77
  10606. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10607. + _lt_disable_F77=yes
  10608. +fi
  10609. +popdef([AC_MSG_ERROR])
  10610. +])# _LT_PROG_F77
  10611. +
  10612. +dnl aclocal-1.4 backwards compatibility:
  10613. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10614. +
  10615. +
  10616. +# _LT_LANG_F77_CONFIG([TAG])
  10617. +# --------------------------
  10618. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10619. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10620. +# to write the compiler configuration to `libtool'.
  10621. +m4_defun([_LT_LANG_F77_CONFIG],
  10622. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10623. +AC_LANG_PUSH(Fortran 77)
  10624. +
  10625. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10626. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10627. +_LT_TAGVAR(always_export_symbols, $1)=no
  10628. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10629. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10630. +_LT_TAGVAR(hardcode_direct, $1)=no
  10631. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10632. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10633. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10634. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10635. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10636. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10637. +_LT_TAGVAR(inherit_rpath, $1)=no
  10638. +_LT_TAGVAR(module_cmds, $1)=
  10639. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10640. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10641. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10642. +_LT_TAGVAR(no_undefined_flag, $1)=
  10643. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10644. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10645. +
  10646. +# Source file extension for f77 test sources.
  10647. +ac_ext=f
  10648. +
  10649. +# Object file extension for compiled f77 test sources.
  10650. +objext=o
  10651. +_LT_TAGVAR(objext, $1)=$objext
  10652. +
  10653. +# No sense in running all these tests if we already determined that
  10654. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10655. +# are currently assumed to apply to all compilers on this platform,
  10656. +# and will be corrupted by setting them based on a non-working compiler.
  10657. +if test "$_lt_disable_F77" != yes; then
  10658. + # Code to be used in simple compile tests
  10659. + lt_simple_compile_test_code="\
  10660. + subroutine t
  10661. + return
  10662. + end
  10663. +"
  10664. +
  10665. + # Code to be used in simple link tests
  10666. + lt_simple_link_test_code="\
  10667. + program t
  10668. + end
  10669. +"
  10670. +
  10671. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10672. + _LT_TAG_COMPILER
  10673. +
  10674. + # save warnings/boilerplate of simple test code
  10675. + _LT_COMPILER_BOILERPLATE
  10676. + _LT_LINKER_BOILERPLATE
  10677. +
  10678. + # Allow CC to be a program name with arguments.
  10679. + lt_save_CC="$CC"
  10680. + lt_save_GCC=$GCC
  10681. + CC=${F77-"f77"}
  10682. + compiler=$CC
  10683. + _LT_TAGVAR(compiler, $1)=$CC
  10684. + _LT_CC_BASENAME([$compiler])
  10685. + GCC=$G77
  10686. + if test -n "$compiler"; then
  10687. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10688. + AC_MSG_RESULT([$can_build_shared])
  10689. +
  10690. + AC_MSG_CHECKING([whether to build shared libraries])
  10691. + test "$can_build_shared" = "no" && enable_shared=no
  10692. +
  10693. + # On AIX, shared libraries and static libraries use the same namespace, and
  10694. + # are all built from PIC.
  10695. + case $host_os in
  10696. + aix3*)
  10697. + test "$enable_shared" = yes && enable_static=no
  10698. + if test -n "$RANLIB"; then
  10699. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10700. + postinstall_cmds='$RANLIB $lib'
  10701. + fi
  10702. + ;;
  10703. + aix[[4-9]]*)
  10704. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10705. + test "$enable_shared" = yes && enable_static=no
  10706. + fi
  10707. + ;;
  10708. + esac
  10709. + AC_MSG_RESULT([$enable_shared])
  10710. +
  10711. + AC_MSG_CHECKING([whether to build static libraries])
  10712. + # Make sure either enable_shared or enable_static is yes.
  10713. + test "$enable_shared" = yes || enable_static=yes
  10714. + AC_MSG_RESULT([$enable_static])
  10715. +
  10716. + _LT_TAGVAR(GCC, $1)="$G77"
  10717. + _LT_TAGVAR(LD, $1)="$LD"
  10718. +
  10719. + ## CAVEAT EMPTOR:
  10720. + ## There is no encapsulation within the following macros, do not change
  10721. + ## the running order or otherwise move them around unless you know exactly
  10722. + ## what you are doing...
  10723. + _LT_COMPILER_PIC($1)
  10724. + _LT_COMPILER_C_O($1)
  10725. + _LT_COMPILER_FILE_LOCKS($1)
  10726. + _LT_LINKER_SHLIBS($1)
  10727. + _LT_SYS_DYNAMIC_LINKER($1)
  10728. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10729. +
  10730. + _LT_CONFIG($1)
  10731. + fi # test -n "$compiler"
  10732. +
  10733. + GCC=$lt_save_GCC
  10734. + CC="$lt_save_CC"
  10735. +fi # test "$_lt_disable_F77" != yes
  10736. +
  10737. +AC_LANG_POP
  10738. +])# _LT_LANG_F77_CONFIG
  10739. +
  10740. +
  10741. +# _LT_PROG_FC
  10742. +# -----------
  10743. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10744. +# if there is no fortran compiler, we have our own version here.
  10745. +m4_defun([_LT_PROG_FC],
  10746. +[
  10747. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10748. +AC_PROG_FC
  10749. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10750. + _lt_disable_FC=yes
  10751. +fi
  10752. +popdef([AC_MSG_ERROR])
  10753. +])# _LT_PROG_FC
  10754. +
  10755. +dnl aclocal-1.4 backwards compatibility:
  10756. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10757. +
  10758. +
  10759. +# _LT_LANG_FC_CONFIG([TAG])
  10760. +# -------------------------
  10761. +# Ensure that the configuration variables for a Fortran compiler are
  10762. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10763. +# to write the compiler configuration to `libtool'.
  10764. +m4_defun([_LT_LANG_FC_CONFIG],
  10765. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10766. +AC_LANG_PUSH(Fortran)
  10767. +
  10768. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10769. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10770. +_LT_TAGVAR(always_export_symbols, $1)=no
  10771. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10772. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10773. +_LT_TAGVAR(hardcode_direct, $1)=no
  10774. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10775. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10776. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10777. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10778. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10779. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10780. +_LT_TAGVAR(inherit_rpath, $1)=no
  10781. +_LT_TAGVAR(module_cmds, $1)=
  10782. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10783. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10784. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10785. +_LT_TAGVAR(no_undefined_flag, $1)=
  10786. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10787. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10788. +
  10789. +# Source file extension for fc test sources.
  10790. +ac_ext=${ac_fc_srcext-f}
  10791. +
  10792. +# Object file extension for compiled fc test sources.
  10793. +objext=o
  10794. +_LT_TAGVAR(objext, $1)=$objext
  10795. +
  10796. +# No sense in running all these tests if we already determined that
  10797. +# the FC compiler isn't working. Some variables (like enable_shared)
  10798. +# are currently assumed to apply to all compilers on this platform,
  10799. +# and will be corrupted by setting them based on a non-working compiler.
  10800. +if test "$_lt_disable_FC" != yes; then
  10801. + # Code to be used in simple compile tests
  10802. + lt_simple_compile_test_code="\
  10803. + subroutine t
  10804. + return
  10805. + end
  10806. +"
  10807. +
  10808. + # Code to be used in simple link tests
  10809. + lt_simple_link_test_code="\
  10810. + program t
  10811. + end
  10812. +"
  10813. +
  10814. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10815. + _LT_TAG_COMPILER
  10816. +
  10817. + # save warnings/boilerplate of simple test code
  10818. + _LT_COMPILER_BOILERPLATE
  10819. + _LT_LINKER_BOILERPLATE
  10820. +
  10821. + # Allow CC to be a program name with arguments.
  10822. + lt_save_CC="$CC"
  10823. + lt_save_GCC=$GCC
  10824. + CC=${FC-"f95"}
  10825. + compiler=$CC
  10826. + GCC=$ac_cv_fc_compiler_gnu
  10827. +
  10828. + _LT_TAGVAR(compiler, $1)=$CC
  10829. + _LT_CC_BASENAME([$compiler])
  10830. +
  10831. + if test -n "$compiler"; then
  10832. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10833. + AC_MSG_RESULT([$can_build_shared])
  10834. +
  10835. + AC_MSG_CHECKING([whether to build shared libraries])
  10836. + test "$can_build_shared" = "no" && enable_shared=no
  10837. +
  10838. + # On AIX, shared libraries and static libraries use the same namespace, and
  10839. + # are all built from PIC.
  10840. + case $host_os in
  10841. + aix3*)
  10842. + test "$enable_shared" = yes && enable_static=no
  10843. + if test -n "$RANLIB"; then
  10844. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10845. + postinstall_cmds='$RANLIB $lib'
  10846. + fi
  10847. + ;;
  10848. + aix[[4-9]]*)
  10849. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10850. + test "$enable_shared" = yes && enable_static=no
  10851. + fi
  10852. + ;;
  10853. + esac
  10854. + AC_MSG_RESULT([$enable_shared])
  10855. +
  10856. + AC_MSG_CHECKING([whether to build static libraries])
  10857. + # Make sure either enable_shared or enable_static is yes.
  10858. + test "$enable_shared" = yes || enable_static=yes
  10859. + AC_MSG_RESULT([$enable_static])
  10860. +
  10861. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10862. + _LT_TAGVAR(LD, $1)="$LD"
  10863. +
  10864. + ## CAVEAT EMPTOR:
  10865. + ## There is no encapsulation within the following macros, do not change
  10866. + ## the running order or otherwise move them around unless you know exactly
  10867. + ## what you are doing...
  10868. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10869. + _LT_COMPILER_PIC($1)
  10870. + _LT_COMPILER_C_O($1)
  10871. + _LT_COMPILER_FILE_LOCKS($1)
  10872. + _LT_LINKER_SHLIBS($1)
  10873. + _LT_SYS_DYNAMIC_LINKER($1)
  10874. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10875. +
  10876. + _LT_CONFIG($1)
  10877. + fi # test -n "$compiler"
  10878. +
  10879. + GCC=$lt_save_GCC
  10880. + CC="$lt_save_CC"
  10881. +fi # test "$_lt_disable_FC" != yes
  10882. +
  10883. +AC_LANG_POP
  10884. +])# _LT_LANG_FC_CONFIG
  10885. +
  10886. +
  10887. +# _LT_LANG_GCJ_CONFIG([TAG])
  10888. +# --------------------------
  10889. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10890. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10891. +# to write the compiler configuration to `libtool'.
  10892. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10893. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10894. +AC_LANG_SAVE
  10895. +
  10896. +# Source file extension for Java test sources.
  10897. +ac_ext=java
  10898. +
  10899. +# Object file extension for compiled Java test sources.
  10900. +objext=o
  10901. +_LT_TAGVAR(objext, $1)=$objext
  10902. +
  10903. +# Code to be used in simple compile tests
  10904. +lt_simple_compile_test_code="class foo {}"
  10905. +
  10906. +# Code to be used in simple link tests
  10907. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10908. +
  10909. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10910. +_LT_TAG_COMPILER
  10911. +
  10912. +# save warnings/boilerplate of simple test code
  10913. +_LT_COMPILER_BOILERPLATE
  10914. +_LT_LINKER_BOILERPLATE
  10915. +
  10916. +# Allow CC to be a program name with arguments.
  10917. +lt_save_CC="$CC"
  10918. +lt_save_GCC=$GCC
  10919. +GCC=yes
  10920. +CC=${GCJ-"gcj"}
  10921. +compiler=$CC
  10922. +_LT_TAGVAR(compiler, $1)=$CC
  10923. +_LT_TAGVAR(LD, $1)="$LD"
  10924. +_LT_CC_BASENAME([$compiler])
  10925. +
  10926. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  10927. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10928. +
  10929. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10930. +
  10931. +if test -n "$compiler"; then
  10932. + _LT_COMPILER_NO_RTTI($1)
  10933. + _LT_COMPILER_PIC($1)
  10934. + _LT_COMPILER_C_O($1)
  10935. + _LT_COMPILER_FILE_LOCKS($1)
  10936. + _LT_LINKER_SHLIBS($1)
  10937. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10938. +
  10939. + _LT_CONFIG($1)
  10940. +fi
  10941. +
  10942. +AC_LANG_RESTORE
  10943. +
  10944. +GCC=$lt_save_GCC
  10945. +CC="$lt_save_CC"
  10946. +])# _LT_LANG_GCJ_CONFIG
  10947. +
  10948. +
  10949. +# _LT_LANG_RC_CONFIG([TAG])
  10950. +# -------------------------
  10951. +# Ensure that the configuration variables for the Windows resource compiler
  10952. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10953. +# to write the compiler configuration to `libtool'.
  10954. +m4_defun([_LT_LANG_RC_CONFIG],
  10955. +[AC_REQUIRE([LT_PROG_RC])dnl
  10956. +AC_LANG_SAVE
  10957. +
  10958. +# Source file extension for RC test sources.
  10959. +ac_ext=rc
  10960. +
  10961. +# Object file extension for compiled RC test sources.
  10962. +objext=o
  10963. +_LT_TAGVAR(objext, $1)=$objext
  10964. +
  10965. +# Code to be used in simple compile tests
  10966. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10967. +
  10968. +# Code to be used in simple link tests
  10969. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  10970. +
  10971. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10972. +_LT_TAG_COMPILER
  10973. +
  10974. +# save warnings/boilerplate of simple test code
  10975. +_LT_COMPILER_BOILERPLATE
  10976. +_LT_LINKER_BOILERPLATE
  10977. +
  10978. +# Allow CC to be a program name with arguments.
  10979. +lt_save_CC="$CC"
  10980. +lt_save_GCC=$GCC
  10981. +GCC=
  10982. +CC=${RC-"windres"}
  10983. +compiler=$CC
  10984. +_LT_TAGVAR(compiler, $1)=$CC
  10985. +_LT_CC_BASENAME([$compiler])
  10986. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  10987. +
  10988. +if test -n "$compiler"; then
  10989. + :
  10990. + _LT_CONFIG($1)
  10991. +fi
  10992. +
  10993. +GCC=$lt_save_GCC
  10994. +AC_LANG_RESTORE
  10995. +CC="$lt_save_CC"
  10996. +])# _LT_LANG_RC_CONFIG
  10997. +
  10998. +
  10999. +# LT_PROG_GCJ
  11000. +# -----------
  11001. +AC_DEFUN([LT_PROG_GCJ],
  11002. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  11003. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  11004. + [AC_CHECK_TOOL(GCJ, gcj,)
  11005. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  11006. + AC_SUBST(GCJFLAGS)])])[]dnl
  11007. +])
  11008. +
  11009. +# Old name:
  11010. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  11011. +dnl aclocal-1.4 backwards compatibility:
  11012. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  11013. +
  11014. +
  11015. +# LT_PROG_RC
  11016. +# ----------
  11017. +AC_DEFUN([LT_PROG_RC],
  11018. +[AC_CHECK_TOOL(RC, windres,)
  11019. +])
  11020. +
  11021. +# Old name:
  11022. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  11023. +dnl aclocal-1.4 backwards compatibility:
  11024. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  11025. +
  11026. +
  11027. +# _LT_DECL_EGREP
  11028. +# --------------
  11029. +# If we don't have a new enough Autoconf to choose the best grep
  11030. +# available, choose the one first in the user's PATH.
  11031. +m4_defun([_LT_DECL_EGREP],
  11032. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  11033. +AC_REQUIRE([AC_PROG_FGREP])dnl
  11034. +test -z "$GREP" && GREP=grep
  11035. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  11036. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  11037. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  11038. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  11039. +AC_SUBST([GREP])
  11040. +])
  11041. +
  11042. +
  11043. +# _LT_DECL_OBJDUMP
  11044. +# --------------
  11045. +# If we don't have a new enough Autoconf to choose the best objdump
  11046. +# available, choose the one first in the user's PATH.
  11047. +m4_defun([_LT_DECL_OBJDUMP],
  11048. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11049. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11050. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11051. +AC_SUBST([OBJDUMP])
  11052. +])
  11053. +
  11054. +
  11055. +# _LT_DECL_SED
  11056. +# ------------
  11057. +# Check for a fully-functional sed program, that truncates
  11058. +# as few characters as possible. Prefer GNU sed if found.
  11059. +m4_defun([_LT_DECL_SED],
  11060. +[AC_PROG_SED
  11061. +test -z "$SED" && SED=sed
  11062. +Xsed="$SED -e 1s/^X//"
  11063. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11064. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11065. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11066. +])# _LT_DECL_SED
  11067. +
  11068. +m4_ifndef([AC_PROG_SED], [
  11069. +# NOTE: This macro has been submitted for inclusion into #
  11070. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11071. +# a released version of Autoconf we should remove this #
  11072. +# macro and use it instead. #
  11073. +
  11074. +m4_defun([AC_PROG_SED],
  11075. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11076. +AC_CACHE_VAL(lt_cv_path_SED,
  11077. +[# Loop through the user's path and test for sed and gsed.
  11078. +# Then use that list of sed's as ones to test for truncation.
  11079. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11080. +for as_dir in $PATH
  11081. +do
  11082. + IFS=$as_save_IFS
  11083. + test -z "$as_dir" && as_dir=.
  11084. + for lt_ac_prog in sed gsed; do
  11085. + for ac_exec_ext in '' $ac_executable_extensions; do
  11086. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11087. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11088. + fi
  11089. + done
  11090. + done
  11091. +done
  11092. +IFS=$as_save_IFS
  11093. +lt_ac_max=0
  11094. +lt_ac_count=0
  11095. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11096. +# along with /bin/sed that truncates output.
  11097. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11098. + test ! -f $lt_ac_sed && continue
  11099. + cat /dev/null > conftest.in
  11100. + lt_ac_count=0
  11101. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11102. + # Check for GNU sed and select it if it is found.
  11103. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11104. + lt_cv_path_SED=$lt_ac_sed
  11105. + break
  11106. + fi
  11107. + while true; do
  11108. + cat conftest.in conftest.in >conftest.tmp
  11109. + mv conftest.tmp conftest.in
  11110. + cp conftest.in conftest.nl
  11111. + echo >>conftest.nl
  11112. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11113. + cmp -s conftest.out conftest.nl || break
  11114. + # 10000 chars as input seems more than enough
  11115. + test $lt_ac_count -gt 10 && break
  11116. + lt_ac_count=`expr $lt_ac_count + 1`
  11117. + if test $lt_ac_count -gt $lt_ac_max; then
  11118. + lt_ac_max=$lt_ac_count
  11119. + lt_cv_path_SED=$lt_ac_sed
  11120. + fi
  11121. + done
  11122. +done
  11123. +])
  11124. +SED=$lt_cv_path_SED
  11125. +AC_SUBST([SED])
  11126. +AC_MSG_RESULT([$SED])
  11127. +])#AC_PROG_SED
  11128. +])#m4_ifndef
  11129. +
  11130. +# Old name:
  11131. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11132. +dnl aclocal-1.4 backwards compatibility:
  11133. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11134. +
  11135. +
  11136. +# _LT_CHECK_SHELL_FEATURES
  11137. +# ------------------------
  11138. +# Find out whether the shell is Bourne or XSI compatible,
  11139. +# or has some other useful features.
  11140. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11141. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11142. +# Try some XSI features
  11143. +xsi_shell=no
  11144. +( _lt_dummy="a/b/c"
  11145. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11146. + = c,a/b,, \
  11147. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11148. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11149. + && xsi_shell=yes
  11150. +AC_MSG_RESULT([$xsi_shell])
  11151. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11152. +
  11153. +AC_MSG_CHECKING([whether the shell understands "+="])
  11154. +lt_shell_append=no
  11155. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11156. + >/dev/null 2>&1 \
  11157. + && lt_shell_append=yes
  11158. +AC_MSG_RESULT([$lt_shell_append])
  11159. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11160. +
  11161. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11162. + lt_unset=unset
  11163. +else
  11164. + lt_unset=false
  11165. +fi
  11166. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11167. +
  11168. +# test EBCDIC or ASCII
  11169. +case `echo X|tr X '\101'` in
  11170. + A) # ASCII based system
  11171. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11172. + lt_SP2NL='tr \040 \012'
  11173. + lt_NL2SP='tr \015\012 \040\040'
  11174. + ;;
  11175. + *) # EBCDIC based system
  11176. + lt_SP2NL='tr \100 \n'
  11177. + lt_NL2SP='tr \r\n \100\100'
  11178. + ;;
  11179. +esac
  11180. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11181. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11182. +])# _LT_CHECK_SHELL_FEATURES
  11183. +
  11184. +
  11185. +# _LT_PROG_XSI_SHELLFNS
  11186. +# ---------------------
  11187. +# Bourne and XSI compatible variants of some useful shell functions.
  11188. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11189. +[case $xsi_shell in
  11190. + yes)
  11191. + cat << \_LT_EOF >> "$cfgfile"
  11192. +
  11193. +# func_dirname file append nondir_replacement
  11194. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11195. +# otherwise set result to NONDIR_REPLACEMENT.
  11196. +func_dirname ()
  11197. +{
  11198. + case ${1} in
  11199. + */*) func_dirname_result="${1%/*}${2}" ;;
  11200. + * ) func_dirname_result="${3}" ;;
  11201. + esac
  11202. +}
  11203. +
  11204. +# func_basename file
  11205. +func_basename ()
  11206. +{
  11207. + func_basename_result="${1##*/}"
  11208. +}
  11209. +
  11210. +# func_dirname_and_basename file append nondir_replacement
  11211. +# perform func_basename and func_dirname in a single function
  11212. +# call:
  11213. +# dirname: Compute the dirname of FILE. If nonempty,
  11214. +# add APPEND to the result, otherwise set result
  11215. +# to NONDIR_REPLACEMENT.
  11216. +# value returned in "$func_dirname_result"
  11217. +# basename: Compute filename of FILE.
  11218. +# value retuned in "$func_basename_result"
  11219. +# Implementation must be kept synchronized with func_dirname
  11220. +# and func_basename. For efficiency, we do not delegate to
  11221. +# those functions but instead duplicate the functionality here.
  11222. +func_dirname_and_basename ()
  11223. +{
  11224. + case ${1} in
  11225. + */*) func_dirname_result="${1%/*}${2}" ;;
  11226. + * ) func_dirname_result="${3}" ;;
  11227. + esac
  11228. + func_basename_result="${1##*/}"
  11229. +}
  11230. +
  11231. +# func_stripname prefix suffix name
  11232. +# strip PREFIX and SUFFIX off of NAME.
  11233. +# PREFIX and SUFFIX must not contain globbing or regex special
  11234. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11235. +# dot (in which case that matches only a dot).
  11236. +func_stripname ()
  11237. +{
  11238. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11239. + # positional parameters, so assign one to ordinary parameter first.
  11240. + func_stripname_result=${3}
  11241. + func_stripname_result=${func_stripname_result#"${1}"}
  11242. + func_stripname_result=${func_stripname_result%"${2}"}
  11243. +}
  11244. +
  11245. +# func_opt_split
  11246. +func_opt_split ()
  11247. +{
  11248. + func_opt_split_opt=${1%%=*}
  11249. + func_opt_split_arg=${1#*=}
  11250. +}
  11251. +
  11252. +# func_lo2o object
  11253. +func_lo2o ()
  11254. +{
  11255. + case ${1} in
  11256. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11257. + *) func_lo2o_result=${1} ;;
  11258. + esac
  11259. +}
  11260. +
  11261. +# func_xform libobj-or-source
  11262. +func_xform ()
  11263. +{
  11264. + func_xform_result=${1%.*}.lo
  11265. +}
  11266. - linux* | k*bsd*-gnu)
  11267. - case $cc_basename in
  11268. - icc* | ecc*)
  11269. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11270. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11271. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11272. - ;;
  11273. - pgcc* | pgf77* | pgf90* | pgf95*)
  11274. - # Portland Group compilers (*not* the Pentium gcc compiler,
  11275. - # which looks to be a dead project)
  11276. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11277. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  11278. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11279. - ;;
  11280. - ccc*)
  11281. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11282. - # All Alpha code is PIC.
  11283. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11284. - ;;
  11285. - esac
  11286. - ;;
  11287. +# func_arith arithmetic-term...
  11288. +func_arith ()
  11289. +{
  11290. + func_arith_result=$(( $[*] ))
  11291. +}
  11292. - osf3* | osf4* | osf5*)
  11293. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11294. - # All OSF/1 code is PIC.
  11295. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11296. - ;;
  11297. +# func_len string
  11298. +# STRING may not start with a hyphen.
  11299. +func_len ()
  11300. +{
  11301. + func_len_result=${#1}
  11302. +}
  11303. - solaris*)
  11304. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11305. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11306. - case $cc_basename in
  11307. - f77* | f90* | f95*)
  11308. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  11309. - *)
  11310. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  11311. - esac
  11312. - ;;
  11313. +_LT_EOF
  11314. + ;;
  11315. + *) # Bourne compatible functions.
  11316. + cat << \_LT_EOF >> "$cfgfile"
  11317. - sunos4*)
  11318. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11319. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11320. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11321. - ;;
  11322. +# func_dirname file append nondir_replacement
  11323. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11324. +# otherwise set result to NONDIR_REPLACEMENT.
  11325. +func_dirname ()
  11326. +{
  11327. + # Extract subdirectory from the argument.
  11328. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11329. + if test "X$func_dirname_result" = "X${1}"; then
  11330. + func_dirname_result="${3}"
  11331. + else
  11332. + func_dirname_result="$func_dirname_result${2}"
  11333. + fi
  11334. +}
  11335. - sysv4 | sysv4.2uw2* | sysv4.3*)
  11336. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11337. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11338. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11339. - ;;
  11340. +# func_basename file
  11341. +func_basename ()
  11342. +{
  11343. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11344. +}
  11345. - sysv4*MP*)
  11346. - if test -d /usr/nec ;then
  11347. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11348. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11349. - fi
  11350. - ;;
  11351. +dnl func_dirname_and_basename
  11352. +dnl A portable version of this function is already defined in general.m4sh
  11353. +dnl so there is no need for it here.
  11354. +
  11355. +# func_stripname prefix suffix name
  11356. +# strip PREFIX and SUFFIX off of NAME.
  11357. +# PREFIX and SUFFIX must not contain globbing or regex special
  11358. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11359. +# dot (in which case that matches only a dot).
  11360. +# func_strip_suffix prefix name
  11361. +func_stripname ()
  11362. +{
  11363. + case ${2} in
  11364. + .*) func_stripname_result=`$ECHO "X${3}" \
  11365. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11366. + *) func_stripname_result=`$ECHO "X${3}" \
  11367. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11368. + esac
  11369. +}
  11370. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11371. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11372. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11373. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11374. - ;;
  11375. +# sed scripts:
  11376. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11377. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11378. - unicos*)
  11379. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11380. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11381. - ;;
  11382. +# func_opt_split
  11383. +func_opt_split ()
  11384. +{
  11385. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11386. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11387. +}
  11388. - uts4*)
  11389. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11390. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11391. - ;;
  11392. +# func_lo2o object
  11393. +func_lo2o ()
  11394. +{
  11395. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11396. +}
  11397. - *)
  11398. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11399. - ;;
  11400. - esac
  11401. - fi
  11402. -])
  11403. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11404. +# func_xform libobj-or-source
  11405. +func_xform ()
  11406. +{
  11407. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11408. +}
  11409. -#
  11410. -# Check to make sure the PIC flag actually works.
  11411. -#
  11412. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11413. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11414. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11415. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11416. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11417. - "" | " "*) ;;
  11418. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11419. - esac],
  11420. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11421. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11422. -fi
  11423. -case $host_os in
  11424. - # For platforms which do not support PIC, -DPIC is meaningless:
  11425. - *djgpp*)
  11426. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11427. - ;;
  11428. - *)
  11429. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11430. - ;;
  11431. -esac
  11432. +# func_arith arithmetic-term...
  11433. +func_arith ()
  11434. +{
  11435. + func_arith_result=`expr "$[@]"`
  11436. +}
  11437. -#
  11438. -# Check to make sure the static flag actually works.
  11439. -#
  11440. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  11441. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  11442. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  11443. - $lt_tmp_static_flag,
  11444. - [],
  11445. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  11446. -])
  11447. +# func_len string
  11448. +# STRING may not start with a hyphen.
  11449. +func_len ()
  11450. +{
  11451. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11452. +}
  11453. +_LT_EOF
  11454. +esac
  11455. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11456. -# ------------------------------------
  11457. -# See if the linker supports building shared libraries.
  11458. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11459. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11460. -ifelse([$1],[CXX],[
  11461. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11462. - case $host_os in
  11463. - aix4* | aix5*)
  11464. - # If we're using GNU nm, then we don't want the "-C" option.
  11465. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11466. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11467. - _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'
  11468. - else
  11469. - _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'
  11470. - fi
  11471. +case $lt_shell_append in
  11472. + yes)
  11473. + cat << \_LT_EOF >> "$cfgfile"
  11474. +
  11475. +# func_append var value
  11476. +# Append VALUE to the end of shell variable VAR.
  11477. +func_append ()
  11478. +{
  11479. + eval "$[1]+=\$[2]"
  11480. +}
  11481. +_LT_EOF
  11482. ;;
  11483. - pw32*)
  11484. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11485. - ;;
  11486. - cygwin* | mingw*)
  11487. - _LT_AC_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'
  11488. - ;;
  11489. - linux* | k*bsd*-gnu)
  11490. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11491. - ;;
  11492. *)
  11493. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11494. - ;;
  11495. - esac
  11496. -],[
  11497. - runpath_var=
  11498. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11499. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11500. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11501. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11502. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11503. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11504. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11505. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11506. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11507. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11508. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11509. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11510. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11511. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11512. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11513. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11514. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11515. - _LT_AC_TAGVAR(module_cmds, $1)=
  11516. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11517. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11518. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11519. - # include_expsyms should be a list of space-separated symbols to be *always*
  11520. - # included in the symbol list
  11521. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11522. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11523. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11524. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11525. - # as well as any symbol that contains `d'.
  11526. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11527. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11528. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11529. - # the symbol is explicitly referenced. Since portable code cannot
  11530. - # rely on this symbol name, it's probably fine to never include it in
  11531. - # preloaded symbol tables.
  11532. - extract_expsyms_cmds=
  11533. - # Just being paranoid about ensuring that cc_basename is set.
  11534. - _LT_CC_BASENAME([$compiler])
  11535. - case $host_os in
  11536. - cygwin* | mingw* | pw32*)
  11537. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11538. - # When not using gcc, we currently assume that we are using
  11539. - # Microsoft Visual C++.
  11540. - if test "$GCC" != yes; then
  11541. - with_gnu_ld=no
  11542. - fi
  11543. - ;;
  11544. - interix*)
  11545. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  11546. - with_gnu_ld=yes
  11547. - ;;
  11548. - openbsd*)
  11549. - with_gnu_ld=no
  11550. + cat << \_LT_EOF >> "$cfgfile"
  11551. +
  11552. +# func_append var value
  11553. +# Append VALUE to the end of shell variable VAR.
  11554. +func_append ()
  11555. +{
  11556. + eval "$[1]=\$$[1]\$[2]"
  11557. +}
  11558. +
  11559. +_LT_EOF
  11560. ;;
  11561. esac
  11562. +])
  11563. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11564. - if test "$with_gnu_ld" = yes; then
  11565. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11566. - wlarc='${wl}'
  11567. -
  11568. - # Set some defaults for GNU ld with shared library support. These
  11569. - # are reset later if shared libraries are not supported. Putting them
  11570. - # here allows them to be overridden if necessary.
  11571. - runpath_var=LD_RUN_PATH
  11572. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11573. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11574. - # ancient GNU ld didn't support --whole-archive et. al.
  11575. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11576. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11577. - else
  11578. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11579. - fi
  11580. - supports_anon_versioning=no
  11581. - case `$LD -v 2>/dev/null` in
  11582. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11583. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11584. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11585. - *\ 2.11.*) ;; # other 2.11 versions
  11586. - *) supports_anon_versioning=yes ;;
  11587. - esac
  11588. +# Helper functions for option handling. -*- Autoconf -*-
  11589. +#
  11590. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11591. +# Written by Gary V. Vaughan, 2004
  11592. +#
  11593. +# This file is free software; the Free Software Foundation gives
  11594. +# unlimited permission to copy and/or distribute it, with or without
  11595. +# modifications, as long as this notice is preserved.
  11596. - # See if GNU ld supports shared libraries.
  11597. - case $host_os in
  11598. - aix3* | aix4* | aix5*)
  11599. - # On AIX/PPC, the GNU linker is very broken
  11600. - if test "$host_cpu" != ia64; then
  11601. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11602. - cat <<EOF 1>&2
  11603. +# serial 6 ltoptions.m4
  11604. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11605. -*** to be unable to reliably create shared libraries on AIX.
  11606. -*** Therefore, libtool is disabling shared libraries support. If you
  11607. -*** really care for shared libraries, you may want to modify your PATH
  11608. -*** so that a non-GNU linker is found, and then restart.
  11609. +# This is to help aclocal find these macros, as it can't see m4_define.
  11610. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11611. -EOF
  11612. - fi
  11613. - ;;
  11614. - amigaos*)
  11615. - _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)'
  11616. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11617. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11618. -
  11619. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11620. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11621. - # to version 4, is to share data among multiple programs linked
  11622. - # with the same dynamic library. Since this doesn't match the
  11623. - # behavior of shared libraries on other platforms, we can't use
  11624. - # them.
  11625. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11626. - ;;
  11627. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11628. +# ------------------------------------------
  11629. +m4_define([_LT_MANGLE_OPTION],
  11630. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11631. - beos*)
  11632. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11633. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11634. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11635. - # support --undefined. This deserves some investigation. FIXME
  11636. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11637. - else
  11638. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11639. - fi
  11640. - ;;
  11641. - cygwin* | mingw* | pw32*)
  11642. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11643. - # as there is no search path for DLLs.
  11644. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11645. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11646. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11647. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11648. - _LT_AC_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'
  11649. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11650. +# ---------------------------------------
  11651. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11652. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11653. +# saved as a flag.
  11654. +m4_define([_LT_SET_OPTION],
  11655. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11656. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11657. + _LT_MANGLE_DEFUN([$1], [$2]),
  11658. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11659. +])
  11660. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11661. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11662. - # If the export-symbols file already is a .def file (1st line
  11663. - # is EXPORTS), use it as is; otherwise, prepend...
  11664. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11665. - cp $export_symbols $output_objdir/$soname.def;
  11666. - else
  11667. - echo EXPORTS > $output_objdir/$soname.def;
  11668. - cat $export_symbols >> $output_objdir/$soname.def;
  11669. - fi~
  11670. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11671. - else
  11672. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11673. - fi
  11674. - ;;
  11675. - interix3*)
  11676. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11677. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11678. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11679. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11680. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11681. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  11682. - # default) and relocated if they conflict, which is a slow very memory
  11683. - # consuming and fragmenting process. To avoid this, we pick a random,
  11684. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11685. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11686. - _LT_AC_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'
  11687. - _LT_AC_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'
  11688. - ;;
  11689. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11690. +# ------------------------------------------------------------
  11691. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11692. +m4_define([_LT_IF_OPTION],
  11693. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11694. - linux* | k*bsd*-gnu)
  11695. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11696. - tmp_addflag=
  11697. - case $cc_basename,$host_cpu in
  11698. - pgcc*) # Portland Group C compiler
  11699. - _LT_AC_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'
  11700. - tmp_addflag=' $pic_flag'
  11701. - ;;
  11702. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11703. - _LT_AC_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'
  11704. - tmp_addflag=' $pic_flag -Mnomain' ;;
  11705. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11706. - tmp_addflag=' -i_dynamic' ;;
  11707. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11708. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11709. - ifc* | ifort*) # Intel Fortran compiler
  11710. - tmp_addflag=' -nofor_main' ;;
  11711. - esac
  11712. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11713. - if test $supports_anon_versioning = yes; then
  11714. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11715. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11716. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11717. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11718. - fi
  11719. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  11720. - else
  11721. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11722. - fi
  11723. - ;;
  11724. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11725. +# -------------------------------------------------------
  11726. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11727. +# are set.
  11728. +m4_define([_LT_UNLESS_OPTIONS],
  11729. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11730. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11731. + [m4_define([$0_found])])])[]dnl
  11732. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11733. +])[]dnl
  11734. +])
  11735. - netbsd* | netbsdelf*-gnu)
  11736. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11737. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11738. - wlarc=
  11739. - else
  11740. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11741. - _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'
  11742. - fi
  11743. - ;;
  11744. - solaris*)
  11745. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11746. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11747. - cat <<EOF 1>&2
  11748. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11749. +# ----------------------------------------
  11750. +# OPTION-LIST is a space-separated list of Libtool options associated
  11751. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11752. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11753. +# the unknown option and exit.
  11754. +m4_defun([_LT_SET_OPTIONS],
  11755. +[# Set options
  11756. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11757. + [_LT_SET_OPTION([$1], _LT_Option)])
  11758. +
  11759. +m4_if([$1],[LT_INIT],[
  11760. + dnl
  11761. + dnl Simply set some default values (i.e off) if boolean options were not
  11762. + dnl specified:
  11763. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11764. + ])
  11765. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11766. + ])
  11767. + dnl
  11768. + dnl If no reference was made to various pairs of opposing options, then
  11769. + dnl we run the default mode handler for the pair. For example, if neither
  11770. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11771. + dnl archives by default:
  11772. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11773. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11774. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11775. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11776. + [_LT_ENABLE_FAST_INSTALL])
  11777. + ])
  11778. +])# _LT_SET_OPTIONS
  11779. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11780. -*** create shared libraries on Solaris systems. Therefore, libtool
  11781. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11782. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11783. -*** your PATH or compiler configuration so that the native linker is
  11784. -*** used, and then restart.
  11785. -EOF
  11786. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11787. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11788. - _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'
  11789. - else
  11790. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11791. - fi
  11792. - ;;
  11793. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11794. - case `$LD -v 2>&1` in
  11795. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  11796. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11797. - cat <<_LT_EOF 1>&2
  11798. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  11799. +# -----------------------------------------
  11800. +m4_define([_LT_MANGLE_DEFUN],
  11801. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  11802. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11803. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  11804. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11805. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11806. -*** your PATH or compiler configuration so that the native linker is
  11807. -*** used, and then restart.
  11808. -_LT_EOF
  11809. - ;;
  11810. - *)
  11811. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11812. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11813. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11814. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  11815. - else
  11816. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11817. - fi
  11818. - ;;
  11819. - esac
  11820. - ;;
  11821. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  11822. +# -----------------------------------------------
  11823. +m4_define([LT_OPTION_DEFINE],
  11824. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  11825. +])# LT_OPTION_DEFINE
  11826. - sunos4*)
  11827. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11828. - wlarc=
  11829. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11830. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11831. - ;;
  11832. - *)
  11833. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11834. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11835. - _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'
  11836. - else
  11837. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11838. - fi
  11839. - ;;
  11840. - esac
  11841. +# dlopen
  11842. +# ------
  11843. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  11844. +])
  11845. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11846. - runpath_var=
  11847. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11848. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11849. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11850. - fi
  11851. - else
  11852. - # PORTME fill in a description of your system's linker (not GNU ld)
  11853. - case $host_os in
  11854. - aix3*)
  11855. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11856. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11857. - _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'
  11858. - # Note: this linker hardcodes the directories in LIBPATH if there
  11859. - # are no directories specified by -L.
  11860. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11861. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11862. - # Neither direct hardcoding nor static linking is supported with a
  11863. - # broken collect2.
  11864. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11865. - fi
  11866. - ;;
  11867. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  11868. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  11869. +AC_DIAGNOSE([obsolete],
  11870. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11871. +put the `dlopen' option into LT_INIT's first parameter.])
  11872. +])
  11873. - aix4* | aix5*)
  11874. - if test "$host_cpu" = ia64; then
  11875. - # On IA64, the linker does run time linking by default, so we don't
  11876. - # have to do anything special.
  11877. - aix_use_runtimelinking=no
  11878. - exp_sym_flag='-Bexport'
  11879. - no_entry_flag=""
  11880. - else
  11881. - # If we're using GNU nm, then we don't want the "-C" option.
  11882. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11883. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11884. - _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'
  11885. - else
  11886. - _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'
  11887. - fi
  11888. - aix_use_runtimelinking=no
  11889. +dnl aclocal-1.4 backwards compatibility:
  11890. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  11891. - # Test if we are trying to use run time linking or normal
  11892. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11893. - # need to do runtime linking.
  11894. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11895. - for ld_flag in $LDFLAGS; do
  11896. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11897. - aix_use_runtimelinking=yes
  11898. - break
  11899. - fi
  11900. - done
  11901. - ;;
  11902. - esac
  11903. - exp_sym_flag='-bexport'
  11904. - no_entry_flag='-bnoentry'
  11905. - fi
  11906. +# win32-dll
  11907. +# ---------
  11908. +# Declare package support for building win32 dll's.
  11909. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  11910. +[enable_win32_dll=yes
  11911. - # When large executables or shared objects are built, AIX ld can
  11912. - # have problems creating the table of contents. If linking a library
  11913. - # or program results in "error TOC overflow" add -mminimal-toc to
  11914. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11915. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11916. +case $host in
  11917. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  11918. + AC_CHECK_TOOL(AS, as, false)
  11919. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  11920. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11921. + ;;
  11922. +esac
  11923. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  11924. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11925. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11926. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11927. +test -z "$AS" && AS=as
  11928. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  11929. - if test "$GCC" = yes; then
  11930. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  11931. - # We only want to do this on AIX 4.2 and lower, the check
  11932. - # below for broken collect2 doesn't work under 4.3+
  11933. - collect2name=`${CC} -print-prog-name=collect2`
  11934. - if test -f "$collect2name" && \
  11935. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11936. - then
  11937. - # We have reworked collect2
  11938. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11939. - else
  11940. - # We have old collect2
  11941. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11942. - # It fails to find uninstalled libraries when the uninstalled
  11943. - # path is not listed in the libpath. Setting hardcode_minus_L
  11944. - # to unsupported forces relinking
  11945. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11946. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11947. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11948. - fi
  11949. - ;;
  11950. - esac
  11951. - shared_flag='-shared'
  11952. - if test "$aix_use_runtimelinking" = yes; then
  11953. - shared_flag="$shared_flag "'${wl}-G'
  11954. - fi
  11955. - else
  11956. - # not using gcc
  11957. - if test "$host_cpu" = ia64; then
  11958. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11959. - # chokes on -Wl,-G. The following line is correct:
  11960. - shared_flag='-G'
  11961. - else
  11962. - if test "$aix_use_runtimelinking" = yes; then
  11963. - shared_flag='${wl}-G'
  11964. - else
  11965. - shared_flag='${wl}-bM:SRE'
  11966. - fi
  11967. - fi
  11968. - fi
  11969. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  11970. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  11971. - # It seems that -bexpall does not export symbols beginning with
  11972. - # underscore (_), so it is better to generate a list of symbols to export.
  11973. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11974. - if test "$aix_use_runtimelinking" = yes; then
  11975. - # Warning - without using the other runtime loading flags (-brtl),
  11976. - # -berok will link without error, but may produce a broken library.
  11977. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11978. - # Determine the default libpath from the value encoded in an empty executable.
  11979. - _LT_AC_SYS_LIBPATH_AIX
  11980. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11981. - _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11982. - else
  11983. - if test "$host_cpu" = ia64; then
  11984. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11985. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11986. - _LT_AC_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"
  11987. - else
  11988. - # Determine the default libpath from the value encoded in an empty executable.
  11989. - _LT_AC_SYS_LIBPATH_AIX
  11990. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11991. - # Warning - without using the other run time loading flags,
  11992. - # -berok will link without error, but may produce a broken library.
  11993. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11994. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11995. - # Exported symbols can be pulled into shared objects from archives
  11996. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  11997. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11998. - # This is similar to how AIX traditionally builds its shared libraries.
  11999. - _LT_AC_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'
  12000. +test -z "$OBJDUMP" && OBJDUMP=objdump
  12001. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12002. +])# win32-dll
  12003. +
  12004. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12005. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12006. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  12007. +AC_DIAGNOSE([obsolete],
  12008. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12009. +put the `win32-dll' option into LT_INIT's first parameter.])
  12010. +])
  12011. +
  12012. +dnl aclocal-1.4 backwards compatibility:
  12013. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12014. +
  12015. +
  12016. +# _LT_ENABLE_SHARED([DEFAULT])
  12017. +# ----------------------------
  12018. +# implement the --enable-shared flag, and supports the `shared' and
  12019. +# `disable-shared' LT_INIT options.
  12020. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12021. +m4_define([_LT_ENABLE_SHARED],
  12022. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12023. +AC_ARG_ENABLE([shared],
  12024. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12025. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12026. + [p=${PACKAGE-default}
  12027. + case $enableval in
  12028. + yes) enable_shared=yes ;;
  12029. + no) enable_shared=no ;;
  12030. + *)
  12031. + enable_shared=no
  12032. + # Look at the argument we got. We use all the common list separators.
  12033. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12034. + for pkg in $enableval; do
  12035. + IFS="$lt_save_ifs"
  12036. + if test "X$pkg" = "X$p"; then
  12037. + enable_shared=yes
  12038. fi
  12039. - fi
  12040. + done
  12041. + IFS="$lt_save_ifs"
  12042. ;;
  12043. + esac],
  12044. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12045. - amigaos*)
  12046. - _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)'
  12047. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12048. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12049. - # see comment about different semantics on the GNU ld section
  12050. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12051. - ;;
  12052. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12053. + [Whether or not to build shared libraries])
  12054. +])# _LT_ENABLE_SHARED
  12055. - bsdi[[45]]*)
  12056. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  12057. - ;;
  12058. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12059. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12060. - cygwin* | mingw* | pw32*)
  12061. - # When not using gcc, we currently assume that we are using
  12062. - # Microsoft Visual C++.
  12063. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  12064. - # no search path for DLLs.
  12065. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  12066. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12067. - # Tell ltmain to make .lib files, not .a files.
  12068. - libext=lib
  12069. - # Tell ltmain to make .dll files, not .so files.
  12070. - shrext_cmds=".dll"
  12071. - # FIXME: Setting linknames here is a bad hack.
  12072. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12073. - # The linker will automatically build a .lib file if we build a DLL.
  12074. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  12075. - # FIXME: Should let the user specify the lib program.
  12076. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12077. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  12078. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12079. - ;;
  12080. +# Old names:
  12081. +AC_DEFUN([AC_ENABLE_SHARED],
  12082. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12083. +])
  12084. - darwin* | rhapsody*)
  12085. - case $host_os in
  12086. - rhapsody* | darwin1.[[012]])
  12087. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  12088. - ;;
  12089. - *) # Darwin 1.3 on
  12090. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12091. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12092. - else
  12093. - case ${MACOSX_DEPLOYMENT_TARGET} in
  12094. - 10.[[012]])
  12095. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12096. - ;;
  12097. - 10.*)
  12098. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  12099. - ;;
  12100. - esac
  12101. - fi
  12102. - ;;
  12103. - esac
  12104. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12105. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12106. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12107. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12108. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  12109. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12110. - if test "$GCC" = yes ; then
  12111. - output_verbose_link_cmd='echo'
  12112. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12113. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12114. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12115. - _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}'
  12116. - _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}'
  12117. - else
  12118. - case $cc_basename in
  12119. - xlc*)
  12120. - output_verbose_link_cmd='echo'
  12121. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12122. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12123. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12124. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12125. - _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}'
  12126. - ;;
  12127. - *)
  12128. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12129. - ;;
  12130. - esac
  12131. - fi
  12132. - ;;
  12133. +AC_DEFUN([AC_DISABLE_SHARED],
  12134. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12135. +])
  12136. - dgux*)
  12137. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12138. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12139. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12140. - ;;
  12141. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12142. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12143. - freebsd1*)
  12144. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12145. - ;;
  12146. +dnl aclocal-1.4 backwards compatibility:
  12147. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12148. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12149. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12150. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12151. - # does not break anything, and helps significantly (at the cost of a little
  12152. - # extra space).
  12153. - freebsd2.2*)
  12154. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12155. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12156. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12157. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12158. - ;;
  12159. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12160. - freebsd2*)
  12161. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12162. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12163. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12164. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12165. - ;;
  12166. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12167. - freebsd* | dragonfly*)
  12168. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12169. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12170. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12171. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12172. +# _LT_ENABLE_STATIC([DEFAULT])
  12173. +# ----------------------------
  12174. +# implement the --enable-static flag, and support the `static' and
  12175. +# `disable-static' LT_INIT options.
  12176. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12177. +m4_define([_LT_ENABLE_STATIC],
  12178. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12179. +AC_ARG_ENABLE([static],
  12180. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12181. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12182. + [p=${PACKAGE-default}
  12183. + case $enableval in
  12184. + yes) enable_static=yes ;;
  12185. + no) enable_static=no ;;
  12186. + *)
  12187. + enable_static=no
  12188. + # Look at the argument we got. We use all the common list separators.
  12189. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12190. + for pkg in $enableval; do
  12191. + IFS="$lt_save_ifs"
  12192. + if test "X$pkg" = "X$p"; then
  12193. + enable_static=yes
  12194. + fi
  12195. + done
  12196. + IFS="$lt_save_ifs"
  12197. ;;
  12198. + esac],
  12199. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12200. - hpux9*)
  12201. - if test "$GCC" = yes; then
  12202. - _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'
  12203. - else
  12204. - _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'
  12205. - fi
  12206. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12207. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12208. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12209. + _LT_DECL([build_old_libs], [enable_static], [0],
  12210. + [Whether or not to build static libraries])
  12211. +])# _LT_ENABLE_STATIC
  12212. - # hardcode_minus_L: Not really in the search PATH,
  12213. - # but as the default location of the library.
  12214. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12215. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12216. - ;;
  12217. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12218. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12219. - hpux10*)
  12220. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12221. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12222. - else
  12223. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12224. - fi
  12225. - if test "$with_gnu_ld" = no; then
  12226. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12227. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12228. +# Old names:
  12229. +AC_DEFUN([AC_ENABLE_STATIC],
  12230. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12231. +])
  12232. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12233. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12234. +AC_DEFUN([AC_DISABLE_STATIC],
  12235. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12236. +])
  12237. - # hardcode_minus_L: Not really in the search PATH,
  12238. - # but as the default location of the library.
  12239. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12240. - fi
  12241. - ;;
  12242. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12243. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12244. - hpux11*)
  12245. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12246. - case $host_cpu in
  12247. - hppa*64*)
  12248. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12249. - ;;
  12250. - ia64*)
  12251. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12252. - ;;
  12253. - *)
  12254. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12255. - ;;
  12256. - esac
  12257. - else
  12258. - case $host_cpu in
  12259. - hppa*64*)
  12260. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12261. - ;;
  12262. - ia64*)
  12263. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12264. - ;;
  12265. - *)
  12266. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12267. - ;;
  12268. - esac
  12269. - fi
  12270. - if test "$with_gnu_ld" = no; then
  12271. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12272. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12273. +dnl aclocal-1.4 backwards compatibility:
  12274. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12275. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12276. - case $host_cpu in
  12277. - hppa*64*|ia64*)
  12278. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12279. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12280. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12281. - ;;
  12282. - *)
  12283. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12284. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12285. - # hardcode_minus_L: Not really in the search PATH,
  12286. - # but as the default location of the library.
  12287. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12288. - ;;
  12289. - esac
  12290. - fi
  12291. - ;;
  12292. - irix5* | irix6* | nonstopux*)
  12293. - if test "$GCC" = yes; then
  12294. - _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'
  12295. - else
  12296. - _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'
  12297. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12298. - fi
  12299. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12300. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12301. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12302. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12303. +# ----------------------------------
  12304. +# implement the --enable-fast-install flag, and support the `fast-install'
  12305. +# and `disable-fast-install' LT_INIT options.
  12306. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12307. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12308. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12309. +AC_ARG_ENABLE([fast-install],
  12310. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12311. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12312. + [p=${PACKAGE-default}
  12313. + case $enableval in
  12314. + yes) enable_fast_install=yes ;;
  12315. + no) enable_fast_install=no ;;
  12316. + *)
  12317. + enable_fast_install=no
  12318. + # Look at the argument we got. We use all the common list separators.
  12319. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12320. + for pkg in $enableval; do
  12321. + IFS="$lt_save_ifs"
  12322. + if test "X$pkg" = "X$p"; then
  12323. + enable_fast_install=yes
  12324. + fi
  12325. + done
  12326. + IFS="$lt_save_ifs"
  12327. ;;
  12328. + esac],
  12329. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12330. - netbsd* | netbsdelf*-gnu)
  12331. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12332. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12333. - else
  12334. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12335. - fi
  12336. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12337. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12338. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12339. - ;;
  12340. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12341. + [Whether or not to optimize for fast installation])dnl
  12342. +])# _LT_ENABLE_FAST_INSTALL
  12343. +
  12344. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12345. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12346. +
  12347. +# Old names:
  12348. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12349. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12350. +AC_DIAGNOSE([obsolete],
  12351. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12352. +the `fast-install' option into LT_INIT's first parameter.])
  12353. +])
  12354. - newsos6)
  12355. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12356. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12357. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12358. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12359. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12360. - ;;
  12361. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12362. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12363. +AC_DIAGNOSE([obsolete],
  12364. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12365. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12366. +])
  12367. - openbsd*)
  12368. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12369. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12370. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12371. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12372. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12373. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12374. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12375. - else
  12376. - case $host_os in
  12377. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12378. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12379. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12380. - ;;
  12381. - *)
  12382. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12383. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12384. - ;;
  12385. - esac
  12386. - fi
  12387. - ;;
  12388. +dnl aclocal-1.4 backwards compatibility:
  12389. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12390. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12391. - os2*)
  12392. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12393. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12394. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12395. - _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'
  12396. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12397. - ;;
  12398. - osf3*)
  12399. - if test "$GCC" = yes; then
  12400. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12401. - _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'
  12402. - else
  12403. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12404. - _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'
  12405. - fi
  12406. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12407. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12408. - ;;
  12409. +# _LT_WITH_PIC([MODE])
  12410. +# --------------------
  12411. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12412. +# LT_INIT options.
  12413. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12414. +m4_define([_LT_WITH_PIC],
  12415. +[AC_ARG_WITH([pic],
  12416. + [AS_HELP_STRING([--with-pic],
  12417. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12418. + [pic_mode="$withval"],
  12419. + [pic_mode=default])
  12420. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12421. - if test "$GCC" = yes; then
  12422. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12423. - _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'
  12424. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12425. - else
  12426. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12427. - _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'
  12428. - _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~
  12429. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12430. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12431. - # Both c and cxx compiler support -rpath directly
  12432. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12433. - fi
  12434. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12435. - ;;
  12436. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12437. +])# _LT_WITH_PIC
  12438. - solaris*)
  12439. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12440. - if test "$GCC" = yes; then
  12441. - wlarc='${wl}'
  12442. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12443. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12444. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12445. - else
  12446. - wlarc=''
  12447. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12448. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12449. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12450. - fi
  12451. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12452. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12453. - case $host_os in
  12454. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12455. - *)
  12456. - # The compiler driver will combine linker options so we
  12457. - # cannot just pass the convience library names through
  12458. - # without $wl, iff we do not link with $LD.
  12459. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  12460. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  12461. - case $wlarc in
  12462. - '')
  12463. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12464. - *)
  12465. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12466. - esac ;;
  12467. - esac
  12468. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12469. - ;;
  12470. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12471. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12472. - sunos4*)
  12473. - if test "x$host_vendor" = xsequent; then
  12474. - # Use $CC to link under sequent, because it throws in some extra .o
  12475. - # files that make .init and .fini sections work.
  12476. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12477. - else
  12478. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12479. - fi
  12480. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12481. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12482. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12483. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12484. - ;;
  12485. +# Old name:
  12486. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12487. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12488. +AC_DIAGNOSE([obsolete],
  12489. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12490. +put the `pic-only' option into LT_INIT's first parameter.])
  12491. +])
  12492. - sysv4)
  12493. - case $host_vendor in
  12494. - sni)
  12495. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12496. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12497. - ;;
  12498. - siemens)
  12499. - ## LD is ld it makes a PLAMLIB
  12500. - ## CC just makes a GrossModule.
  12501. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12502. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12503. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12504. - ;;
  12505. - motorola)
  12506. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12507. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12508. - ;;
  12509. - esac
  12510. - runpath_var='LD_RUN_PATH'
  12511. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12512. - ;;
  12513. +dnl aclocal-1.4 backwards compatibility:
  12514. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12515. - sysv4.3*)
  12516. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12517. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12518. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12519. - ;;
  12520. - sysv4*MP*)
  12521. - if test -d /usr/nec; then
  12522. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12523. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12524. - runpath_var=LD_RUN_PATH
  12525. - hardcode_runpath_var=yes
  12526. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12527. - fi
  12528. - ;;
  12529. +m4_define([_LTDL_MODE], [])
  12530. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12531. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12532. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12533. + [m4_define([_LTDL_MODE], [recursive])])
  12534. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12535. + [m4_define([_LTDL_MODE], [subproject])])
  12536. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  12537. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12538. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12539. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12540. - runpath_var='LD_RUN_PATH'
  12541. +m4_define([_LTDL_TYPE], [])
  12542. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12543. + [m4_define([_LTDL_TYPE], [installable])])
  12544. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12545. + [m4_define([_LTDL_TYPE], [convenience])])
  12546. - if test "$GCC" = yes; then
  12547. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12548. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12549. - else
  12550. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12551. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12552. - fi
  12553. - ;;
  12554. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12555. +#
  12556. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12557. +# Written by Gary V. Vaughan, 2004
  12558. +#
  12559. +# This file is free software; the Free Software Foundation gives
  12560. +# unlimited permission to copy and/or distribute it, with or without
  12561. +# modifications, as long as this notice is preserved.
  12562. - sysv5* | sco3.2v5* | sco5v6*)
  12563. - # Note: We can NOT use -z defs as we might desire, because we do not
  12564. - # link with -lc, and that would cause any symbols used from libc to
  12565. - # always be unresolved, which means just about no library would
  12566. - # ever link correctly. If we're not using GNU ld we use -z text
  12567. - # though, which does catch some bad symbols but isn't as heavy-handed
  12568. - # as -z defs.
  12569. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12570. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12571. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12572. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12573. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12574. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12575. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12576. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12577. - runpath_var='LD_RUN_PATH'
  12578. +# serial 6 ltsugar.m4
  12579. - if test "$GCC" = yes; then
  12580. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12581. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12582. - else
  12583. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12584. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12585. - fi
  12586. - ;;
  12587. +# This is to help aclocal find these macros, as it can't see m4_define.
  12588. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12589. - uts4*)
  12590. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12591. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12592. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12593. - ;;
  12594. - *)
  12595. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12596. - ;;
  12597. - esac
  12598. - fi
  12599. -])
  12600. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12601. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12602. +# lt_join(SEP, ARG1, [ARG2...])
  12603. +# -----------------------------
  12604. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12605. +# associated separator.
  12606. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12607. +# versions in m4sugar had bugs.
  12608. +m4_define([lt_join],
  12609. +[m4_if([$#], [1], [],
  12610. + [$#], [2], [[$2]],
  12611. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12612. +m4_define([_lt_join],
  12613. +[m4_if([$#$2], [2], [],
  12614. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12615. -#
  12616. -# Do we need to explicitly link libc?
  12617. -#
  12618. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12619. -x|xyes)
  12620. - # Assume -lc should be added
  12621. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12622. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12623. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12624. - *'~'*)
  12625. - # FIXME: we may have to deal with multi-command sequences.
  12626. - ;;
  12627. - '$CC '*)
  12628. - # Test whether the compiler implicitly links with -lc since on some
  12629. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12630. - # to ld, don't add -lc before -lgcc.
  12631. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12632. - $rm conftest*
  12633. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12634. +# lt_car(LIST)
  12635. +# lt_cdr(LIST)
  12636. +# ------------
  12637. +# Manipulate m4 lists.
  12638. +# These macros are necessary as long as will still need to support
  12639. +# Autoconf-2.59 which quotes differently.
  12640. +m4_define([lt_car], [[$1]])
  12641. +m4_define([lt_cdr],
  12642. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12643. + [$#], 1, [],
  12644. + [m4_dquote(m4_shift($@))])])
  12645. +m4_define([lt_unquote], $1)
  12646. +
  12647. +
  12648. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12649. +# ------------------------------------------
  12650. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12651. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12652. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12653. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12654. +# than defined and empty).
  12655. +#
  12656. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12657. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12658. +m4_define([lt_append],
  12659. +[m4_define([$1],
  12660. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12661. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12662. - soname=conftest
  12663. - lib=conftest
  12664. - libobjs=conftest.$ac_objext
  12665. - deplibs=
  12666. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12667. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12668. - compiler_flags=-v
  12669. - linker_flags=-v
  12670. - verstring=
  12671. - output_objdir=.
  12672. - libname=conftest
  12673. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12674. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12675. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12676. - then
  12677. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12678. - else
  12679. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12680. - fi
  12681. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12682. - else
  12683. - cat conftest.err 1>&5
  12684. - fi
  12685. - $rm conftest*
  12686. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12687. - ;;
  12688. - esac
  12689. - fi
  12690. - ;;
  12691. -esac
  12692. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12693. -# _LT_AC_FILE_LTDLL_C
  12694. -# -------------------
  12695. -# Be careful that the start marker always follows a newline.
  12696. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12697. -# /* ltdll.c starts here */
  12698. -# #define WIN32_LEAN_AND_MEAN
  12699. -# #include <windows.h>
  12700. -# #undef WIN32_LEAN_AND_MEAN
  12701. -# #include <stdio.h>
  12702. -#
  12703. -# #ifndef __CYGWIN__
  12704. -# # ifdef __CYGWIN32__
  12705. -# # define __CYGWIN__ __CYGWIN32__
  12706. -# # endif
  12707. -# #endif
  12708. -#
  12709. -# #ifdef __cplusplus
  12710. -# extern "C" {
  12711. -# #endif
  12712. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12713. -# #ifdef __cplusplus
  12714. -# }
  12715. -# #endif
  12716. -#
  12717. -# #ifdef __CYGWIN__
  12718. -# #include <cygwin/cygwin_dll.h>
  12719. -# DECLARE_CYGWIN_DLL( DllMain );
  12720. -# #endif
  12721. -# HINSTANCE __hDllInstance_base;
  12722. -#
  12723. -# BOOL APIENTRY
  12724. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12725. -# {
  12726. -# __hDllInstance_base = hInst;
  12727. -# return TRUE;
  12728. -# }
  12729. -# /* ltdll.c ends here */
  12730. -])# _LT_AC_FILE_LTDLL_C
  12731. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12732. +# ----------------------------------------------------------
  12733. +# Produce a SEP delimited list of all paired combinations of elements of
  12734. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12735. +# has the form PREFIXmINFIXSUFFIXn.
  12736. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12737. +m4_define([lt_combine],
  12738. +[m4_if(m4_eval([$# > 3]), [1],
  12739. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12740. +[[m4_foreach([_Lt_prefix], [$2],
  12741. + [m4_foreach([_Lt_suffix],
  12742. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12743. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12744. +
  12745. +
  12746. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12747. +# -----------------------------------------------------------------------
  12748. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12749. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12750. +m4_define([lt_if_append_uniq],
  12751. +[m4_ifdef([$1],
  12752. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12753. + [lt_append([$1], [$2], [$3])$4],
  12754. + [$5])],
  12755. + [lt_append([$1], [$2], [$3])$4])])
  12756. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12757. -# ---------------------------------
  12758. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12759. +# lt_dict_add(DICT, KEY, VALUE)
  12760. +# -----------------------------
  12761. +m4_define([lt_dict_add],
  12762. +[m4_define([$1($2)], [$3])])
  12763. -# old names
  12764. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12765. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12766. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12767. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12768. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12769. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12770. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12771. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12772. +# --------------------------------------------
  12773. +m4_define([lt_dict_add_subkey],
  12774. +[m4_define([$1($2:$3)], [$4])])
  12775. -# This is just to silence aclocal about the macro not being used
  12776. -ifelse([AC_DISABLE_FAST_INSTALL])
  12777. -AC_DEFUN([LT_AC_PROG_GCJ],
  12778. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12779. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12780. - AC_SUBST(GCJFLAGS)
  12781. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12782. +# ----------------------------------
  12783. +m4_define([lt_dict_fetch],
  12784. +[m4_ifval([$3],
  12785. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12786. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12787. +
  12788. +
  12789. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12790. +# -----------------------------------------------------------------
  12791. +m4_define([lt_if_dict_fetch],
  12792. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12793. + [$5],
  12794. + [$6])])
  12795. +
  12796. +
  12797. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12798. +# --------------------------------------------------------------
  12799. +m4_define([lt_dict_filter],
  12800. +[m4_if([$5], [], [],
  12801. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12802. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12803. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12804. ])
  12805. -AC_DEFUN([LT_AC_PROG_RC],
  12806. -[AC_CHECK_TOOL(RC, windres, no)
  12807. -])
  12808. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  12809. +#
  12810. +# Copyright (C) 2004 Free Software Foundation, Inc.
  12811. +# Written by Scott James Remnant, 2004
  12812. +#
  12813. +# This file is free software; the Free Software Foundation gives
  12814. +# unlimited permission to copy and/or distribute it, with or without
  12815. +# modifications, as long as this notice is preserved.
  12816. -# NOTE: This macro has been submitted for inclusion into #
  12817. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12818. -# a released version of Autoconf we should remove this #
  12819. -# macro and use it instead. #
  12820. -# LT_AC_PROG_SED
  12821. -# --------------
  12822. -# Check for a fully-functional sed program, that truncates
  12823. -# as few characters as possible. Prefer GNU sed if found.
  12824. -AC_DEFUN([LT_AC_PROG_SED],
  12825. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12826. -AC_CACHE_VAL(lt_cv_path_SED,
  12827. -[# Loop through the user's path and test for sed and gsed.
  12828. -# Then use that list of sed's as ones to test for truncation.
  12829. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12830. -for as_dir in $PATH
  12831. -do
  12832. - IFS=$as_save_IFS
  12833. - test -z "$as_dir" && as_dir=.
  12834. - for lt_ac_prog in sed gsed; do
  12835. - for ac_exec_ext in '' $ac_executable_extensions; do
  12836. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12837. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12838. - fi
  12839. - done
  12840. - done
  12841. -done
  12842. -lt_ac_max=0
  12843. -lt_ac_count=0
  12844. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12845. -# along with /bin/sed that truncates output.
  12846. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12847. - test ! -f $lt_ac_sed && continue
  12848. - cat /dev/null > conftest.in
  12849. - lt_ac_count=0
  12850. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12851. - # Check for GNU sed and select it if it is found.
  12852. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12853. - lt_cv_path_SED=$lt_ac_sed
  12854. - break
  12855. - fi
  12856. - while true; do
  12857. - cat conftest.in conftest.in >conftest.tmp
  12858. - mv conftest.tmp conftest.in
  12859. - cp conftest.in conftest.nl
  12860. - echo >>conftest.nl
  12861. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12862. - cmp -s conftest.out conftest.nl || break
  12863. - # 10000 chars as input seems more than enough
  12864. - test $lt_ac_count -gt 10 && break
  12865. - lt_ac_count=`expr $lt_ac_count + 1`
  12866. - if test $lt_ac_count -gt $lt_ac_max; then
  12867. - lt_ac_max=$lt_ac_count
  12868. - lt_cv_path_SED=$lt_ac_sed
  12869. - fi
  12870. - done
  12871. -done
  12872. -])
  12873. -SED=$lt_cv_path_SED
  12874. -AC_MSG_RESULT([$SED])
  12875. +# Generated from ltversion.in.
  12876. +
  12877. +# serial 3017 ltversion.m4
  12878. +# This file is part of GNU Libtool
  12879. +
  12880. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  12881. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  12882. +
  12883. +AC_DEFUN([LTVERSION_VERSION],
  12884. +[macro_version='2.2.6b'
  12885. +macro_revision='1.3017'
  12886. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12887. +_LT_DECL(, macro_revision, 0)
  12888. ])
  12889. -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
  12890. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  12891. +#
  12892. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  12893. +# Written by Scott James Remnant, 2004.
  12894. +#
  12895. +# This file is free software; the Free Software Foundation gives
  12896. +# unlimited permission to copy and/or distribute it, with or without
  12897. +# modifications, as long as this notice is preserved.
  12898. +
  12899. +# serial 4 lt~obsolete.m4
  12900. +
  12901. +# These exist entirely to fool aclocal when bootstrapping libtool.
  12902. +#
  12903. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  12904. +# which have later been changed to m4_define as they aren't part of the
  12905. +# exported API, or moved to Autoconf or Automake where they belong.
  12906. +#
  12907. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  12908. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  12909. +# using a macro with the same name in our local m4/libtool.m4 it'll
  12910. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  12911. +# and doesn't know about Autoconf macros at all.)
  12912. +#
  12913. +# So we provide this file, which has a silly filename so it's always
  12914. +# included after everything else. This provides aclocal with the
  12915. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  12916. +# because those macros already exist, or will be overwritten later.
  12917. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  12918. +#
  12919. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  12920. +# Yes, that means every name once taken will need to remain here until
  12921. +# we give up compatibility with versions before 1.7, at which point
  12922. +# we need to keep only those names which we still refer to.
  12923. +
  12924. +# This is to help aclocal find these macros, as it can't see m4_define.
  12925. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  12926. +
  12927. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  12928. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  12929. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  12930. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  12931. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  12932. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  12933. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  12934. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  12935. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  12936. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  12937. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  12938. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  12939. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  12940. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  12941. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  12942. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  12943. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  12944. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  12945. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  12946. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  12947. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  12948. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  12949. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  12950. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  12951. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  12952. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  12953. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  12954. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  12955. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  12956. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  12957. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  12958. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  12959. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  12960. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  12961. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  12962. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  12963. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  12964. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  12965. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  12966. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  12967. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  12968. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  12969. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  12970. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  12971. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  12972. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  12973. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  12974. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  12975. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  12976. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  12977. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  12978. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  12979. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  12980. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  12981. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  12982. +
  12983. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12984. #
  12985. # This file is free software; the Free Software Foundation
  12986. # gives unlimited permission to copy and/or distribute it,
  12987. @@ -6397,10 +7997,10 @@
  12988. # generated from the m4 files accompanying Automake X.Y.
  12989. # (This private macro should not be called outside this file.)
  12990. AC_DEFUN([AM_AUTOMAKE_VERSION],
  12991. -[am__api_version='1.10'
  12992. +[am__api_version='1.11'
  12993. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  12994. dnl require some minimum version. Point them to the right macro.
  12995. -m4_if([$1], [1.10], [],
  12996. +m4_if([$1], [1.11.1], [],
  12997. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  12998. ])
  12999. @@ -6414,10 +8014,12 @@
  13000. # AM_SET_CURRENT_AUTOMAKE_VERSION
  13001. # -------------------------------
  13002. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  13003. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  13004. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  13005. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  13006. -[AM_AUTOMAKE_VERSION([1.10])dnl
  13007. -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
  13008. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  13009. +m4_ifndef([AC_AUTOCONF_VERSION],
  13010. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13011. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  13012. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  13013. @@ -6474,14 +8076,14 @@
  13014. # AM_CONDITIONAL -*- Autoconf -*-
  13015. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  13016. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  13017. # Free Software Foundation, Inc.
  13018. #
  13019. # This file is free software; the Free Software Foundation
  13020. # gives unlimited permission to copy and/or distribute it,
  13021. # with or without modifications, as long as this notice is preserved.
  13022. -# serial 8
  13023. +# serial 9
  13024. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  13025. # -------------------------------------
  13026. @@ -6494,6 +8096,7 @@
  13027. AC_SUBST([$1_FALSE])dnl
  13028. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13029. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13030. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  13031. if $2; then
  13032. $1_TRUE=
  13033. $1_FALSE='#'
  13034. @@ -6507,14 +8110,14 @@
  13035. Usually this means the macro was only invoked conditionally.]])
  13036. fi])])
  13037. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  13038. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  13039. # Free Software Foundation, Inc.
  13040. #
  13041. # This file is free software; the Free Software Foundation
  13042. # gives unlimited permission to copy and/or distribute it,
  13043. # with or without modifications, as long as this notice is preserved.
  13044. -# serial 9
  13045. +# serial 10
  13046. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13047. # written in clear, in which case automake, when reading aclocal.m4,
  13048. @@ -6571,6 +8174,16 @@
  13049. if test "$am_compiler_list" = ""; then
  13050. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  13051. fi
  13052. + am__universal=false
  13053. + m4_case([$1], [CC],
  13054. + [case " $depcc " in #(
  13055. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13056. + esac],
  13057. + [CXX],
  13058. + [case " $depcc " in #(
  13059. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13060. + esac])
  13061. +
  13062. for depmode in $am_compiler_list; do
  13063. # Setup a source with many dependencies, because some compilers
  13064. # like to wrap large dependency lists on column 80 (with \), and
  13065. @@ -6588,7 +8201,17 @@
  13066. done
  13067. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13068. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13069. + # mode. It turns out that the SunPro C++ compiler does not properly
  13070. + # handle `-M -o', and we need to detect this. Also, some Intel
  13071. + # versions had trouble with output in subdirs
  13072. + am__obj=sub/conftest.${OBJEXT-o}
  13073. + am__minus_obj="-o $am__obj"
  13074. case $depmode in
  13075. + gcc)
  13076. + # This depmode causes a compiler race in universal mode.
  13077. + test "$am__universal" = false || continue
  13078. + ;;
  13079. nosideeffect)
  13080. # after this tag, mechanisms are not by side-effect, so they'll
  13081. # only be used when explicitly requested
  13082. @@ -6598,19 +8221,23 @@
  13083. break
  13084. fi
  13085. ;;
  13086. + msvisualcpp | msvcmsys)
  13087. + # This compiler won't grok `-c -o', but also, the minuso test has
  13088. + # not run yet. These depmodes are late enough in the game, and
  13089. + # so weak that their functioning should not be impacted.
  13090. + am__obj=conftest.${OBJEXT-o}
  13091. + am__minus_obj=
  13092. + ;;
  13093. none) break ;;
  13094. esac
  13095. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13096. - # mode. It turns out that the SunPro C++ compiler does not properly
  13097. - # handle `-M -o', and we need to detect this.
  13098. if depmode=$depmode \
  13099. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13100. + source=sub/conftest.c object=$am__obj \
  13101. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13102. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13103. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13104. >/dev/null 2>conftest.err &&
  13105. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13106. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13107. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13108. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13109. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13110. # icc doesn't choke on unknown options, it will just issue warnings
  13111. # or remarks (even with -Werror). So we grep stderr for any message
  13112. @@ -6667,57 +8294,68 @@
  13113. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13114. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13115. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13116. # Free Software Foundation, Inc.
  13117. #
  13118. # This file is free software; the Free Software Foundation
  13119. # gives unlimited permission to copy and/or distribute it,
  13120. # with or without modifications, as long as this notice is preserved.
  13121. -#serial 3
  13122. +#serial 5
  13123. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  13124. # ------------------------------
  13125. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  13126. -[for mf in $CONFIG_FILES; do
  13127. - # Strip MF so we end up with the name of the file.
  13128. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  13129. - # Check whether this is an Automake generated Makefile or not.
  13130. - # We used to match only the files named `Makefile.in', but
  13131. - # some people rename them; so instead we look at the file content.
  13132. - # Grep'ing the first line is not enough: some people post-process
  13133. - # each Makefile.in and add a new line on top of each file to say so.
  13134. - # Grep'ing the whole file is not good either: AIX grep has a line
  13135. - # limit of 2048, but all sed's we know have understand at least 4000.
  13136. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  13137. - dirpart=`AS_DIRNAME("$mf")`
  13138. - else
  13139. - continue
  13140. - fi
  13141. - # Extract the definition of DEPDIR, am__include, and am__quote
  13142. - # from the Makefile without running `make'.
  13143. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13144. - test -z "$DEPDIR" && continue
  13145. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13146. - test -z "am__include" && continue
  13147. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13148. - # When using ansi2knr, U may be empty or an underscore; expand it
  13149. - U=`sed -n 's/^U = //p' < "$mf"`
  13150. - # Find all dependency output files, they are included files with
  13151. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  13152. - # simplest approach to changing $(DEPDIR) to its actual value in the
  13153. - # expansion.
  13154. - for file in `sed -n "
  13155. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13156. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13157. - # Make sure the directory exists.
  13158. - test -f "$dirpart/$file" && continue
  13159. - fdir=`AS_DIRNAME(["$file"])`
  13160. - AS_MKDIR_P([$dirpart/$fdir])
  13161. - # echo "creating $dirpart/$file"
  13162. - echo '# dummy' > "$dirpart/$file"
  13163. +[{
  13164. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13165. + # are listed without --file. Let's play safe and only enable the eval
  13166. + # if we detect the quoting.
  13167. + case $CONFIG_FILES in
  13168. + *\'*) eval set x "$CONFIG_FILES" ;;
  13169. + *) set x $CONFIG_FILES ;;
  13170. + esac
  13171. + shift
  13172. + for mf
  13173. + do
  13174. + # Strip MF so we end up with the name of the file.
  13175. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13176. + # Check whether this is an Automake generated Makefile or not.
  13177. + # We used to match only the files named `Makefile.in', but
  13178. + # some people rename them; so instead we look at the file content.
  13179. + # Grep'ing the first line is not enough: some people post-process
  13180. + # each Makefile.in and add a new line on top of each file to say so.
  13181. + # Grep'ing the whole file is not good either: AIX grep has a line
  13182. + # limit of 2048, but all sed's we know have understand at least 4000.
  13183. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13184. + dirpart=`AS_DIRNAME("$mf")`
  13185. + else
  13186. + continue
  13187. + fi
  13188. + # Extract the definition of DEPDIR, am__include, and am__quote
  13189. + # from the Makefile without running `make'.
  13190. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13191. + test -z "$DEPDIR" && continue
  13192. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13193. + test -z "am__include" && continue
  13194. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13195. + # When using ansi2knr, U may be empty or an underscore; expand it
  13196. + U=`sed -n 's/^U = //p' < "$mf"`
  13197. + # Find all dependency output files, they are included files with
  13198. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13199. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13200. + # expansion.
  13201. + for file in `sed -n "
  13202. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13203. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13204. + # Make sure the directory exists.
  13205. + test -f "$dirpart/$file" && continue
  13206. + fdir=`AS_DIRNAME(["$file"])`
  13207. + AS_MKDIR_P([$dirpart/$fdir])
  13208. + # echo "creating $dirpart/$file"
  13209. + echo '# dummy' > "$dirpart/$file"
  13210. + done
  13211. done
  13212. -done
  13213. +}
  13214. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13215. @@ -6749,13 +8387,13 @@
  13216. # Do all the work for Automake. -*- Autoconf -*-
  13217. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13218. -# 2005, 2006 Free Software Foundation, Inc.
  13219. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13220. #
  13221. # This file is free software; the Free Software Foundation
  13222. # gives unlimited permission to copy and/or distribute it,
  13223. # with or without modifications, as long as this notice is preserved.
  13224. -# serial 12
  13225. +# serial 16
  13226. # This macro actually does too much. Some checks are only needed if
  13227. # your package does certain things. But this isn't really a big deal.
  13228. @@ -6772,7 +8410,7 @@
  13229. # arguments mandatory, and then we can depend on a new Autoconf
  13230. # release and drop the old call support.
  13231. AC_DEFUN([AM_INIT_AUTOMAKE],
  13232. -[AC_PREREQ([2.60])dnl
  13233. +[AC_PREREQ([2.62])dnl
  13234. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13235. dnl the ones we care about.
  13236. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13237. @@ -6823,8 +8461,8 @@
  13238. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13239. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13240. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13241. -AM_PROG_INSTALL_SH
  13242. -AM_PROG_INSTALL_STRIP
  13243. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13244. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13245. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13246. # We need awk for the "check" target. The system "awk" is bad on
  13247. # some platforms.
  13248. @@ -6832,24 +8470,37 @@
  13249. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13250. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13251. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13252. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13253. - [_AM_PROG_TAR([v7])])])
  13254. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13255. + [_AM_PROG_TAR([v7])])])
  13256. _AM_IF_OPTION([no-dependencies],,
  13257. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13258. - [_AM_DEPENDENCIES(CC)],
  13259. - [define([AC_PROG_CC],
  13260. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13261. + [_AM_DEPENDENCIES(CC)],
  13262. + [define([AC_PROG_CC],
  13263. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13264. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13265. - [_AM_DEPENDENCIES(CXX)],
  13266. - [define([AC_PROG_CXX],
  13267. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13268. + [_AM_DEPENDENCIES(CXX)],
  13269. + [define([AC_PROG_CXX],
  13270. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13271. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13272. - [_AM_DEPENDENCIES(OBJC)],
  13273. - [define([AC_PROG_OBJC],
  13274. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13275. + [_AM_DEPENDENCIES(OBJC)],
  13276. + [define([AC_PROG_OBJC],
  13277. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13278. ])
  13279. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13280. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13281. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13282. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13283. +AC_CONFIG_COMMANDS_PRE(dnl
  13284. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13285. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13286. ])
  13287. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13288. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13289. +dnl mangled by Autoconf and run in a shell conditional statement.
  13290. +m4_define([_AC_COMPILER_EXEEXT],
  13291. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13292. +
  13293. # When config.status generates a header, we must update the stamp-h file.
  13294. # This file resides in the same directory as the config header
  13295. @@ -6860,18 +8511,19 @@
  13296. # our stamp files there.
  13297. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13298. [# Compute $1's index in $config_headers.
  13299. +_am_arg=$1
  13300. _am_stamp_count=1
  13301. for _am_header in $config_headers :; do
  13302. case $_am_header in
  13303. - $1 | $1:* )
  13304. + $_am_arg | $_am_arg:* )
  13305. break ;;
  13306. * )
  13307. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13308. esac
  13309. done
  13310. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13311. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13312. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13313. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13314. #
  13315. # This file is free software; the Free Software Foundation
  13316. # gives unlimited permission to copy and/or distribute it,
  13317. @@ -6882,7 +8534,14 @@
  13318. # Define $install_sh.
  13319. AC_DEFUN([AM_PROG_INSTALL_SH],
  13320. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13321. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  13322. +if test x"${install_sh}" != xset; then
  13323. + case $am_aux_dir in
  13324. + *\ * | *\ *)
  13325. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13326. + *)
  13327. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13328. + esac
  13329. +fi
  13330. AC_SUBST(install_sh)])
  13331. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13332. @@ -6909,27 +8568,38 @@
  13333. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  13334. # From Jim Meyering
  13335. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  13336. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13337. # Free Software Foundation, Inc.
  13338. #
  13339. # This file is free software; the Free Software Foundation
  13340. # gives unlimited permission to copy and/or distribute it,
  13341. # with or without modifications, as long as this notice is preserved.
  13342. -# serial 4
  13343. +# serial 5
  13344. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  13345. +# ----------------------------------
  13346. +# Control maintainer-specific portions of Makefiles.
  13347. +# Default is to disable them, unless `enable' is passed literally.
  13348. +# For symmetry, `disable' may be passed as well. Anyway, the user
  13349. +# can override the default with the --enable/--disable switch.
  13350. AC_DEFUN([AM_MAINTAINER_MODE],
  13351. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  13352. - dnl maintainer-mode is disabled by default
  13353. - AC_ARG_ENABLE(maintainer-mode,
  13354. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  13355. +[m4_case(m4_default([$1], [disable]),
  13356. + [enable], [m4_define([am_maintainer_other], [disable])],
  13357. + [disable], [m4_define([am_maintainer_other], [enable])],
  13358. + [m4_define([am_maintainer_other], [enable])
  13359. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  13360. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  13361. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  13362. + AC_ARG_ENABLE([maintainer-mode],
  13363. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  13364. (and sometimes confusing) to the casual installer],
  13365. - USE_MAINTAINER_MODE=$enableval,
  13366. - USE_MAINTAINER_MODE=no)
  13367. + [USE_MAINTAINER_MODE=$enableval],
  13368. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  13369. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  13370. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  13371. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  13372. MAINT=$MAINTAINER_MODE_TRUE
  13373. - AC_SUBST(MAINT)dnl
  13374. + AC_SUBST([MAINT])dnl
  13375. ]
  13376. )
  13377. @@ -6937,13 +8607,13 @@
  13378. # Check to see how 'make' treats includes. -*- Autoconf -*-
  13379. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13380. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13381. #
  13382. # This file is free software; the Free Software Foundation
  13383. # gives unlimited permission to copy and/or distribute it,
  13384. # with or without modifications, as long as this notice is preserved.
  13385. -# serial 3
  13386. +# serial 4
  13387. # AM_MAKE_INCLUDE()
  13388. # -----------------
  13389. @@ -6952,7 +8622,7 @@
  13390. [am_make=${MAKE-make}
  13391. cat > confinc << 'END'
  13392. am__doit:
  13393. - @echo done
  13394. + @echo this is the am__doit target
  13395. .PHONY: am__doit
  13396. END
  13397. # If we don't find an include directive, just comment out the code.
  13398. @@ -6962,24 +8632,24 @@
  13399. _am_result=none
  13400. # First try GNU make style include.
  13401. echo "include confinc" > confmf
  13402. -# We grep out `Entering directory' and `Leaving directory'
  13403. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13404. -# In particular we don't look at `^make:' because GNU make might
  13405. -# be invoked under some other name (usually "gmake"), in which
  13406. -# case it prints its new name instead of `make'.
  13407. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13408. - am__include=include
  13409. - am__quote=
  13410. - _am_result=GNU
  13411. -fi
  13412. +# Ignore all kinds of additional output from `make'.
  13413. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13414. +*the\ am__doit\ target*)
  13415. + am__include=include
  13416. + am__quote=
  13417. + _am_result=GNU
  13418. + ;;
  13419. +esac
  13420. # Now try BSD make style include.
  13421. if test "$am__include" = "#"; then
  13422. echo '.include "confinc"' > confmf
  13423. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13424. - am__include=.include
  13425. - am__quote="\""
  13426. - _am_result=BSD
  13427. - fi
  13428. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13429. + *the\ am__doit\ target*)
  13430. + am__include=.include
  13431. + am__quote="\""
  13432. + _am_result=BSD
  13433. + ;;
  13434. + esac
  13435. fi
  13436. AC_SUBST([am__include])
  13437. AC_SUBST([am__quote])
  13438. @@ -6989,14 +8659,14 @@
  13439. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13440. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  13441. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13442. # Free Software Foundation, Inc.
  13443. #
  13444. # This file is free software; the Free Software Foundation
  13445. # gives unlimited permission to copy and/or distribute it,
  13446. # with or without modifications, as long as this notice is preserved.
  13447. -# serial 5
  13448. +# serial 6
  13449. # AM_MISSING_PROG(NAME, PROGRAM)
  13450. # ------------------------------
  13451. @@ -7013,7 +8683,14 @@
  13452. AC_DEFUN([AM_MISSING_HAS_RUN],
  13453. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13454. AC_REQUIRE_AUX_FILE([missing])dnl
  13455. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13456. +if test x"${MISSING+set}" != xset; then
  13457. + case $am_aux_dir in
  13458. + *\ * | *\ *)
  13459. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13460. + *)
  13461. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13462. + esac
  13463. +fi
  13464. # Use eval to expand $SHELL
  13465. if eval "$MISSING --run true"; then
  13466. am_missing_run="$MISSING --run "
  13467. @@ -7051,13 +8728,13 @@
  13468. # Helper functions for option handling. -*- Autoconf -*-
  13469. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13470. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13471. #
  13472. # This file is free software; the Free Software Foundation
  13473. # gives unlimited permission to copy and/or distribute it,
  13474. # with or without modifications, as long as this notice is preserved.
  13475. -# serial 3
  13476. +# serial 4
  13477. # _AM_MANGLE_OPTION(NAME)
  13478. # -----------------------
  13479. @@ -7074,7 +8751,7 @@
  13480. # ----------------------------------
  13481. # OPTIONS is a space-separated list of Automake options.
  13482. AC_DEFUN([_AM_SET_OPTIONS],
  13483. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13484. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13485. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13486. # -------------------------------------------
  13487. @@ -7084,14 +8761,14 @@
  13488. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  13489. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13490. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13491. # Free Software Foundation, Inc.
  13492. #
  13493. # This file is free software; the Free Software Foundation
  13494. # gives unlimited permission to copy and/or distribute it,
  13495. # with or without modifications, as long as this notice is preserved.
  13496. -# serial 4
  13497. +# serial 5
  13498. # AM_SANITY_CHECK
  13499. # ---------------
  13500. @@ -7100,16 +8777,29 @@
  13501. # Just in case
  13502. sleep 1
  13503. echo timestamp > conftest.file
  13504. +# Reject unsafe characters in $srcdir or the absolute working directory
  13505. +# name. Accept space and tab only in the latter.
  13506. +am_lf='
  13507. +'
  13508. +case `pwd` in
  13509. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13510. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13511. +esac
  13512. +case $srcdir in
  13513. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13514. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13515. +esac
  13516. +
  13517. # Do `set' in a subshell so we don't clobber the current shell's
  13518. # arguments. Must try -L first in case configure is actually a
  13519. # symlink; some systems play weird games with the mod time of symlinks
  13520. # (eg FreeBSD returns the mod time of the symlink's containing
  13521. # directory).
  13522. if (
  13523. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13524. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13525. if test "$[*]" = "X"; then
  13526. # -L didn't work.
  13527. - set X `ls -t $srcdir/configure conftest.file`
  13528. + set X `ls -t "$srcdir/configure" conftest.file`
  13529. fi
  13530. rm -f conftest.file
  13531. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13532. @@ -7162,18 +8852,25 @@
  13533. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13534. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13535. -# Copyright (C) 2006 Free Software Foundation, Inc.
  13536. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13537. #
  13538. # This file is free software; the Free Software Foundation
  13539. # gives unlimited permission to copy and/or distribute it,
  13540. # with or without modifications, as long as this notice is preserved.
  13541. +# serial 2
  13542. +
  13543. # _AM_SUBST_NOTMAKE(VARIABLE)
  13544. # ---------------------------
  13545. -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
  13546. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13547. # This macro is traced by Automake.
  13548. AC_DEFUN([_AM_SUBST_NOTMAKE])
  13549. +# AM_SUBST_NOTMAKE(VARIABLE)
  13550. +# ---------------------------
  13551. +# Public sister of _AM_SUBST_NOTMAKE.
  13552. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13553. +
  13554. # Check how to create a tarball. -*- Autoconf -*-
  13555. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13556. diff -Nur libvorbis-1.2.0.orig/config.guess libvorbis-1.2.0/config.guess
  13557. --- libvorbis-1.2.0.orig/config.guess 2006-11-08 08:44:58.000000000 +0100
  13558. +++ libvorbis-1.2.0/config.guess 2011-02-17 18:30:20.903561752 +0100
  13559. @@ -1,10 +1,10 @@
  13560. #! /bin/sh
  13561. # Attempt to guess a canonical system name.
  13562. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13563. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  13564. -# Inc.
  13565. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13566. +# Free Software Foundation, Inc.
  13567. -timestamp='2006-07-02'
  13568. +timestamp='2009-06-10'
  13569. # This file is free software; you can redistribute it and/or modify it
  13570. # under the terms of the GNU General Public License as published by
  13571. @@ -56,8 +56,8 @@
  13572. GNU config.guess ($timestamp)
  13573. Originally written by Per Bothner.
  13574. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13575. -Free Software Foundation, Inc.
  13576. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13577. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13578. This is free software; see the source for copying conditions. There is NO
  13579. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13580. @@ -161,6 +161,7 @@
  13581. arm*) machine=arm-unknown ;;
  13582. sh3el) machine=shl-unknown ;;
  13583. sh3eb) machine=sh-unknown ;;
  13584. + sh5el) machine=sh5le-unknown ;;
  13585. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13586. esac
  13587. # The Operating System including object format, if it has switched
  13588. @@ -169,7 +170,7 @@
  13589. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13590. eval $set_cc_for_build
  13591. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13592. - | grep __ELF__ >/dev/null
  13593. + | grep -q __ELF__
  13594. then
  13595. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13596. # Return netbsd for either. FIX?
  13597. @@ -323,14 +324,30 @@
  13598. case `/usr/bin/uname -p` in
  13599. sparc) echo sparc-icl-nx7; exit ;;
  13600. esac ;;
  13601. + s390x:SunOS:*:*)
  13602. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13603. + exit ;;
  13604. sun4H:SunOS:5.*:*)
  13605. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13606. exit ;;
  13607. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  13608. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13609. exit ;;
  13610. - i86pc:SunOS:5.*:*)
  13611. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13612. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  13613. + eval $set_cc_for_build
  13614. + SUN_ARCH="i386"
  13615. + # If there is a compiler, see if it is configured for 64-bit objects.
  13616. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  13617. + # This test works for both compilers.
  13618. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  13619. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  13620. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  13621. + grep IS_64BIT_ARCH >/dev/null
  13622. + then
  13623. + SUN_ARCH="x86_64"
  13624. + fi
  13625. + fi
  13626. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13627. exit ;;
  13628. sun4*:SunOS:6*:*)
  13629. # According to config.sub, this is the proper way to canonicalize
  13630. @@ -531,7 +548,7 @@
  13631. echo rs6000-ibm-aix3.2
  13632. fi
  13633. exit ;;
  13634. - *:AIX:*:[45])
  13635. + *:AIX:*:[456])
  13636. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  13637. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  13638. IBM_ARCH=rs6000
  13639. @@ -639,7 +656,7 @@
  13640. # => hppa64-hp-hpux11.23
  13641. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  13642. - grep __LP64__ >/dev/null
  13643. + grep -q __LP64__
  13644. then
  13645. HP_ARCH="hppa2.0w"
  13646. else
  13647. @@ -780,7 +797,7 @@
  13648. i*:CYGWIN*:*)
  13649. echo ${UNAME_MACHINE}-pc-cygwin
  13650. exit ;;
  13651. - i*:MINGW*:*)
  13652. + *:MINGW*:*)
  13653. echo ${UNAME_MACHINE}-pc-mingw32
  13654. exit ;;
  13655. i*:windows32*:*)
  13656. @@ -790,15 +807,24 @@
  13657. i*:PW*:*)
  13658. echo ${UNAME_MACHINE}-pc-pw32
  13659. exit ;;
  13660. - x86:Interix*:[3456]*)
  13661. - echo i586-pc-interix${UNAME_RELEASE}
  13662. - exit ;;
  13663. - EM64T:Interix*:[3456]*)
  13664. - echo x86_64-unknown-interix${UNAME_RELEASE}
  13665. - exit ;;
  13666. + *:Interix*:[3456]*)
  13667. + case ${UNAME_MACHINE} in
  13668. + x86)
  13669. + echo i586-pc-interix${UNAME_RELEASE}
  13670. + exit ;;
  13671. + EM64T | authenticamd | genuineintel)
  13672. + echo x86_64-unknown-interix${UNAME_RELEASE}
  13673. + exit ;;
  13674. + IA64)
  13675. + echo ia64-unknown-interix${UNAME_RELEASE}
  13676. + exit ;;
  13677. + esac ;;
  13678. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  13679. echo i${UNAME_MACHINE}-pc-mks
  13680. exit ;;
  13681. + 8664:Windows_NT:*)
  13682. + echo x86_64-pc-mks
  13683. + exit ;;
  13684. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  13685. # How do we know it's Interix rather than the generic POSIX subsystem?
  13686. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  13687. @@ -829,7 +855,14 @@
  13688. echo ${UNAME_MACHINE}-pc-minix
  13689. exit ;;
  13690. arm*:Linux:*:*)
  13691. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  13692. + eval $set_cc_for_build
  13693. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13694. + | grep -q __ARM_EABI__
  13695. + then
  13696. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13697. + else
  13698. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  13699. + fi
  13700. exit ;;
  13701. avr32*:Linux:*:*)
  13702. echo ${UNAME_MACHINE}-unknown-linux-gnu
  13703. @@ -852,40 +885,17 @@
  13704. m68*:Linux:*:*)
  13705. echo ${UNAME_MACHINE}-unknown-linux-gnu
  13706. exit ;;
  13707. - mips:Linux:*:*)
  13708. + mips:Linux:*:* | mips64:Linux:*:*)
  13709. eval $set_cc_for_build
  13710. sed 's/^ //' << EOF >$dummy.c
  13711. #undef CPU
  13712. - #undef mips
  13713. - #undef mipsel
  13714. + #undef ${UNAME_MACHINE}
  13715. + #undef ${UNAME_MACHINE}el
  13716. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  13717. - CPU=mipsel
  13718. + CPU=${UNAME_MACHINE}el
  13719. #else
  13720. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  13721. - CPU=mips
  13722. - #else
  13723. - CPU=
  13724. - #endif
  13725. - #endif
  13726. -EOF
  13727. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  13728. - /^CPU/{
  13729. - s: ::g
  13730. - p
  13731. - }'`"
  13732. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  13733. - ;;
  13734. - mips64:Linux:*:*)
  13735. - eval $set_cc_for_build
  13736. - sed 's/^ //' << EOF >$dummy.c
  13737. - #undef CPU
  13738. - #undef mips64
  13739. - #undef mips64el
  13740. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  13741. - CPU=mips64el
  13742. - #else
  13743. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  13744. - CPU=mips64
  13745. + CPU=${UNAME_MACHINE}
  13746. #else
  13747. CPU=
  13748. #endif
  13749. @@ -917,10 +927,13 @@
  13750. EV67) UNAME_MACHINE=alphaev67 ;;
  13751. EV68*) UNAME_MACHINE=alphaev68 ;;
  13752. esac
  13753. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  13754. + objdump --private-headers /bin/sh | grep -q ld.so.1
  13755. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  13756. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  13757. exit ;;
  13758. + padre:Linux:*:*)
  13759. + echo sparc-unknown-linux-gnu
  13760. + exit ;;
  13761. parisc:Linux:*:* | hppa:Linux:*:*)
  13762. # Look for CPU level
  13763. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  13764. @@ -950,6 +963,9 @@
  13765. x86_64:Linux:*:*)
  13766. echo x86_64-unknown-linux-gnu
  13767. exit ;;
  13768. + xtensa*:Linux:*:*)
  13769. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  13770. + exit ;;
  13771. i*86:Linux:*:*)
  13772. # The BFD linker knows what the default object file format is, so
  13773. # first see if it will tell us. cd to the root directory to prevent
  13774. @@ -965,17 +981,6 @@
  13775. elf32-i386)
  13776. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  13777. ;;
  13778. - a.out-i386-linux)
  13779. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  13780. - exit ;;
  13781. - coff-i386)
  13782. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  13783. - exit ;;
  13784. - "")
  13785. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  13786. - # one that does not give us useful --help.
  13787. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  13788. - exit ;;
  13789. esac
  13790. # Determine whether the default compiler is a.out or elf
  13791. eval $set_cc_for_build
  13792. @@ -1041,7 +1046,7 @@
  13793. i*86:syllable:*:*)
  13794. echo ${UNAME_MACHINE}-pc-syllable
  13795. exit ;;
  13796. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  13797. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  13798. echo i386-unknown-lynxos${UNAME_RELEASE}
  13799. exit ;;
  13800. i*86:*DOS:*:*)
  13801. @@ -1085,8 +1090,11 @@
  13802. pc:*:*:*)
  13803. # Left here for compatibility:
  13804. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  13805. - # the processor, so we play safe by assuming i386.
  13806. - echo i386-pc-msdosdjgpp
  13807. + # the processor, so we play safe by assuming i586.
  13808. + # Note: whatever this is, it MUST be the same as what config.sub
  13809. + # prints for the "djgpp" host, or else GDB configury will decide that
  13810. + # this is a cross-build.
  13811. + echo i586-pc-msdosdjgpp
  13812. exit ;;
  13813. Intel:Mach:3*:*)
  13814. echo i386-pc-mach3
  13815. @@ -1124,6 +1132,16 @@
  13816. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  13817. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  13818. && { echo i486-ncr-sysv4; exit; } ;;
  13819. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  13820. + OS_REL='.3'
  13821. + test -r /etc/.relid \
  13822. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  13823. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  13824. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  13825. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  13826. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  13827. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  13828. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  13829. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  13830. echo m68k-unknown-lynxos${UNAME_RELEASE}
  13831. exit ;;
  13832. @@ -1136,7 +1154,7 @@
  13833. rs6000:LynxOS:2.*:*)
  13834. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  13835. exit ;;
  13836. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  13837. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  13838. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  13839. exit ;;
  13840. SM[BE]S:UNIX_SV:*:*)
  13841. @@ -1199,6 +1217,9 @@
  13842. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  13843. echo i586-pc-beos
  13844. exit ;;
  13845. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  13846. + echo i586-pc-haiku
  13847. + exit ;;
  13848. SX-4:SUPER-UX:*:*)
  13849. echo sx4-nec-superux${UNAME_RELEASE}
  13850. exit ;;
  13851. @@ -1208,6 +1229,15 @@
  13852. SX-6:SUPER-UX:*:*)
  13853. echo sx6-nec-superux${UNAME_RELEASE}
  13854. exit ;;
  13855. + SX-7:SUPER-UX:*:*)
  13856. + echo sx7-nec-superux${UNAME_RELEASE}
  13857. + exit ;;
  13858. + SX-8:SUPER-UX:*:*)
  13859. + echo sx8-nec-superux${UNAME_RELEASE}
  13860. + exit ;;
  13861. + SX-8R:SUPER-UX:*:*)
  13862. + echo sx8r-nec-superux${UNAME_RELEASE}
  13863. + exit ;;
  13864. Power*:Rhapsody:*:*)
  13865. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  13866. exit ;;
  13867. @@ -1298,6 +1328,9 @@
  13868. i*86:rdos:*:*)
  13869. echo ${UNAME_MACHINE}-pc-rdos
  13870. exit ;;
  13871. + i*86:AROS:*:*)
  13872. + echo ${UNAME_MACHINE}-pc-aros
  13873. + exit ;;
  13874. esac
  13875. #echo '(No uname command or uname output not recognized.)' 1>&2
  13876. @@ -1458,9 +1491,9 @@
  13877. the operating system you are using. It is advised that you
  13878. download the most up to date version of the config scripts from
  13879. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  13880. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  13881. and
  13882. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  13883. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  13884. If the version you run ($0) is already up to date, please
  13885. send the following data and any information you think might be
  13886. diff -Nur libvorbis-1.2.0.orig/config.h.in libvorbis-1.2.0/config.h.in
  13887. --- libvorbis-1.2.0.orig/config.h.in 2007-07-25 18:46:34.000000000 +0200
  13888. +++ libvorbis-1.2.0/config.h.in 2011-02-17 18:30:20.000000000 +0100
  13889. @@ -45,6 +45,10 @@
  13890. /* Define to 1 if you have the <unistd.h> header file. */
  13891. #undef HAVE_UNISTD_H
  13892. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  13893. + */
  13894. +#undef LT_OBJDIR
  13895. +
  13896. /* Name of package */
  13897. #undef PACKAGE
  13898. @@ -60,6 +64,9 @@
  13899. /* Define to the one symbol short name of this package. */
  13900. #undef PACKAGE_TARNAME
  13901. +/* Define to the home page for this package. */
  13902. +#undef PACKAGE_URL
  13903. +
  13904. /* Define to the version of this package. */
  13905. #undef PACKAGE_VERSION
  13906. diff -Nur libvorbis-1.2.0.orig/config.h.in~ libvorbis-1.2.0/config.h.in~
  13907. --- libvorbis-1.2.0.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  13908. +++ libvorbis-1.2.0/config.h.in~ 2011-02-17 18:28:21.000000000 +0100
  13909. @@ -0,0 +1,85 @@
  13910. +/* config.h.in. Generated from configure.in by autoheader. */
  13911. +
  13912. +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  13913. + systems. This function is required for `alloca.c' support on those systems.
  13914. + */
  13915. +#undef CRAY_STACKSEG_END
  13916. +
  13917. +/* Define to 1 if using `alloca.c'. */
  13918. +#undef C_ALLOCA
  13919. +
  13920. +/* Define to 1 if you have `alloca', as a function or macro. */
  13921. +#undef HAVE_ALLOCA
  13922. +
  13923. +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
  13924. + */
  13925. +#undef HAVE_ALLOCA_H
  13926. +
  13927. +/* Define to 1 if you have the <dlfcn.h> header file. */
  13928. +#undef HAVE_DLFCN_H
  13929. +
  13930. +/* Define to 1 if you have the <inttypes.h> header file. */
  13931. +#undef HAVE_INTTYPES_H
  13932. +
  13933. +/* Define to 1 if you have the <memory.h> header file. */
  13934. +#undef HAVE_MEMORY_H
  13935. +
  13936. +/* Define to 1 if you have the <stdint.h> header file. */
  13937. +#undef HAVE_STDINT_H
  13938. +
  13939. +/* Define to 1 if you have the <stdlib.h> header file. */
  13940. +#undef HAVE_STDLIB_H
  13941. +
  13942. +/* Define to 1 if you have the <strings.h> header file. */
  13943. +#undef HAVE_STRINGS_H
  13944. +
  13945. +/* Define to 1 if you have the <string.h> header file. */
  13946. +#undef HAVE_STRING_H
  13947. +
  13948. +/* Define to 1 if you have the <sys/stat.h> header file. */
  13949. +#undef HAVE_SYS_STAT_H
  13950. +
  13951. +/* Define to 1 if you have the <sys/types.h> header file. */
  13952. +#undef HAVE_SYS_TYPES_H
  13953. +
  13954. +/* Define to 1 if you have the <unistd.h> header file. */
  13955. +#undef HAVE_UNISTD_H
  13956. +
  13957. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  13958. + */
  13959. +#undef LT_OBJDIR
  13960. +
  13961. +/* Name of package */
  13962. +#undef PACKAGE
  13963. +
  13964. +/* Define to the address where bug reports for this package should be sent. */
  13965. +#undef PACKAGE_BUGREPORT
  13966. +
  13967. +/* Define to the full name of this package. */
  13968. +#undef PACKAGE_NAME
  13969. +
  13970. +/* Define to the full name and version of this package. */
  13971. +#undef PACKAGE_STRING
  13972. +
  13973. +/* Define to the one symbol short name of this package. */
  13974. +#undef PACKAGE_TARNAME
  13975. +
  13976. +/* Define to the home page for this package. */
  13977. +#undef PACKAGE_URL
  13978. +
  13979. +/* Define to the version of this package. */
  13980. +#undef PACKAGE_VERSION
  13981. +
  13982. +/* If using the C implementation of alloca, define if you know the
  13983. + direction of stack growth for your system; otherwise it will be
  13984. + automatically deduced at runtime.
  13985. + STACK_DIRECTION > 0 => grows toward higher addresses
  13986. + STACK_DIRECTION < 0 => grows toward lower addresses
  13987. + STACK_DIRECTION = 0 => direction of growth unknown */
  13988. +#undef STACK_DIRECTION
  13989. +
  13990. +/* Define to 1 if you have the ANSI C header files. */
  13991. +#undef STDC_HEADERS
  13992. +
  13993. +/* Version number of package */
  13994. +#undef VERSION
  13995. diff -Nur libvorbis-1.2.0.orig/config.sub libvorbis-1.2.0/config.sub
  13996. --- libvorbis-1.2.0.orig/config.sub 2006-11-08 08:44:58.000000000 +0100
  13997. +++ libvorbis-1.2.0/config.sub 2011-02-17 18:30:20.903561752 +0100
  13998. @@ -1,10 +1,10 @@
  13999. #! /bin/sh
  14000. # Configuration validation subroutine script.
  14001. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  14002. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  14003. -# Inc.
  14004. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  14005. +# Free Software Foundation, Inc.
  14006. -timestamp='2006-09-20'
  14007. +timestamp='2009-06-11'
  14008. # This file is (in principle) common to ALL GNU software.
  14009. # The presence of a machine in this file suggests that SOME GNU software
  14010. @@ -72,8 +72,8 @@
  14011. version="\
  14012. GNU config.sub ($timestamp)
  14013. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  14014. -Free Software Foundation, Inc.
  14015. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  14016. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  14017. This is free software; see the source for copying conditions. There is NO
  14018. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  14019. @@ -122,6 +122,7 @@
  14020. case $maybe_os in
  14021. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  14022. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  14023. + kopensolaris*-gnu* | \
  14024. storm-chaos* | os2-emx* | rtmk-nova*)
  14025. os=-$maybe_os
  14026. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  14027. @@ -152,6 +153,9 @@
  14028. os=
  14029. basic_machine=$1
  14030. ;;
  14031. + -bluegene*)
  14032. + os=-cnk
  14033. + ;;
  14034. -sim | -cisco | -oki | -wec | -winbond)
  14035. os=
  14036. basic_machine=$1
  14037. @@ -245,17 +249,20 @@
  14038. | bfin \
  14039. | c4x | clipper \
  14040. | d10v | d30v | dlx | dsp16xx \
  14041. - | fr30 | frv \
  14042. + | fido | fr30 | frv \
  14043. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  14044. | i370 | i860 | i960 | ia64 \
  14045. | ip2k | iq2000 \
  14046. + | lm32 \
  14047. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  14048. - | maxq | mb | microblaze | mcore \
  14049. + | maxq | mb | microblaze | mcore | mep | metag \
  14050. | mips | mipsbe | mipseb | mipsel | mipsle \
  14051. | mips16 \
  14052. | mips64 | mips64el \
  14053. - | mips64vr | mips64vrel \
  14054. + | mips64octeon | mips64octeonel \
  14055. | mips64orion | mips64orionel \
  14056. + | mips64r5900 | mips64r5900el \
  14057. + | mips64vr | mips64vrel \
  14058. | mips64vr4100 | mips64vr4100el \
  14059. | mips64vr4300 | mips64vr4300el \
  14060. | mips64vr5000 | mips64vr5000el \
  14061. @@ -268,6 +275,7 @@
  14062. | mipsisa64sr71k | mipsisa64sr71kel \
  14063. | mipstx39 | mipstx39el \
  14064. | mn10200 | mn10300 \
  14065. + | moxie \
  14066. | mt \
  14067. | msp430 \
  14068. | nios | nios2 \
  14069. @@ -277,7 +285,7 @@
  14070. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  14071. | pyramid \
  14072. | score \
  14073. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  14074. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  14075. | sh64 | sh64le \
  14076. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  14077. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  14078. @@ -286,7 +294,7 @@
  14079. | v850 | v850e \
  14080. | we32k \
  14081. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  14082. - | z8k)
  14083. + | z8k | z80)
  14084. basic_machine=$basic_machine-unknown
  14085. ;;
  14086. m6811 | m68hc11 | m6812 | m68hc12)
  14087. @@ -324,19 +332,22 @@
  14088. | clipper-* | craynv-* | cydra-* \
  14089. | d10v-* | d30v-* | dlx-* \
  14090. | elxsi-* \
  14091. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  14092. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  14093. | h8300-* | h8500-* \
  14094. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  14095. | i*86-* | i860-* | i960-* | ia64-* \
  14096. | ip2k-* | iq2000-* \
  14097. + | lm32-* \
  14098. | m32c-* | m32r-* | m32rle-* \
  14099. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  14100. - | m88110-* | m88k-* | maxq-* | mcore-* \
  14101. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  14102. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  14103. | mips16-* \
  14104. | mips64-* | mips64el-* \
  14105. - | mips64vr-* | mips64vrel-* \
  14106. + | mips64octeon-* | mips64octeonel-* \
  14107. | mips64orion-* | mips64orionel-* \
  14108. + | mips64r5900-* | mips64r5900el-* \
  14109. + | mips64vr-* | mips64vrel-* \
  14110. | mips64vr4100-* | mips64vr4100el-* \
  14111. | mips64vr4300-* | mips64vr4300el-* \
  14112. | mips64vr5000-* | mips64vr5000el-* \
  14113. @@ -358,20 +369,24 @@
  14114. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  14115. | pyramid-* \
  14116. | romp-* | rs6000-* \
  14117. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  14118. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  14119. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  14120. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  14121. | sparclite-* \
  14122. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  14123. | tahoe-* | thumb-* \
  14124. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  14125. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  14126. | tron-* \
  14127. | v850-* | v850e-* | vax-* \
  14128. | we32k-* \
  14129. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  14130. - | xstormy16-* | xtensa-* \
  14131. + | xstormy16-* | xtensa*-* \
  14132. | ymp-* \
  14133. - | z8k-*)
  14134. + | z8k-* | z80-*)
  14135. + ;;
  14136. + # Recognize the basic CPU types without company name, with glob match.
  14137. + xtensa*)
  14138. + basic_machine=$basic_machine-unknown
  14139. ;;
  14140. # Recognize the various machine names and aliases which stand
  14141. # for a CPU type and a company and sometimes even an OS.
  14142. @@ -435,6 +450,10 @@
  14143. basic_machine=m68k-apollo
  14144. os=-bsd
  14145. ;;
  14146. + aros)
  14147. + basic_machine=i386-pc
  14148. + os=-aros
  14149. + ;;
  14150. aux)
  14151. basic_machine=m68k-apple
  14152. os=-aux
  14153. @@ -443,10 +462,26 @@
  14154. basic_machine=ns32k-sequent
  14155. os=-dynix
  14156. ;;
  14157. + blackfin)
  14158. + basic_machine=bfin-unknown
  14159. + os=-linux
  14160. + ;;
  14161. + blackfin-*)
  14162. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  14163. + os=-linux
  14164. + ;;
  14165. + bluegene*)
  14166. + basic_machine=powerpc-ibm
  14167. + os=-cnk
  14168. + ;;
  14169. c90)
  14170. basic_machine=c90-cray
  14171. os=-unicos
  14172. ;;
  14173. + cegcc)
  14174. + basic_machine=arm-unknown
  14175. + os=-cegcc
  14176. + ;;
  14177. convex-c1)
  14178. basic_machine=c1-convex
  14179. os=-bsd
  14180. @@ -475,8 +510,8 @@
  14181. basic_machine=craynv-cray
  14182. os=-unicosmp
  14183. ;;
  14184. - cr16c)
  14185. - basic_machine=cr16c-unknown
  14186. + cr16)
  14187. + basic_machine=cr16-unknown
  14188. os=-elf
  14189. ;;
  14190. crds | unos)
  14191. @@ -514,6 +549,10 @@
  14192. basic_machine=m88k-motorola
  14193. os=-sysv3
  14194. ;;
  14195. + dicos)
  14196. + basic_machine=i686-pc
  14197. + os=-dicos
  14198. + ;;
  14199. djgpp)
  14200. basic_machine=i586-pc
  14201. os=-msdosdjgpp
  14202. @@ -668,6 +707,14 @@
  14203. basic_machine=m68k-isi
  14204. os=-sysv
  14205. ;;
  14206. + m68knommu)
  14207. + basic_machine=m68k-unknown
  14208. + os=-linux
  14209. + ;;
  14210. + m68knommu-*)
  14211. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  14212. + os=-linux
  14213. + ;;
  14214. m88k-omron*)
  14215. basic_machine=m88k-omron
  14216. ;;
  14217. @@ -683,6 +730,10 @@
  14218. basic_machine=i386-pc
  14219. os=-mingw32
  14220. ;;
  14221. + mingw32ce)
  14222. + basic_machine=arm-unknown
  14223. + os=-mingw32ce
  14224. + ;;
  14225. miniframe)
  14226. basic_machine=m68000-convergent
  14227. ;;
  14228. @@ -809,6 +860,14 @@
  14229. basic_machine=i860-intel
  14230. os=-osf
  14231. ;;
  14232. + parisc)
  14233. + basic_machine=hppa-unknown
  14234. + os=-linux
  14235. + ;;
  14236. + parisc-*)
  14237. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  14238. + os=-linux
  14239. + ;;
  14240. pbd)
  14241. basic_machine=sparc-tti
  14242. ;;
  14243. @@ -925,6 +984,9 @@
  14244. basic_machine=sh-hitachi
  14245. os=-hms
  14246. ;;
  14247. + sh5el)
  14248. + basic_machine=sh5le-unknown
  14249. + ;;
  14250. sh64)
  14251. basic_machine=sh64-unknown
  14252. ;;
  14253. @@ -1014,6 +1076,10 @@
  14254. basic_machine=tic6x-unknown
  14255. os=-coff
  14256. ;;
  14257. + tile*)
  14258. + basic_machine=tile-unknown
  14259. + os=-linux-gnu
  14260. + ;;
  14261. tx39)
  14262. basic_machine=mipstx39-unknown
  14263. ;;
  14264. @@ -1089,6 +1155,10 @@
  14265. basic_machine=z8k-unknown
  14266. os=-sim
  14267. ;;
  14268. + z80-*-coff)
  14269. + basic_machine=z80-unknown
  14270. + os=-sim
  14271. + ;;
  14272. none)
  14273. basic_machine=none-none
  14274. os=-none
  14275. @@ -1127,7 +1197,7 @@
  14276. we32k)
  14277. basic_machine=we32k-att
  14278. ;;
  14279. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  14280. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  14281. basic_machine=sh-unknown
  14282. ;;
  14283. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  14284. @@ -1197,10 +1267,11 @@
  14285. # Each alternative MUST END IN A *, to match a version number.
  14286. # -sysv* is not here because it comes later, after sysvr4.
  14287. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  14288. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  14289. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  14290. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  14291. + | -kopensolaris* \
  14292. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  14293. - | -aos* \
  14294. + | -aos* | -aros* \
  14295. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  14296. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  14297. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  14298. @@ -1209,7 +1280,7 @@
  14299. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  14300. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  14301. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  14302. - | -chorusos* | -chorusrdb* \
  14303. + | -chorusos* | -chorusrdb* | -cegcc* \
  14304. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  14305. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  14306. | -uxpv* | -beos* | -mpeix* | -udk* \
  14307. @@ -1219,7 +1290,7 @@
  14308. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  14309. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  14310. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  14311. - | -skyos* | -haiku* | -rdos* | -toppers*)
  14312. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  14313. # Remember, each alternative MUST END IN *, to match a version number.
  14314. ;;
  14315. -qnx*)
  14316. @@ -1349,6 +1420,9 @@
  14317. -zvmoe)
  14318. os=-zvmoe
  14319. ;;
  14320. + -dicos*)
  14321. + os=-dicos
  14322. + ;;
  14323. -none)
  14324. ;;
  14325. *)
  14326. @@ -1414,6 +1488,9 @@
  14327. m68*-cisco)
  14328. os=-aout
  14329. ;;
  14330. + mep-*)
  14331. + os=-elf
  14332. + ;;
  14333. mips*-cisco)
  14334. os=-elf
  14335. ;;
  14336. @@ -1543,7 +1620,7 @@
  14337. -sunos*)
  14338. vendor=sun
  14339. ;;
  14340. - -aix*)
  14341. + -cnk*|-aix*)
  14342. vendor=ibm
  14343. ;;
  14344. -beos*)
  14345. diff -Nur libvorbis-1.2.0.orig/configure libvorbis-1.2.0/configure
  14346. --- libvorbis-1.2.0.orig/configure 2007-07-25 18:46:37.000000000 +0200
  14347. +++ libvorbis-1.2.0/configure 2011-02-17 18:30:19.943562911 +0100
  14348. @@ -1,60 +1,83 @@
  14349. #! /bin/sh
  14350. # Guess values for system-dependent variables and create Makefiles.
  14351. -# Generated by GNU Autoconf 2.61.
  14352. +# Generated by GNU Autoconf 2.65.
  14353. +#
  14354. #
  14355. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  14356. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  14357. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  14358. +# Inc.
  14359. +#
  14360. +#
  14361. # This configure script is free software; the Free Software Foundation
  14362. # gives unlimited permission to copy, distribute and modify it.
  14363. -## --------------------- ##
  14364. -## M4sh Initialization. ##
  14365. -## --------------------- ##
  14366. +## -------------------- ##
  14367. +## M4sh Initialization. ##
  14368. +## -------------------- ##
  14369. # Be more Bourne compatible
  14370. DUALCASE=1; export DUALCASE # for MKS sh
  14371. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14372. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14373. emulate sh
  14374. NULLCMD=:
  14375. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  14376. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14377. # is contrary to our usage. Disable this feature.
  14378. alias -g '${1+"$@"}'='"$@"'
  14379. setopt NO_GLOB_SUBST
  14380. else
  14381. - case `(set -o) 2>/dev/null` in
  14382. - *posix*) set -o posix ;;
  14383. + case `(set -o) 2>/dev/null` in #(
  14384. + *posix*) :
  14385. + set -o posix ;; #(
  14386. + *) :
  14387. + ;;
  14388. esac
  14389. -
  14390. fi
  14391. -
  14392. -
  14393. -# PATH needs CR
  14394. -# Avoid depending upon Character Ranges.
  14395. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14396. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14397. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14398. -as_cr_digits='0123456789'
  14399. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  14400. -
  14401. -# The user is always right.
  14402. -if test "${PATH_SEPARATOR+set}" != set; then
  14403. - echo "#! /bin/sh" >conf$$.sh
  14404. - echo "exit 0" >>conf$$.sh
  14405. - chmod +x conf$$.sh
  14406. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14407. - PATH_SEPARATOR=';'
  14408. - else
  14409. - PATH_SEPARATOR=:
  14410. +as_nl='
  14411. +'
  14412. +export as_nl
  14413. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  14414. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14415. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14416. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14417. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  14418. +# but without wasting forks for bash or zsh.
  14419. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  14420. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14421. + as_echo='print -r --'
  14422. + as_echo_n='print -rn --'
  14423. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14424. + as_echo='printf %s\n'
  14425. + as_echo_n='printf %s'
  14426. +else
  14427. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14428. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14429. + as_echo_n='/usr/ucb/echo -n'
  14430. + else
  14431. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14432. + as_echo_n_body='eval
  14433. + arg=$1;
  14434. + case $arg in #(
  14435. + *"$as_nl"*)
  14436. + expr "X$arg" : "X\\(.*\\)$as_nl";
  14437. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14438. + esac;
  14439. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14440. + '
  14441. + export as_echo_n_body
  14442. + as_echo_n='sh -c $as_echo_n_body as_echo'
  14443. fi
  14444. - rm -f conf$$.sh
  14445. + export as_echo_body
  14446. + as_echo='sh -c $as_echo_body as_echo'
  14447. fi
  14448. -# Support unset when possible.
  14449. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14450. - as_unset=unset
  14451. -else
  14452. - as_unset=false
  14453. +# The user is always right.
  14454. +if test "${PATH_SEPARATOR+set}" != set; then
  14455. + PATH_SEPARATOR=:
  14456. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14457. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14458. + PATH_SEPARATOR=';'
  14459. + }
  14460. fi
  14461. @@ -63,20 +86,18 @@
  14462. # there to prevent editors from complaining about space-tab.
  14463. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14464. # splitting by setting IFS to empty value.)
  14465. -as_nl='
  14466. -'
  14467. IFS=" "" $as_nl"
  14468. # Find who we are. Look in the path if we contain no directory separator.
  14469. -case $0 in
  14470. +case $0 in #((
  14471. *[\\/]* ) as_myself=$0 ;;
  14472. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14473. for as_dir in $PATH
  14474. do
  14475. IFS=$as_save_IFS
  14476. test -z "$as_dir" && as_dir=.
  14477. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14478. -done
  14479. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14480. + done
  14481. IFS=$as_save_IFS
  14482. ;;
  14483. @@ -87,32 +108,270 @@
  14484. as_myself=$0
  14485. fi
  14486. if test ! -f "$as_myself"; then
  14487. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14488. - { (exit 1); exit 1; }
  14489. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14490. + exit 1
  14491. fi
  14492. -# Work around bugs in pre-3.0 UWIN ksh.
  14493. -for as_var in ENV MAIL MAILPATH
  14494. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14495. +# Unset variables that we do not need and which cause bugs (e.g. in
  14496. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14497. +# suppresses any "Segmentation fault" message there. '((' could
  14498. +# trigger a bug in pdksh 5.2.14.
  14499. +for as_var in BASH_ENV ENV MAIL MAILPATH
  14500. +do eval test x\${$as_var+set} = xset \
  14501. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14502. done
  14503. PS1='$ '
  14504. PS2='> '
  14505. PS4='+ '
  14506. # NLS nuisances.
  14507. -for as_var in \
  14508. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  14509. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  14510. - LC_TELEPHONE LC_TIME
  14511. +LC_ALL=C
  14512. +export LC_ALL
  14513. +LANGUAGE=C
  14514. +export LANGUAGE
  14515. +
  14516. +# CDPATH.
  14517. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14518. +
  14519. +if test "x$CONFIG_SHELL" = x; then
  14520. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  14521. + emulate sh
  14522. + NULLCMD=:
  14523. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  14524. + # is contrary to our usage. Disable this feature.
  14525. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  14526. + setopt NO_GLOB_SUBST
  14527. +else
  14528. + case \`(set -o) 2>/dev/null\` in #(
  14529. + *posix*) :
  14530. + set -o posix ;; #(
  14531. + *) :
  14532. + ;;
  14533. +esac
  14534. +fi
  14535. +"
  14536. + as_required="as_fn_return () { (exit \$1); }
  14537. +as_fn_success () { as_fn_return 0; }
  14538. +as_fn_failure () { as_fn_return 1; }
  14539. +as_fn_ret_success () { return 0; }
  14540. +as_fn_ret_failure () { return 1; }
  14541. +
  14542. +exitcode=0
  14543. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  14544. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  14545. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  14546. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  14547. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  14548. +
  14549. +else
  14550. + exitcode=1; echo positional parameters were not saved.
  14551. +fi
  14552. +test x\$exitcode = x0 || exit 1"
  14553. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  14554. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  14555. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  14556. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  14557. +test \$(( 1 + 1 )) = 2 || exit 1"
  14558. + if (eval "$as_required") 2>/dev/null; then :
  14559. + as_have_required=yes
  14560. +else
  14561. + as_have_required=no
  14562. +fi
  14563. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  14564. +
  14565. +else
  14566. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14567. +as_found=false
  14568. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14569. do
  14570. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  14571. - eval $as_var=C; export $as_var
  14572. - else
  14573. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14574. - fi
  14575. + IFS=$as_save_IFS
  14576. + test -z "$as_dir" && as_dir=.
  14577. + as_found=:
  14578. + case $as_dir in #(
  14579. + /*)
  14580. + for as_base in sh bash ksh sh5; do
  14581. + # Try only shells that exist, to save several forks.
  14582. + as_shell=$as_dir/$as_base
  14583. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  14584. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14585. + CONFIG_SHELL=$as_shell as_have_required=yes
  14586. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14587. + break 2
  14588. +fi
  14589. +fi
  14590. + done;;
  14591. + esac
  14592. + as_found=false
  14593. done
  14594. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  14595. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  14596. + CONFIG_SHELL=$SHELL as_have_required=yes
  14597. +fi; }
  14598. +IFS=$as_save_IFS
  14599. +
  14600. +
  14601. + if test "x$CONFIG_SHELL" != x; then :
  14602. + # We cannot yet assume a decent shell, so we have to provide a
  14603. + # neutralization value for shells without unset; and this also
  14604. + # works around shells that cannot unset nonexistent variables.
  14605. + BASH_ENV=/dev/null
  14606. + ENV=/dev/null
  14607. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  14608. + export CONFIG_SHELL
  14609. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  14610. +fi
  14611. +
  14612. + if test x$as_have_required = xno; then :
  14613. + $as_echo "$0: This script requires a shell more modern than all"
  14614. + $as_echo "$0: the shells that I found on your system."
  14615. + if test x${ZSH_VERSION+set} = xset ; then
  14616. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  14617. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  14618. + else
  14619. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  14620. +$0: including any error possibly output before this
  14621. +$0: message. Then install a modern shell, or manually run
  14622. +$0: the script under such a shell if you do have one."
  14623. + fi
  14624. + exit 1
  14625. +fi
  14626. +fi
  14627. +fi
  14628. +SHELL=${CONFIG_SHELL-/bin/sh}
  14629. +export SHELL
  14630. +# Unset more variables known to interfere with behavior of common tools.
  14631. +CLICOLOR_FORCE= GREP_OPTIONS=
  14632. +unset CLICOLOR_FORCE GREP_OPTIONS
  14633. +
  14634. +## --------------------- ##
  14635. +## M4sh Shell Functions. ##
  14636. +## --------------------- ##
  14637. +# as_fn_unset VAR
  14638. +# ---------------
  14639. +# Portably unset VAR.
  14640. +as_fn_unset ()
  14641. +{
  14642. + { eval $1=; unset $1;}
  14643. +}
  14644. +as_unset=as_fn_unset
  14645. +
  14646. +# as_fn_set_status STATUS
  14647. +# -----------------------
  14648. +# Set $? to STATUS, without forking.
  14649. +as_fn_set_status ()
  14650. +{
  14651. + return $1
  14652. +} # as_fn_set_status
  14653. +
  14654. +# as_fn_exit STATUS
  14655. +# -----------------
  14656. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14657. +as_fn_exit ()
  14658. +{
  14659. + set +e
  14660. + as_fn_set_status $1
  14661. + exit $1
  14662. +} # as_fn_exit
  14663. +
  14664. +# as_fn_mkdir_p
  14665. +# -------------
  14666. +# Create "$as_dir" as a directory, including parents if necessary.
  14667. +as_fn_mkdir_p ()
  14668. +{
  14669. +
  14670. + case $as_dir in #(
  14671. + -*) as_dir=./$as_dir;;
  14672. + esac
  14673. + test -d "$as_dir" || eval $as_mkdir_p || {
  14674. + as_dirs=
  14675. + while :; do
  14676. + case $as_dir in #(
  14677. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14678. + *) as_qdir=$as_dir;;
  14679. + esac
  14680. + as_dirs="'$as_qdir' $as_dirs"
  14681. + as_dir=`$as_dirname -- "$as_dir" ||
  14682. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14683. + X"$as_dir" : 'X\(//\)[^/]' \| \
  14684. + X"$as_dir" : 'X\(//\)$' \| \
  14685. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14686. +$as_echo X"$as_dir" |
  14687. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14688. + s//\1/
  14689. + q
  14690. + }
  14691. + /^X\(\/\/\)[^/].*/{
  14692. + s//\1/
  14693. + q
  14694. + }
  14695. + /^X\(\/\/\)$/{
  14696. + s//\1/
  14697. + q
  14698. + }
  14699. + /^X\(\/\).*/{
  14700. + s//\1/
  14701. + q
  14702. + }
  14703. + s/.*/./; q'`
  14704. + test -d "$as_dir" && break
  14705. + done
  14706. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  14707. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14708. +
  14709. +
  14710. +} # as_fn_mkdir_p
  14711. +# as_fn_append VAR VALUE
  14712. +# ----------------------
  14713. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  14714. +# advantage of any shell optimizations that allow amortized linear growth over
  14715. +# repeated appends, instead of the typical quadratic growth present in naive
  14716. +# implementations.
  14717. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14718. + eval 'as_fn_append ()
  14719. + {
  14720. + eval $1+=\$2
  14721. + }'
  14722. +else
  14723. + as_fn_append ()
  14724. + {
  14725. + eval $1=\$$1\$2
  14726. + }
  14727. +fi # as_fn_append
  14728. +
  14729. +# as_fn_arith ARG...
  14730. +# ------------------
  14731. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  14732. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  14733. +# must be portable across $(()) and expr.
  14734. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14735. + eval 'as_fn_arith ()
  14736. + {
  14737. + as_val=$(( $* ))
  14738. + }'
  14739. +else
  14740. + as_fn_arith ()
  14741. + {
  14742. + as_val=`expr "$@" || test $? -eq 1`
  14743. + }
  14744. +fi # as_fn_arith
  14745. +
  14746. +
  14747. +# as_fn_error ERROR [LINENO LOG_FD]
  14748. +# ---------------------------------
  14749. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14750. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14751. +# script with status $?, using 1 if that was 0.
  14752. +as_fn_error ()
  14753. +{
  14754. + as_status=$?; test $as_status -eq 0 && as_status=1
  14755. + if test "$3"; then
  14756. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14757. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14758. + fi
  14759. + $as_echo "$as_me: error: $1" >&2
  14760. + as_fn_exit $as_status
  14761. +} # as_fn_error
  14762. -# Required to use basename.
  14763. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14764. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14765. as_expr=expr
  14766. @@ -126,13 +385,17 @@
  14767. as_basename=false
  14768. fi
  14769. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14770. + as_dirname=dirname
  14771. +else
  14772. + as_dirname=false
  14773. +fi
  14774. -# Name of the executable.
  14775. as_me=`$as_basename -- "$0" ||
  14776. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14777. X"$0" : 'X\(//\)$' \| \
  14778. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14779. -echo X/"$0" |
  14780. +$as_echo X/"$0" |
  14781. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14782. s//\1/
  14783. q
  14784. @@ -147,428 +410,142 @@
  14785. }
  14786. s/.*/./; q'`
  14787. -# CDPATH.
  14788. -$as_unset CDPATH
  14789. +# Avoid depending upon Character Ranges.
  14790. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14791. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14792. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14793. +as_cr_digits='0123456789'
  14794. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  14795. -if test "x$CONFIG_SHELL" = x; then
  14796. - if (eval ":") 2>/dev/null; then
  14797. - as_have_required=yes
  14798. -else
  14799. - as_have_required=no
  14800. -fi
  14801. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  14802. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  14803. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  14804. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  14805. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  14806. + sed -n '
  14807. + p
  14808. + /[$]LINENO/=
  14809. + ' <$as_myself |
  14810. + sed '
  14811. + s/[$]LINENO.*/&-/
  14812. + t lineno
  14813. + b
  14814. + :lineno
  14815. + N
  14816. + :loop
  14817. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  14818. + t loop
  14819. + s/-\n.*//
  14820. + ' >$as_me.lineno &&
  14821. + chmod +x "$as_me.lineno" ||
  14822. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  14823. - if test $as_have_required = yes && (eval ":
  14824. -(as_func_return () {
  14825. - (exit \$1)
  14826. -}
  14827. -as_func_success () {
  14828. - as_func_return 0
  14829. -}
  14830. -as_func_failure () {
  14831. - as_func_return 1
  14832. -}
  14833. -as_func_ret_success () {
  14834. - return 0
  14835. -}
  14836. -as_func_ret_failure () {
  14837. - return 1
  14838. + # Don't try to exec as it changes $[0], causing all sort of problems
  14839. + # (the dirname of $[0] is not the place where we might find the
  14840. + # original and so on. Autoconf is especially sensitive to this).
  14841. + . "./$as_me.lineno"
  14842. + # Exit status is that of the last command.
  14843. + exit
  14844. }
  14845. -exitcode=0
  14846. -if as_func_success; then
  14847. - :
  14848. -else
  14849. - exitcode=1
  14850. - echo as_func_success failed.
  14851. -fi
  14852. +ECHO_C= ECHO_N= ECHO_T=
  14853. +case `echo -n x` in #(((((
  14854. +-n*)
  14855. + case `echo 'xy\c'` in
  14856. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14857. + xy) ECHO_C='\c';;
  14858. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14859. + ECHO_T=' ';;
  14860. + esac;;
  14861. +*)
  14862. + ECHO_N='-n';;
  14863. +esac
  14864. -if as_func_failure; then
  14865. - exitcode=1
  14866. - echo as_func_failure succeeded.
  14867. +rm -f conf$$ conf$$.exe conf$$.file
  14868. +if test -d conf$$.dir; then
  14869. + rm -f conf$$.dir/conf$$.file
  14870. +else
  14871. + rm -f conf$$.dir
  14872. + mkdir conf$$.dir 2>/dev/null
  14873. fi
  14874. -
  14875. -if as_func_ret_success; then
  14876. - :
  14877. +if (echo >conf$$.file) 2>/dev/null; then
  14878. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  14879. + as_ln_s='ln -s'
  14880. + # ... but there are two gotchas:
  14881. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14882. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14883. + # In both cases, we have to default to `cp -p'.
  14884. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14885. + as_ln_s='cp -p'
  14886. + elif ln conf$$.file conf$$ 2>/dev/null; then
  14887. + as_ln_s=ln
  14888. + else
  14889. + as_ln_s='cp -p'
  14890. + fi
  14891. else
  14892. - exitcode=1
  14893. - echo as_func_ret_success failed.
  14894. + as_ln_s='cp -p'
  14895. fi
  14896. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14897. +rmdir conf$$.dir 2>/dev/null
  14898. -if as_func_ret_failure; then
  14899. - exitcode=1
  14900. - echo as_func_ret_failure succeeded.
  14901. +if mkdir -p . 2>/dev/null; then
  14902. + as_mkdir_p='mkdir -p "$as_dir"'
  14903. +else
  14904. + test -d ./-p && rmdir ./-p
  14905. + as_mkdir_p=false
  14906. fi
  14907. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  14908. - :
  14909. +if test -x / >/dev/null 2>&1; then
  14910. + as_test_x='test -x'
  14911. else
  14912. - exitcode=1
  14913. - echo positional parameters were not saved.
  14914. + if ls -dL / >/dev/null 2>&1; then
  14915. + as_ls_L_option=L
  14916. + else
  14917. + as_ls_L_option=
  14918. + fi
  14919. + as_test_x='
  14920. + eval sh -c '\''
  14921. + if test -d "$1"; then
  14922. + test -d "$1/.";
  14923. + else
  14924. + case $1 in #(
  14925. + -*)set "./$1";;
  14926. + esac;
  14927. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14928. + ???[sx]*):;;*)false;;esac;fi
  14929. + '\'' sh
  14930. + '
  14931. fi
  14932. +as_executable_p=$as_test_x
  14933. -test \$exitcode = 0) || { (exit 1); exit 1; }
  14934. -
  14935. -(
  14936. - as_lineno_1=\$LINENO
  14937. - as_lineno_2=\$LINENO
  14938. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  14939. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  14940. -") 2> /dev/null; then
  14941. - :
  14942. -else
  14943. - as_candidate_shells=
  14944. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14945. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14946. -do
  14947. - IFS=$as_save_IFS
  14948. - test -z "$as_dir" && as_dir=.
  14949. - case $as_dir in
  14950. - /*)
  14951. - for as_base in sh bash ksh sh5; do
  14952. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  14953. - done;;
  14954. - esac
  14955. -done
  14956. -IFS=$as_save_IFS
  14957. +# Sed expression to map a string onto a valid CPP name.
  14958. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14959. +# Sed expression to map a string onto a valid variable name.
  14960. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14961. - for as_shell in $as_candidate_shells $SHELL; do
  14962. - # Try only shells that exist, to save several forks.
  14963. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  14964. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  14965. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14966. - emulate sh
  14967. - NULLCMD=:
  14968. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  14969. - # is contrary to our usage. Disable this feature.
  14970. - alias -g '${1+"$@"}'='"$@"'
  14971. - setopt NO_GLOB_SUBST
  14972. -else
  14973. - case `(set -o) 2>/dev/null` in
  14974. - *posix*) set -o posix ;;
  14975. -esac
  14976. -fi
  14977. +# Check that we are running under the correct shell.
  14978. +SHELL=${CONFIG_SHELL-/bin/sh}
  14979. -:
  14980. -_ASEOF
  14981. -}; then
  14982. - CONFIG_SHELL=$as_shell
  14983. - as_have_required=yes
  14984. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  14985. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14986. - emulate sh
  14987. - NULLCMD=:
  14988. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  14989. - # is contrary to our usage. Disable this feature.
  14990. - alias -g '${1+"$@"}'='"$@"'
  14991. - setopt NO_GLOB_SUBST
  14992. -else
  14993. - case `(set -o) 2>/dev/null` in
  14994. - *posix*) set -o posix ;;
  14995. +case X$lt_ECHO in
  14996. +X*--fallback-echo)
  14997. + # Remove one level of quotation (which was required for Make).
  14998. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  14999. + ;;
  15000. esac
  15001. -fi
  15002. -
  15003. -
  15004. -:
  15005. -(as_func_return () {
  15006. - (exit $1)
  15007. -}
  15008. -as_func_success () {
  15009. - as_func_return 0
  15010. -}
  15011. -as_func_failure () {
  15012. - as_func_return 1
  15013. -}
  15014. -as_func_ret_success () {
  15015. - return 0
  15016. -}
  15017. -as_func_ret_failure () {
  15018. - return 1
  15019. -}
  15020. -
  15021. -exitcode=0
  15022. -if as_func_success; then
  15023. - :
  15024. -else
  15025. - exitcode=1
  15026. - echo as_func_success failed.
  15027. -fi
  15028. -
  15029. -if as_func_failure; then
  15030. - exitcode=1
  15031. - echo as_func_failure succeeded.
  15032. -fi
  15033. -
  15034. -if as_func_ret_success; then
  15035. - :
  15036. -else
  15037. - exitcode=1
  15038. - echo as_func_ret_success failed.
  15039. -fi
  15040. -
  15041. -if as_func_ret_failure; then
  15042. - exitcode=1
  15043. - echo as_func_ret_failure succeeded.
  15044. -fi
  15045. -
  15046. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  15047. - :
  15048. -else
  15049. - exitcode=1
  15050. - echo positional parameters were not saved.
  15051. -fi
  15052. -
  15053. -test $exitcode = 0) || { (exit 1); exit 1; }
  15054. -
  15055. -(
  15056. - as_lineno_1=$LINENO
  15057. - as_lineno_2=$LINENO
  15058. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15059. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  15060. -
  15061. -_ASEOF
  15062. -}; then
  15063. - break
  15064. -fi
  15065. -
  15066. -fi
  15067. -
  15068. - done
  15069. -
  15070. - if test "x$CONFIG_SHELL" != x; then
  15071. - for as_var in BASH_ENV ENV
  15072. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15073. - done
  15074. - export CONFIG_SHELL
  15075. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  15076. -fi
  15077. -
  15078. -
  15079. - if test $as_have_required = no; then
  15080. - echo This script requires a shell more modern than all the
  15081. - echo shells that I found on your system. Please install a
  15082. - echo modern shell, or manually run the script under such a
  15083. - echo shell if you do have one.
  15084. - { (exit 1); exit 1; }
  15085. -fi
  15086. -
  15087. -
  15088. -fi
  15089. -
  15090. -fi
  15091. -
  15092. -
  15093. -
  15094. -(eval "as_func_return () {
  15095. - (exit \$1)
  15096. -}
  15097. -as_func_success () {
  15098. - as_func_return 0
  15099. -}
  15100. -as_func_failure () {
  15101. - as_func_return 1
  15102. -}
  15103. -as_func_ret_success () {
  15104. - return 0
  15105. -}
  15106. -as_func_ret_failure () {
  15107. - return 1
  15108. -}
  15109. -
  15110. -exitcode=0
  15111. -if as_func_success; then
  15112. - :
  15113. -else
  15114. - exitcode=1
  15115. - echo as_func_success failed.
  15116. -fi
  15117. -
  15118. -if as_func_failure; then
  15119. - exitcode=1
  15120. - echo as_func_failure succeeded.
  15121. -fi
  15122. -
  15123. -if as_func_ret_success; then
  15124. - :
  15125. -else
  15126. - exitcode=1
  15127. - echo as_func_ret_success failed.
  15128. -fi
  15129. -
  15130. -if as_func_ret_failure; then
  15131. - exitcode=1
  15132. - echo as_func_ret_failure succeeded.
  15133. -fi
  15134. -
  15135. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  15136. - :
  15137. -else
  15138. - exitcode=1
  15139. - echo positional parameters were not saved.
  15140. -fi
  15141. -
  15142. -test \$exitcode = 0") || {
  15143. - echo No shell found that supports shell functions.
  15144. - echo Please tell autoconf@gnu.org about your system,
  15145. - echo including any error possibly output before this
  15146. - echo message
  15147. -}
  15148. -
  15149. -
  15150. -
  15151. - as_lineno_1=$LINENO
  15152. - as_lineno_2=$LINENO
  15153. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  15154. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15155. -
  15156. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15157. - # uniformly replaced by the line number. The first 'sed' inserts a
  15158. - # line-number line after each line using $LINENO; the second 'sed'
  15159. - # does the real work. The second script uses 'N' to pair each
  15160. - # line-number line with the line containing $LINENO, and appends
  15161. - # trailing '-' during substitution so that $LINENO is not a special
  15162. - # case at line end.
  15163. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15164. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  15165. - # E. McMahon (1931-1989) for sed's syntax. :-)
  15166. - sed -n '
  15167. - p
  15168. - /[$]LINENO/=
  15169. - ' <$as_myself |
  15170. - sed '
  15171. - s/[$]LINENO.*/&-/
  15172. - t lineno
  15173. - b
  15174. - :lineno
  15175. - N
  15176. - :loop
  15177. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15178. - t loop
  15179. - s/-\n.*//
  15180. - ' >$as_me.lineno &&
  15181. - chmod +x "$as_me.lineno" ||
  15182. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15183. - { (exit 1); exit 1; }; }
  15184. -
  15185. - # Don't try to exec as it changes $[0], causing all sort of problems
  15186. - # (the dirname of $[0] is not the place where we might find the
  15187. - # original and so on. Autoconf is especially sensitive to this).
  15188. - . "./$as_me.lineno"
  15189. - # Exit status is that of the last command.
  15190. - exit
  15191. -}
  15192. -
  15193. -
  15194. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15195. - as_dirname=dirname
  15196. -else
  15197. - as_dirname=false
  15198. -fi
  15199. -
  15200. -ECHO_C= ECHO_N= ECHO_T=
  15201. -case `echo -n x` in
  15202. --n*)
  15203. - case `echo 'x\c'` in
  15204. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15205. - *) ECHO_C='\c';;
  15206. - esac;;
  15207. -*)
  15208. - ECHO_N='-n';;
  15209. -esac
  15210. -
  15211. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  15212. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15213. - as_expr=expr
  15214. -else
  15215. - as_expr=false
  15216. -fi
  15217. -
  15218. -rm -f conf$$ conf$$.exe conf$$.file
  15219. -if test -d conf$$.dir; then
  15220. - rm -f conf$$.dir/conf$$.file
  15221. -else
  15222. - rm -f conf$$.dir
  15223. - mkdir conf$$.dir
  15224. -fi
  15225. -echo >conf$$.file
  15226. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  15227. - as_ln_s='ln -s'
  15228. - # ... but there are two gotchas:
  15229. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15230. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15231. - # In both cases, we have to default to `cp -p'.
  15232. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15233. - as_ln_s='cp -p'
  15234. -elif ln conf$$.file conf$$ 2>/dev/null; then
  15235. - as_ln_s=ln
  15236. -else
  15237. - as_ln_s='cp -p'
  15238. -fi
  15239. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15240. -rmdir conf$$.dir 2>/dev/null
  15241. -
  15242. -if mkdir -p . 2>/dev/null; then
  15243. - as_mkdir_p=:
  15244. -else
  15245. - test -d ./-p && rmdir ./-p
  15246. - as_mkdir_p=false
  15247. -fi
  15248. -
  15249. -if test -x / >/dev/null 2>&1; then
  15250. - as_test_x='test -x'
  15251. -else
  15252. - if ls -dL / >/dev/null 2>&1; then
  15253. - as_ls_L_option=L
  15254. - else
  15255. - as_ls_L_option=
  15256. - fi
  15257. - as_test_x='
  15258. - eval sh -c '\''
  15259. - if test -d "$1"; then
  15260. - test -d "$1/.";
  15261. - else
  15262. - case $1 in
  15263. - -*)set "./$1";;
  15264. - esac;
  15265. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  15266. - ???[sx]*):;;*)false;;esac;fi
  15267. - '\'' sh
  15268. - '
  15269. -fi
  15270. -as_executable_p=$as_test_x
  15271. -
  15272. -# Sed expression to map a string onto a valid CPP name.
  15273. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15274. -
  15275. -# Sed expression to map a string onto a valid variable name.
  15276. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15277. -
  15278. -
  15279. -
  15280. -
  15281. -# Check that we are running under the correct shell.
  15282. -SHELL=${CONFIG_SHELL-/bin/sh}
  15283. -
  15284. -case X$ECHO in
  15285. -X*--fallback-echo)
  15286. - # Remove one level of quotation (which was required for Make).
  15287. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  15288. - ;;
  15289. -esac
  15290. -
  15291. -echo=${ECHO-echo}
  15292. +ECHO=${lt_ECHO-echo}
  15293. if test "X$1" = X--no-reexec; then
  15294. # Discard the --no-reexec flag, and continue.
  15295. shift
  15296. elif test "X$1" = X--fallback-echo; then
  15297. # Avoid inline document here, it may be left over
  15298. :
  15299. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  15300. - # Yippee, $echo works!
  15301. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  15302. + # Yippee, $ECHO works!
  15303. :
  15304. else
  15305. # Restart under the correct shell.
  15306. @@ -578,9 +555,9 @@
  15307. if test "X$1" = X--fallback-echo; then
  15308. # used as fallback echo
  15309. shift
  15310. - cat <<EOF
  15311. + cat <<_LT_EOF
  15312. $*
  15313. -EOF
  15314. +_LT_EOF
  15315. exit 0
  15316. fi
  15317. @@ -588,122 +565,118 @@
  15318. # if CDPATH is set.
  15319. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15320. -if test -z "$ECHO"; then
  15321. -if test "X${echo_test_string+set}" != Xset; then
  15322. -# find a string as large as possible, as long as the shell can cope with it
  15323. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15324. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15325. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  15326. - echo_test_string=`eval $cmd` &&
  15327. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  15328. - then
  15329. - break
  15330. - fi
  15331. - done
  15332. -fi
  15333. +if test -z "$lt_ECHO"; then
  15334. + if test "X${echo_test_string+set}" != Xset; then
  15335. + # find a string as large as possible, as long as the shell can cope with it
  15336. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  15337. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  15338. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  15339. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  15340. + then
  15341. + break
  15342. + fi
  15343. + done
  15344. + fi
  15345. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15346. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15347. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15348. - :
  15349. -else
  15350. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  15351. - # backslashes. This makes it impossible to quote backslashes using
  15352. - # echo "$something" | sed 's/\\/\\\\/g'
  15353. - #
  15354. - # So, first we look for a working echo in the user's PATH.
  15355. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15356. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15357. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15358. + :
  15359. + else
  15360. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  15361. + # backslashes. This makes it impossible to quote backslashes using
  15362. + # echo "$something" | sed 's/\\/\\\\/g'
  15363. + #
  15364. + # So, first we look for a working echo in the user's PATH.
  15365. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15366. - for dir in $PATH /usr/ucb; do
  15367. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15368. + for dir in $PATH /usr/ucb; do
  15369. + IFS="$lt_save_ifs"
  15370. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15371. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15372. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15373. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15374. + ECHO="$dir/echo"
  15375. + break
  15376. + fi
  15377. + done
  15378. IFS="$lt_save_ifs"
  15379. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  15380. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  15381. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  15382. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15383. - echo="$dir/echo"
  15384. - break
  15385. - fi
  15386. - done
  15387. - IFS="$lt_save_ifs"
  15388. - if test "X$echo" = Xecho; then
  15389. - # We didn't find a better echo, so look for alternatives.
  15390. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  15391. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  15392. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15393. - # This shell has a builtin print -r that does the trick.
  15394. - echo='print -r'
  15395. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  15396. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  15397. - # If we have ksh, try running configure again with it.
  15398. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15399. - export ORIGINAL_CONFIG_SHELL
  15400. - CONFIG_SHELL=/bin/ksh
  15401. - export CONFIG_SHELL
  15402. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15403. - else
  15404. - # Try using printf.
  15405. - echo='printf %s\n'
  15406. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  15407. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  15408. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15409. - # Cool, printf works
  15410. - :
  15411. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15412. - test "X$echo_testing_string" = 'X\t' &&
  15413. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15414. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15415. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15416. - export CONFIG_SHELL
  15417. - SHELL="$CONFIG_SHELL"
  15418. - export SHELL
  15419. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15420. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15421. - test "X$echo_testing_string" = 'X\t' &&
  15422. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15423. - test "X$echo_testing_string" = "X$echo_test_string"; then
  15424. - echo="$CONFIG_SHELL $0 --fallback-echo"
  15425. + if test "X$ECHO" = Xecho; then
  15426. + # We didn't find a better echo, so look for alternatives.
  15427. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  15428. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  15429. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15430. + # This shell has a builtin print -r that does the trick.
  15431. + ECHO='print -r'
  15432. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  15433. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  15434. + # If we have ksh, try running configure again with it.
  15435. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15436. + export ORIGINAL_CONFIG_SHELL
  15437. + CONFIG_SHELL=/bin/ksh
  15438. + export CONFIG_SHELL
  15439. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  15440. else
  15441. - # maybe with a smaller string...
  15442. - prev=:
  15443. + # Try using printf.
  15444. + ECHO='printf %s\n'
  15445. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  15446. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  15447. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15448. + # Cool, printf works
  15449. + :
  15450. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15451. + test "X$echo_testing_string" = 'X\t' &&
  15452. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15453. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15454. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  15455. + export CONFIG_SHELL
  15456. + SHELL="$CONFIG_SHELL"
  15457. + export SHELL
  15458. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15459. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  15460. + test "X$echo_testing_string" = 'X\t' &&
  15461. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  15462. + test "X$echo_testing_string" = "X$echo_test_string"; then
  15463. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  15464. + else
  15465. + # maybe with a smaller string...
  15466. + prev=:
  15467. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15468. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  15469. - then
  15470. - break
  15471. - fi
  15472. - prev="$cmd"
  15473. - done
  15474. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  15475. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  15476. + then
  15477. + break
  15478. + fi
  15479. + prev="$cmd"
  15480. + done
  15481. - if test "$prev" != 'sed 50q "$0"'; then
  15482. - echo_test_string=`eval $prev`
  15483. - export echo_test_string
  15484. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15485. - else
  15486. - # Oops. We lost completely, so just stick with echo.
  15487. - echo=echo
  15488. - fi
  15489. + if test "$prev" != 'sed 50q "$0"'; then
  15490. + echo_test_string=`eval $prev`
  15491. + export echo_test_string
  15492. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  15493. + else
  15494. + # Oops. We lost completely, so just stick with echo.
  15495. + ECHO=echo
  15496. + fi
  15497. + fi
  15498. fi
  15499. fi
  15500. fi
  15501. fi
  15502. -fi
  15503. # Copy echo and quote the copy suitably for passing to libtool from
  15504. # the Makefile, instead of quoting the original, which is used later.
  15505. -ECHO=$echo
  15506. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15507. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15508. +lt_ECHO=$ECHO
  15509. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  15510. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  15511. fi
  15512. -tagnames=${tagnames+${tagnames},}CXX
  15513. -
  15514. -tagnames=${tagnames+${tagnames},}F77
  15515. -
  15516. -exec 7<&0 </dev/null 6>&1
  15517. +test -n "$DJDIR" || exec 7<&0 </dev/null
  15518. +exec 6>&1
  15519. # Name of the host.
  15520. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  15521. @@ -721,7 +694,6 @@
  15522. subdirs=
  15523. MFLAGS=
  15524. MAKEFLAGS=
  15525. -SHELL=${CONFIG_SHELL-/bin/sh}
  15526. # Identity of this package.
  15527. PACKAGE_NAME=
  15528. @@ -729,6 +701,7 @@
  15529. PACKAGE_VERSION=
  15530. PACKAGE_STRING=
  15531. PACKAGE_BUGREPORT=
  15532. +PACKAGE_URL=
  15533. ac_unique_file="lib/mdct.c"
  15534. # Factoring default headers for most tests.
  15535. @@ -767,139 +740,161 @@
  15536. # include <unistd.h>
  15537. #endif"
  15538. -ac_subst_vars='SHELL
  15539. -PATH_SEPARATOR
  15540. -PACKAGE_NAME
  15541. -PACKAGE_TARNAME
  15542. -PACKAGE_VERSION
  15543. -PACKAGE_STRING
  15544. -PACKAGE_BUGREPORT
  15545. -exec_prefix
  15546. -prefix
  15547. -program_transform_name
  15548. -bindir
  15549. -sbindir
  15550. -libexecdir
  15551. -datarootdir
  15552. -datadir
  15553. -sysconfdir
  15554. -sharedstatedir
  15555. -localstatedir
  15556. -includedir
  15557. -oldincludedir
  15558. -docdir
  15559. -infodir
  15560. -htmldir
  15561. -dvidir
  15562. -pdfdir
  15563. -psdir
  15564. -libdir
  15565. -localedir
  15566. -mandir
  15567. -DEFS
  15568. -ECHO_C
  15569. -ECHO_N
  15570. -ECHO_T
  15571. -LIBS
  15572. -build_alias
  15573. -host_alias
  15574. -target_alias
  15575. -build
  15576. -build_cpu
  15577. -build_vendor
  15578. -build_os
  15579. -host
  15580. -host_cpu
  15581. -host_vendor
  15582. -host_os
  15583. -target
  15584. -target_cpu
  15585. -target_vendor
  15586. -target_os
  15587. -INSTALL_PROGRAM
  15588. -INSTALL_SCRIPT
  15589. -INSTALL_DATA
  15590. -am__isrc
  15591. -CYGPATH_W
  15592. -PACKAGE
  15593. -VERSION
  15594. -ACLOCAL
  15595. -AUTOCONF
  15596. -AUTOMAKE
  15597. -AUTOHEADER
  15598. -MAKEINFO
  15599. -install_sh
  15600. -STRIP
  15601. -INSTALL_STRIP_PROGRAM
  15602. -mkdir_p
  15603. -AWK
  15604. -SET_MAKE
  15605. -am__leading_dot
  15606. -AMTAR
  15607. -am__tar
  15608. -am__untar
  15609. -MAINTAINER_MODE_TRUE
  15610. -MAINTAINER_MODE_FALSE
  15611. -MAINT
  15612. -V_LIB_CURRENT
  15613. -V_LIB_REVISION
  15614. -V_LIB_AGE
  15615. -VF_LIB_CURRENT
  15616. -VF_LIB_REVISION
  15617. -VF_LIB_AGE
  15618. -VE_LIB_CURRENT
  15619. -VE_LIB_REVISION
  15620. -VE_LIB_AGE
  15621. -CC
  15622. -CFLAGS
  15623. -LDFLAGS
  15624. -CPPFLAGS
  15625. -ac_ct_CC
  15626. -EXEEXT
  15627. -OBJEXT
  15628. -DEPDIR
  15629. -am__include
  15630. -am__quote
  15631. -AMDEP_TRUE
  15632. -AMDEP_FALSE
  15633. -AMDEPBACKSLASH
  15634. -CCDEPMODE
  15635. -am__fastdepCC_TRUE
  15636. -am__fastdepCC_FALSE
  15637. -CPP
  15638. -GREP
  15639. -EGREP
  15640. -LN_S
  15641. -ECHO
  15642. -AR
  15643. +ac_subst_vars='am__EXEEXT_FALSE
  15644. +am__EXEEXT_TRUE
  15645. +LTLIBOBJS
  15646. +pthread_lib
  15647. +PROFILE
  15648. +DEBUG
  15649. +VORBIS_LIBS
  15650. +LIBOBJS
  15651. +ALLOCA
  15652. +OGG_LIBS
  15653. +OGG_CFLAGS
  15654. +PKG_CONFIG
  15655. +HAVE_PKG_CONFIG
  15656. +BUILD_DOCS_FALSE
  15657. +BUILD_DOCS_TRUE
  15658. +PDFXMLTEX
  15659. +XSLTPROC
  15660. +OTOOL64
  15661. +OTOOL
  15662. +LIPO
  15663. +NMEDIT
  15664. +DSYMUTIL
  15665. +lt_ECHO
  15666. RANLIB
  15667. -CXX
  15668. -CXXFLAGS
  15669. -ac_ct_CXX
  15670. -CXXDEPMODE
  15671. -am__fastdepCXX_TRUE
  15672. -am__fastdepCXX_FALSE
  15673. -CXXCPP
  15674. -F77
  15675. -FFLAGS
  15676. -ac_ct_F77
  15677. +AR
  15678. +OBJDUMP
  15679. +LN_S
  15680. +NM
  15681. +ac_ct_DUMPBIN
  15682. +DUMPBIN
  15683. +LD
  15684. +FGREP
  15685. +EGREP
  15686. +GREP
  15687. +SED
  15688. LIBTOOL
  15689. -XSLTPROC
  15690. -PDFXMLTEX
  15691. -BUILD_DOCS_TRUE
  15692. -BUILD_DOCS_FALSE
  15693. -HAVE_PKG_CONFIG
  15694. -PKG_CONFIG
  15695. -OGG_CFLAGS
  15696. -OGG_LIBS
  15697. -ALLOCA
  15698. -LIBOBJS
  15699. -VORBIS_LIBS
  15700. -DEBUG
  15701. -PROFILE
  15702. -pthread_lib
  15703. -LTLIBOBJS'
  15704. +CPP
  15705. +am__fastdepCC_FALSE
  15706. +am__fastdepCC_TRUE
  15707. +CCDEPMODE
  15708. +AMDEPBACKSLASH
  15709. +AMDEP_FALSE
  15710. +AMDEP_TRUE
  15711. +am__quote
  15712. +am__include
  15713. +DEPDIR
  15714. +OBJEXT
  15715. +EXEEXT
  15716. +ac_ct_CC
  15717. +CPPFLAGS
  15718. +LDFLAGS
  15719. +CFLAGS
  15720. +CC
  15721. +VE_LIB_AGE
  15722. +VE_LIB_REVISION
  15723. +VE_LIB_CURRENT
  15724. +VF_LIB_AGE
  15725. +VF_LIB_REVISION
  15726. +VF_LIB_CURRENT
  15727. +V_LIB_AGE
  15728. +V_LIB_REVISION
  15729. +V_LIB_CURRENT
  15730. +MAINT
  15731. +MAINTAINER_MODE_FALSE
  15732. +MAINTAINER_MODE_TRUE
  15733. +am__untar
  15734. +am__tar
  15735. +AMTAR
  15736. +am__leading_dot
  15737. +SET_MAKE
  15738. +AWK
  15739. +mkdir_p
  15740. +MKDIR_P
  15741. +INSTALL_STRIP_PROGRAM
  15742. +STRIP
  15743. +install_sh
  15744. +MAKEINFO
  15745. +AUTOHEADER
  15746. +AUTOMAKE
  15747. +AUTOCONF
  15748. +ACLOCAL
  15749. +VERSION
  15750. +PACKAGE
  15751. +CYGPATH_W
  15752. +am__isrc
  15753. +INSTALL_DATA
  15754. +INSTALL_SCRIPT
  15755. +INSTALL_PROGRAM
  15756. +target_os
  15757. +target_vendor
  15758. +target_cpu
  15759. +target
  15760. +host_os
  15761. +host_vendor
  15762. +host_cpu
  15763. +host
  15764. +build_os
  15765. +build_vendor
  15766. +build_cpu
  15767. +build
  15768. +target_alias
  15769. +host_alias
  15770. +build_alias
  15771. +LIBS
  15772. +ECHO_T
  15773. +ECHO_N
  15774. +ECHO_C
  15775. +DEFS
  15776. +mandir
  15777. +localedir
  15778. +libdir
  15779. +psdir
  15780. +pdfdir
  15781. +dvidir
  15782. +htmldir
  15783. +infodir
  15784. +docdir
  15785. +oldincludedir
  15786. +includedir
  15787. +localstatedir
  15788. +sharedstatedir
  15789. +sysconfdir
  15790. +datadir
  15791. +datarootdir
  15792. +libexecdir
  15793. +sbindir
  15794. +bindir
  15795. +program_transform_name
  15796. +prefix
  15797. +exec_prefix
  15798. +PACKAGE_URL
  15799. +PACKAGE_BUGREPORT
  15800. +PACKAGE_STRING
  15801. +PACKAGE_VERSION
  15802. +PACKAGE_TARNAME
  15803. +PACKAGE_NAME
  15804. +PATH_SEPARATOR
  15805. +SHELL'
  15806. ac_subst_files=''
  15807. +ac_user_opts='
  15808. +enable_option_checking
  15809. +enable_maintainer_mode
  15810. +enable_dependency_tracking
  15811. +enable_shared
  15812. +enable_static
  15813. +with_pic
  15814. +enable_fast_install
  15815. +with_gnu_ld
  15816. +enable_libtool_lock
  15817. +enable_docs
  15818. +with_ogg
  15819. +with_ogg_libraries
  15820. +with_ogg_includes
  15821. +enable_oggtest
  15822. +'
  15823. ac_precious_vars='build_alias
  15824. host_alias
  15825. target_alias
  15826. @@ -908,18 +903,14 @@
  15827. LDFLAGS
  15828. LIBS
  15829. CPPFLAGS
  15830. -CPP
  15831. -CXX
  15832. -CXXFLAGS
  15833. -CCC
  15834. -CXXCPP
  15835. -F77
  15836. -FFLAGS'
  15837. +CPP'
  15838. # Initialize some variables set by options.
  15839. ac_init_help=
  15840. ac_init_version=false
  15841. +ac_unrecognized_opts=
  15842. +ac_unrecognized_sep=
  15843. # The variables have the same names as the options, with
  15844. # dashes changed to underlines.
  15845. cache_file=/dev/null
  15846. @@ -1018,13 +1009,20 @@
  15847. datarootdir=$ac_optarg ;;
  15848. -disable-* | --disable-*)
  15849. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  15850. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  15851. # Reject names that are not valid shell variable names.
  15852. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  15853. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  15854. - { (exit 1); exit 1; }; }
  15855. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  15856. - eval enable_$ac_feature=no ;;
  15857. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15858. + as_fn_error "invalid feature name: $ac_useropt"
  15859. + ac_useropt_orig=$ac_useropt
  15860. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15861. + case $ac_user_opts in
  15862. + *"
  15863. +"enable_$ac_useropt"
  15864. +"*) ;;
  15865. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  15866. + ac_unrecognized_sep=', ';;
  15867. + esac
  15868. + eval enable_$ac_useropt=no ;;
  15869. -docdir | --docdir | --docdi | --doc | --do)
  15870. ac_prev=docdir ;;
  15871. @@ -1037,13 +1035,20 @@
  15872. dvidir=$ac_optarg ;;
  15873. -enable-* | --enable-*)
  15874. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  15875. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  15876. # Reject names that are not valid shell variable names.
  15877. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  15878. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  15879. - { (exit 1); exit 1; }; }
  15880. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  15881. - eval enable_$ac_feature=\$ac_optarg ;;
  15882. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15883. + as_fn_error "invalid feature name: $ac_useropt"
  15884. + ac_useropt_orig=$ac_useropt
  15885. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15886. + case $ac_user_opts in
  15887. + *"
  15888. +"enable_$ac_useropt"
  15889. +"*) ;;
  15890. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  15891. + ac_unrecognized_sep=', ';;
  15892. + esac
  15893. + eval enable_$ac_useropt=\$ac_optarg ;;
  15894. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  15895. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  15896. @@ -1234,22 +1239,36 @@
  15897. ac_init_version=: ;;
  15898. -with-* | --with-*)
  15899. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  15900. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  15901. # Reject names that are not valid shell variable names.
  15902. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  15903. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  15904. - { (exit 1); exit 1; }; }
  15905. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  15906. - eval with_$ac_package=\$ac_optarg ;;
  15907. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15908. + as_fn_error "invalid package name: $ac_useropt"
  15909. + ac_useropt_orig=$ac_useropt
  15910. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15911. + case $ac_user_opts in
  15912. + *"
  15913. +"with_$ac_useropt"
  15914. +"*) ;;
  15915. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  15916. + ac_unrecognized_sep=', ';;
  15917. + esac
  15918. + eval with_$ac_useropt=\$ac_optarg ;;
  15919. -without-* | --without-*)
  15920. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  15921. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  15922. # Reject names that are not valid shell variable names.
  15923. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  15924. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  15925. - { (exit 1); exit 1; }; }
  15926. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  15927. - eval with_$ac_package=no ;;
  15928. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15929. + as_fn_error "invalid package name: $ac_useropt"
  15930. + ac_useropt_orig=$ac_useropt
  15931. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15932. + case $ac_user_opts in
  15933. + *"
  15934. +"with_$ac_useropt"
  15935. +"*) ;;
  15936. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  15937. + ac_unrecognized_sep=', ';;
  15938. + esac
  15939. + eval with_$ac_useropt=no ;;
  15940. --x)
  15941. # Obsolete; use --with-x.
  15942. @@ -1269,25 +1288,25 @@
  15943. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  15944. x_libraries=$ac_optarg ;;
  15945. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  15946. -Try \`$0 --help' for more information." >&2
  15947. - { (exit 1); exit 1; }; }
  15948. + -*) as_fn_error "unrecognized option: \`$ac_option'
  15949. +Try \`$0 --help' for more information."
  15950. ;;
  15951. *=*)
  15952. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  15953. # Reject names that are not valid shell variable names.
  15954. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  15955. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  15956. - { (exit 1); exit 1; }; }
  15957. + case $ac_envvar in #(
  15958. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  15959. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  15960. + esac
  15961. eval $ac_envvar=\$ac_optarg
  15962. export $ac_envvar ;;
  15963. *)
  15964. # FIXME: should be removed in autoconf 3.0.
  15965. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  15966. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  15967. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  15968. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  15969. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  15970. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  15971. ;;
  15972. @@ -1296,23 +1315,36 @@
  15973. if test -n "$ac_prev"; then
  15974. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  15975. - { echo "$as_me: error: missing argument to $ac_option" >&2
  15976. - { (exit 1); exit 1; }; }
  15977. + as_fn_error "missing argument to $ac_option"
  15978. +fi
  15979. +
  15980. +if test -n "$ac_unrecognized_opts"; then
  15981. + case $enable_option_checking in
  15982. + no) ;;
  15983. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  15984. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  15985. + esac
  15986. fi
  15987. -# Be sure to have absolute directory names.
  15988. +# Check all directory arguments for consistency.
  15989. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  15990. datadir sysconfdir sharedstatedir localstatedir includedir \
  15991. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  15992. libdir localedir mandir
  15993. do
  15994. eval ac_val=\$$ac_var
  15995. + # Remove trailing slashes.
  15996. + case $ac_val in
  15997. + */ )
  15998. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  15999. + eval $ac_var=\$ac_val;;
  16000. + esac
  16001. + # Be sure to have absolute directory names.
  16002. case $ac_val in
  16003. [\\/$]* | ?:[\\/]* ) continue;;
  16004. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  16005. esac
  16006. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  16007. - { (exit 1); exit 1; }; }
  16008. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  16009. done
  16010. # There might be people who depend on the old broken behavior: `$host'
  16011. @@ -1326,7 +1358,7 @@
  16012. if test "x$host_alias" != x; then
  16013. if test "x$build_alias" = x; then
  16014. cross_compiling=maybe
  16015. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16016. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  16017. If a cross compiler is detected then cross compile mode will be used." >&2
  16018. elif test "x$build_alias" != "x$host_alias"; then
  16019. cross_compiling=yes
  16020. @@ -1342,23 +1374,21 @@
  16021. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  16022. ac_ls_di=`ls -di .` &&
  16023. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  16024. - { echo "$as_me: error: Working directory cannot be determined" >&2
  16025. - { (exit 1); exit 1; }; }
  16026. + as_fn_error "working directory cannot be determined"
  16027. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  16028. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  16029. - { (exit 1); exit 1; }; }
  16030. + as_fn_error "pwd does not report name of working directory"
  16031. # Find the source files, if location was not specified.
  16032. if test -z "$srcdir"; then
  16033. ac_srcdir_defaulted=yes
  16034. # Try the directory containing this script, then the parent directory.
  16035. - ac_confdir=`$as_dirname -- "$0" ||
  16036. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16037. - X"$0" : 'X\(//\)[^/]' \| \
  16038. - X"$0" : 'X\(//\)$' \| \
  16039. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16040. -echo X"$0" |
  16041. + ac_confdir=`$as_dirname -- "$as_myself" ||
  16042. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16043. + X"$as_myself" : 'X\(//\)[^/]' \| \
  16044. + X"$as_myself" : 'X\(//\)$' \| \
  16045. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  16046. +$as_echo X"$as_myself" |
  16047. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16048. s//\1/
  16049. q
  16050. @@ -1385,13 +1415,11 @@
  16051. fi
  16052. if test ! -r "$srcdir/$ac_unique_file"; then
  16053. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  16054. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  16055. - { (exit 1); exit 1; }; }
  16056. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  16057. fi
  16058. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  16059. ac_abs_confdir=`(
  16060. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  16061. - { (exit 1); exit 1; }; }
  16062. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  16063. pwd)`
  16064. # When building in place, set srcdir=.
  16065. if test "$ac_abs_confdir" = "$ac_pwd"; then
  16066. @@ -1439,9 +1467,9 @@
  16067. Installation directories:
  16068. --prefix=PREFIX install architecture-independent files in PREFIX
  16069. - [$ac_default_prefix]
  16070. + [$ac_default_prefix]
  16071. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  16072. - [PREFIX]
  16073. + [PREFIX]
  16074. By default, \`make install' will install all the files in
  16075. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  16076. @@ -1451,25 +1479,25 @@
  16077. For better control, use the options below.
  16078. Fine tuning of the installation directories:
  16079. - --bindir=DIR user executables [EPREFIX/bin]
  16080. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  16081. - --libexecdir=DIR program executables [EPREFIX/libexec]
  16082. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16083. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16084. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16085. - --libdir=DIR object code libraries [EPREFIX/lib]
  16086. - --includedir=DIR C header files [PREFIX/include]
  16087. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16088. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  16089. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  16090. - --infodir=DIR info documentation [DATAROOTDIR/info]
  16091. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  16092. - --mandir=DIR man documentation [DATAROOTDIR/man]
  16093. - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  16094. - --htmldir=DIR html documentation [DOCDIR]
  16095. - --dvidir=DIR dvi documentation [DOCDIR]
  16096. - --pdfdir=DIR pdf documentation [DOCDIR]
  16097. - --psdir=DIR ps documentation [DOCDIR]
  16098. + --bindir=DIR user executables [EPREFIX/bin]
  16099. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  16100. + --libexecdir=DIR program executables [EPREFIX/libexec]
  16101. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  16102. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  16103. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  16104. + --libdir=DIR object code libraries [EPREFIX/lib]
  16105. + --includedir=DIR C header files [PREFIX/include]
  16106. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  16107. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  16108. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  16109. + --infodir=DIR info documentation [DATAROOTDIR/info]
  16110. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  16111. + --mandir=DIR man documentation [DATAROOTDIR/man]
  16112. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  16113. + --htmldir=DIR html documentation [DOCDIR]
  16114. + --dvidir=DIR dvi documentation [DOCDIR]
  16115. + --pdfdir=DIR pdf documentation [DOCDIR]
  16116. + --psdir=DIR ps documentation [DOCDIR]
  16117. _ACEOF
  16118. cat <<\_ACEOF
  16119. @@ -1491,6 +1519,7 @@
  16120. cat <<\_ACEOF
  16121. Optional Features:
  16122. + --disable-option-checking ignore unrecognized --enable/--with options
  16123. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  16124. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  16125. --enable-maintainer-mode enable make rules and dependencies not useful
  16126. @@ -1508,10 +1537,9 @@
  16127. Optional Packages:
  16128. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  16129. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  16130. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16131. --with-pic try to use only PIC/non-PIC objects [default=use
  16132. both]
  16133. - --with-tags[=TAGS] include additional configurations [automatic]
  16134. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  16135. --with-ogg=PFX Prefix where libogg is installed (optional)
  16136. --with-ogg-libraries=DIR Directory where libogg library is installed (optional)
  16137. --with-ogg-includes=DIR Directory where libogg header files are installed (optional)
  16138. @@ -1522,18 +1550,14 @@
  16139. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  16140. nonstandard directory <lib dir>
  16141. LIBS libraries to pass to the linker, e.g. -l<library>
  16142. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  16143. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  16144. you have headers in a nonstandard directory <include dir>
  16145. CPP C preprocessor
  16146. - CXX C++ compiler command
  16147. - CXXFLAGS C++ compiler flags
  16148. - CXXCPP C++ preprocessor
  16149. - F77 Fortran 77 compiler command
  16150. - FFLAGS Fortran 77 compiler flags
  16151. Use these variables to override the choices made by `configure' or to help
  16152. it to find libraries and programs with nonstandard names/locations.
  16153. +Report bugs to the package provider.
  16154. _ACEOF
  16155. ac_status=$?
  16156. fi
  16157. @@ -1541,15 +1565,17 @@
  16158. if test "$ac_init_help" = "recursive"; then
  16159. # If there are subdirs, report their specific --help.
  16160. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  16161. - test -d "$ac_dir" || continue
  16162. + test -d "$ac_dir" ||
  16163. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  16164. + continue
  16165. ac_builddir=.
  16166. case "$ac_dir" in
  16167. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16168. *)
  16169. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  16170. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16171. # A ".." for each directory in $ac_dir_suffix.
  16172. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  16173. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16174. case $ac_top_builddir_sub in
  16175. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16176. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16177. @@ -1585,7 +1611,7 @@
  16178. echo &&
  16179. $SHELL "$ac_srcdir/configure" --help=recursive
  16180. else
  16181. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16182. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  16183. fi || ac_status=$?
  16184. cd "$ac_pwd" || { ac_status=$?; break; }
  16185. done
  16186. @@ -1595,46 +1621,397 @@
  16187. if $ac_init_version; then
  16188. cat <<\_ACEOF
  16189. configure
  16190. -generated by GNU Autoconf 2.61
  16191. +generated by GNU Autoconf 2.65
  16192. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  16193. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  16194. +Copyright (C) 2009 Free Software Foundation, Inc.
  16195. This configure script is free software; the Free Software Foundation
  16196. gives unlimited permission to copy, distribute and modify it.
  16197. _ACEOF
  16198. exit
  16199. fi
  16200. -cat >config.log <<_ACEOF
  16201. -This file contains any messages produced by compilers while
  16202. -running configure, to aid debugging if configure makes a mistake.
  16203. -
  16204. -It was created by $as_me, which was
  16205. -generated by GNU Autoconf 2.61. Invocation command line was
  16206. - $ $0 $@
  16207. -
  16208. -_ACEOF
  16209. -exec 5>>config.log
  16210. +## ------------------------ ##
  16211. +## Autoconf initialization. ##
  16212. +## ------------------------ ##
  16213. +
  16214. +# ac_fn_c_try_compile LINENO
  16215. +# --------------------------
  16216. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  16217. +ac_fn_c_try_compile ()
  16218. {
  16219. -cat <<_ASUNAME
  16220. -## --------- ##
  16221. -## Platform. ##
  16222. -## --------- ##
  16223. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16224. + rm -f conftest.$ac_objext
  16225. + if { { ac_try="$ac_compile"
  16226. +case "(($ac_try" in
  16227. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16228. + *) ac_try_echo=$ac_try;;
  16229. +esac
  16230. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16231. +$as_echo "$ac_try_echo"; } >&5
  16232. + (eval "$ac_compile") 2>conftest.err
  16233. + ac_status=$?
  16234. + if test -s conftest.err; then
  16235. + grep -v '^ *+' conftest.err >conftest.er1
  16236. + cat conftest.er1 >&5
  16237. + mv -f conftest.er1 conftest.err
  16238. + fi
  16239. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16240. + test $ac_status = 0; } && {
  16241. + test -z "$ac_c_werror_flag" ||
  16242. + test ! -s conftest.err
  16243. + } && test -s conftest.$ac_objext; then :
  16244. + ac_retval=0
  16245. +else
  16246. + $as_echo "$as_me: failed program was:" >&5
  16247. +sed 's/^/| /' conftest.$ac_ext >&5
  16248. -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  16249. -uname -m = `(uname -m) 2>/dev/null || echo unknown`
  16250. -uname -r = `(uname -r) 2>/dev/null || echo unknown`
  16251. -uname -s = `(uname -s) 2>/dev/null || echo unknown`
  16252. -uname -v = `(uname -v) 2>/dev/null || echo unknown`
  16253. + ac_retval=1
  16254. +fi
  16255. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16256. + as_fn_set_status $ac_retval
  16257. -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  16258. -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  16259. +} # ac_fn_c_try_compile
  16260. -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  16261. -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  16262. -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  16263. -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  16264. -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  16265. +# ac_fn_c_try_cpp LINENO
  16266. +# ----------------------
  16267. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  16268. +ac_fn_c_try_cpp ()
  16269. +{
  16270. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16271. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  16272. +case "(($ac_try" in
  16273. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16274. + *) ac_try_echo=$ac_try;;
  16275. +esac
  16276. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16277. +$as_echo "$ac_try_echo"; } >&5
  16278. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  16279. + ac_status=$?
  16280. + if test -s conftest.err; then
  16281. + grep -v '^ *+' conftest.err >conftest.er1
  16282. + cat conftest.er1 >&5
  16283. + mv -f conftest.er1 conftest.err
  16284. + fi
  16285. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16286. + test $ac_status = 0; } >/dev/null && {
  16287. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16288. + test ! -s conftest.err
  16289. + }; then :
  16290. + ac_retval=0
  16291. +else
  16292. + $as_echo "$as_me: failed program was:" >&5
  16293. +sed 's/^/| /' conftest.$ac_ext >&5
  16294. +
  16295. + ac_retval=1
  16296. +fi
  16297. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16298. + as_fn_set_status $ac_retval
  16299. +
  16300. +} # ac_fn_c_try_cpp
  16301. +
  16302. +# ac_fn_c_try_link LINENO
  16303. +# -----------------------
  16304. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  16305. +ac_fn_c_try_link ()
  16306. +{
  16307. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16308. + rm -f conftest.$ac_objext conftest$ac_exeext
  16309. + if { { ac_try="$ac_link"
  16310. +case "(($ac_try" in
  16311. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16312. + *) ac_try_echo=$ac_try;;
  16313. +esac
  16314. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16315. +$as_echo "$ac_try_echo"; } >&5
  16316. + (eval "$ac_link") 2>conftest.err
  16317. + ac_status=$?
  16318. + if test -s conftest.err; then
  16319. + grep -v '^ *+' conftest.err >conftest.er1
  16320. + cat conftest.er1 >&5
  16321. + mv -f conftest.er1 conftest.err
  16322. + fi
  16323. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16324. + test $ac_status = 0; } && {
  16325. + test -z "$ac_c_werror_flag" ||
  16326. + test ! -s conftest.err
  16327. + } && test -s conftest$ac_exeext && {
  16328. + test "$cross_compiling" = yes ||
  16329. + $as_test_x conftest$ac_exeext
  16330. + }; then :
  16331. + ac_retval=0
  16332. +else
  16333. + $as_echo "$as_me: failed program was:" >&5
  16334. +sed 's/^/| /' conftest.$ac_ext >&5
  16335. +
  16336. + ac_retval=1
  16337. +fi
  16338. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  16339. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  16340. + # interfere with the next link command; also delete a directory that is
  16341. + # left behind by Apple's compiler. We do this before executing the actions.
  16342. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16343. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16344. + as_fn_set_status $ac_retval
  16345. +
  16346. +} # ac_fn_c_try_link
  16347. +
  16348. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  16349. +# -------------------------------------------------------
  16350. +# Tests whether HEADER exists and can be compiled using the include files in
  16351. +# INCLUDES, setting the cache variable VAR accordingly.
  16352. +ac_fn_c_check_header_compile ()
  16353. +{
  16354. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16355. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16356. +$as_echo_n "checking for $2... " >&6; }
  16357. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16358. + $as_echo_n "(cached) " >&6
  16359. +else
  16360. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16361. +/* end confdefs.h. */
  16362. +$4
  16363. +#include <$2>
  16364. +_ACEOF
  16365. +if ac_fn_c_try_compile "$LINENO"; then :
  16366. + eval "$3=yes"
  16367. +else
  16368. + eval "$3=no"
  16369. +fi
  16370. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16371. +fi
  16372. +eval ac_res=\$$3
  16373. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16374. +$as_echo "$ac_res" >&6; }
  16375. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16376. +
  16377. +} # ac_fn_c_check_header_compile
  16378. +
  16379. +# ac_fn_c_try_run LINENO
  16380. +# ----------------------
  16381. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  16382. +# that executables *can* be run.
  16383. +ac_fn_c_try_run ()
  16384. +{
  16385. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16386. + if { { ac_try="$ac_link"
  16387. +case "(($ac_try" in
  16388. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16389. + *) ac_try_echo=$ac_try;;
  16390. +esac
  16391. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16392. +$as_echo "$ac_try_echo"; } >&5
  16393. + (eval "$ac_link") 2>&5
  16394. + ac_status=$?
  16395. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16396. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  16397. + { { case "(($ac_try" in
  16398. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16399. + *) ac_try_echo=$ac_try;;
  16400. +esac
  16401. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  16402. +$as_echo "$ac_try_echo"; } >&5
  16403. + (eval "$ac_try") 2>&5
  16404. + ac_status=$?
  16405. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16406. + test $ac_status = 0; }; }; then :
  16407. + ac_retval=0
  16408. +else
  16409. + $as_echo "$as_me: program exited with status $ac_status" >&5
  16410. + $as_echo "$as_me: failed program was:" >&5
  16411. +sed 's/^/| /' conftest.$ac_ext >&5
  16412. +
  16413. + ac_retval=$ac_status
  16414. +fi
  16415. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16416. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16417. + as_fn_set_status $ac_retval
  16418. +
  16419. +} # ac_fn_c_try_run
  16420. +
  16421. +# ac_fn_c_check_func LINENO FUNC VAR
  16422. +# ----------------------------------
  16423. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  16424. +ac_fn_c_check_func ()
  16425. +{
  16426. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16427. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16428. +$as_echo_n "checking for $2... " >&6; }
  16429. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16430. + $as_echo_n "(cached) " >&6
  16431. +else
  16432. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16433. +/* end confdefs.h. */
  16434. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  16435. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16436. +#define $2 innocuous_$2
  16437. +
  16438. +/* System header to define __stub macros and hopefully few prototypes,
  16439. + which can conflict with char $2 (); below.
  16440. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16441. + <limits.h> exists even on freestanding compilers. */
  16442. +
  16443. +#ifdef __STDC__
  16444. +# include <limits.h>
  16445. +#else
  16446. +# include <assert.h>
  16447. +#endif
  16448. +
  16449. +#undef $2
  16450. +
  16451. +/* Override any GCC internal prototype to avoid an error.
  16452. + Use char because int might match the return type of a GCC
  16453. + builtin and then its argument prototype would still apply. */
  16454. +#ifdef __cplusplus
  16455. +extern "C"
  16456. +#endif
  16457. +char $2 ();
  16458. +/* The GNU C library defines this for functions which it implements
  16459. + to always fail with ENOSYS. Some functions are actually named
  16460. + something starting with __ and the normal name is an alias. */
  16461. +#if defined __stub_$2 || defined __stub___$2
  16462. +choke me
  16463. +#endif
  16464. +
  16465. +int
  16466. +main ()
  16467. +{
  16468. +return $2 ();
  16469. + ;
  16470. + return 0;
  16471. +}
  16472. +_ACEOF
  16473. +if ac_fn_c_try_link "$LINENO"; then :
  16474. + eval "$3=yes"
  16475. +else
  16476. + eval "$3=no"
  16477. +fi
  16478. +rm -f core conftest.err conftest.$ac_objext \
  16479. + conftest$ac_exeext conftest.$ac_ext
  16480. +fi
  16481. +eval ac_res=\$$3
  16482. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16483. +$as_echo "$ac_res" >&6; }
  16484. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16485. +
  16486. +} # ac_fn_c_check_func
  16487. +
  16488. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  16489. +# -------------------------------------------------------
  16490. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  16491. +# the include files in INCLUDES and setting the cache variable VAR
  16492. +# accordingly.
  16493. +ac_fn_c_check_header_mongrel ()
  16494. +{
  16495. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16496. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16497. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16498. +$as_echo_n "checking for $2... " >&6; }
  16499. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16500. + $as_echo_n "(cached) " >&6
  16501. +fi
  16502. +eval ac_res=\$$3
  16503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16504. +$as_echo "$ac_res" >&6; }
  16505. +else
  16506. + # Is the header compilable?
  16507. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  16508. +$as_echo_n "checking $2 usability... " >&6; }
  16509. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16510. +/* end confdefs.h. */
  16511. +$4
  16512. +#include <$2>
  16513. +_ACEOF
  16514. +if ac_fn_c_try_compile "$LINENO"; then :
  16515. + ac_header_compiler=yes
  16516. +else
  16517. + ac_header_compiler=no
  16518. +fi
  16519. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  16521. +$as_echo "$ac_header_compiler" >&6; }
  16522. +
  16523. +# Is the header present?
  16524. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  16525. +$as_echo_n "checking $2 presence... " >&6; }
  16526. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16527. +/* end confdefs.h. */
  16528. +#include <$2>
  16529. +_ACEOF
  16530. +if ac_fn_c_try_cpp "$LINENO"; then :
  16531. + ac_header_preproc=yes
  16532. +else
  16533. + ac_header_preproc=no
  16534. +fi
  16535. +rm -f conftest.err conftest.$ac_ext
  16536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  16537. +$as_echo "$ac_header_preproc" >&6; }
  16538. +
  16539. +# So? What about this header?
  16540. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  16541. + yes:no: )
  16542. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  16543. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16544. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  16545. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  16546. + ;;
  16547. + no:yes:* )
  16548. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  16549. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  16550. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  16551. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  16552. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  16553. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  16554. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  16555. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  16556. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  16557. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  16558. + ;;
  16559. +esac
  16560. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16561. +$as_echo_n "checking for $2... " >&6; }
  16562. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16563. + $as_echo_n "(cached) " >&6
  16564. +else
  16565. + eval "$3=\$ac_header_compiler"
  16566. +fi
  16567. +eval ac_res=\$$3
  16568. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16569. +$as_echo "$ac_res" >&6; }
  16570. +fi
  16571. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16572. +
  16573. +} # ac_fn_c_check_header_mongrel
  16574. +cat >config.log <<_ACEOF
  16575. +This file contains any messages produced by compilers while
  16576. +running configure, to aid debugging if configure makes a mistake.
  16577. +
  16578. +It was created by $as_me, which was
  16579. +generated by GNU Autoconf 2.65. Invocation command line was
  16580. +
  16581. + $ $0 $@
  16582. +
  16583. +_ACEOF
  16584. +exec 5>>config.log
  16585. +{
  16586. +cat <<_ASUNAME
  16587. +## --------- ##
  16588. +## Platform. ##
  16589. +## --------- ##
  16590. +
  16591. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  16592. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  16593. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  16594. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  16595. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  16596. +
  16597. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  16598. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  16599. +
  16600. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  16601. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  16602. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  16603. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  16604. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  16605. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  16606. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  16607. @@ -1645,8 +2022,8 @@
  16608. do
  16609. IFS=$as_save_IFS
  16610. test -z "$as_dir" && as_dir=.
  16611. - echo "PATH: $as_dir"
  16612. -done
  16613. + $as_echo "PATH: $as_dir"
  16614. + done
  16615. IFS=$as_save_IFS
  16616. } >&5
  16617. @@ -1680,12 +2057,12 @@
  16618. | -silent | --silent | --silen | --sile | --sil)
  16619. continue ;;
  16620. *\'*)
  16621. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16622. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16623. esac
  16624. case $ac_pass in
  16625. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  16626. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  16627. 2)
  16628. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  16629. + as_fn_append ac_configure_args1 " '$ac_arg'"
  16630. if test $ac_must_keep_next = true; then
  16631. ac_must_keep_next=false # Got value, back to normal.
  16632. else
  16633. @@ -1701,13 +2078,13 @@
  16634. -* ) ac_must_keep_next=true ;;
  16635. esac
  16636. fi
  16637. - ac_configure_args="$ac_configure_args '$ac_arg'"
  16638. + as_fn_append ac_configure_args " '$ac_arg'"
  16639. ;;
  16640. esac
  16641. done
  16642. done
  16643. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  16644. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  16645. +{ ac_configure_args0=; unset ac_configure_args0;}
  16646. +{ ac_configure_args1=; unset ac_configure_args1;}
  16647. # When interrupted or exit'd, cleanup temporary files, and complete
  16648. # config.log. We remove comments because anyway the quotes in there
  16649. @@ -1732,12 +2109,13 @@
  16650. case $ac_val in #(
  16651. *${as_nl}*)
  16652. case $ac_var in #(
  16653. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  16654. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  16655. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16656. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16657. esac
  16658. case $ac_var in #(
  16659. _ | IFS | as_nl) ;; #(
  16660. - *) $as_unset $ac_var ;;
  16661. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16662. + *) { eval $ac_var=; unset $ac_var;} ;;
  16663. esac ;;
  16664. esac
  16665. done
  16666. @@ -1766,9 +2144,9 @@
  16667. do
  16668. eval ac_val=\$$ac_var
  16669. case $ac_val in
  16670. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16671. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16672. esac
  16673. - echo "$ac_var='\''$ac_val'\''"
  16674. + $as_echo "$ac_var='\''$ac_val'\''"
  16675. done | sort
  16676. echo
  16677. @@ -1783,9 +2161,9 @@
  16678. do
  16679. eval ac_val=\$$ac_var
  16680. case $ac_val in
  16681. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16682. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16683. esac
  16684. - echo "$ac_var='\''$ac_val'\''"
  16685. + $as_echo "$ac_var='\''$ac_val'\''"
  16686. done | sort
  16687. echo
  16688. fi
  16689. @@ -1801,83 +2179,88 @@
  16690. echo
  16691. fi
  16692. test "$ac_signal" != 0 &&
  16693. - echo "$as_me: caught signal $ac_signal"
  16694. - echo "$as_me: exit $exit_status"
  16695. + $as_echo "$as_me: caught signal $ac_signal"
  16696. + $as_echo "$as_me: exit $exit_status"
  16697. } >&5
  16698. rm -f core *.core core.conftest.* &&
  16699. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  16700. exit $exit_status
  16701. ' 0
  16702. for ac_signal in 1 2 13 15; do
  16703. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  16704. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  16705. done
  16706. ac_signal=0
  16707. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  16708. rm -f -r conftest* confdefs.h
  16709. +$as_echo "/* confdefs.h */" > confdefs.h
  16710. +
  16711. # Predefined preprocessor variables.
  16712. cat >>confdefs.h <<_ACEOF
  16713. #define PACKAGE_NAME "$PACKAGE_NAME"
  16714. _ACEOF
  16715. -
  16716. cat >>confdefs.h <<_ACEOF
  16717. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  16718. _ACEOF
  16719. -
  16720. cat >>confdefs.h <<_ACEOF
  16721. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  16722. _ACEOF
  16723. -
  16724. cat >>confdefs.h <<_ACEOF
  16725. #define PACKAGE_STRING "$PACKAGE_STRING"
  16726. _ACEOF
  16727. -
  16728. cat >>confdefs.h <<_ACEOF
  16729. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  16730. _ACEOF
  16731. +cat >>confdefs.h <<_ACEOF
  16732. +#define PACKAGE_URL "$PACKAGE_URL"
  16733. +_ACEOF
  16734. +
  16735. # Let the site file select an alternate cache file if it wants to.
  16736. -# Prefer explicitly selected file to automatically selected ones.
  16737. +# Prefer an explicitly selected file to automatically selected ones.
  16738. +ac_site_file1=NONE
  16739. +ac_site_file2=NONE
  16740. if test -n "$CONFIG_SITE"; then
  16741. - set x "$CONFIG_SITE"
  16742. + ac_site_file1=$CONFIG_SITE
  16743. elif test "x$prefix" != xNONE; then
  16744. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  16745. + ac_site_file1=$prefix/share/config.site
  16746. + ac_site_file2=$prefix/etc/config.site
  16747. else
  16748. - set x "$ac_default_prefix/share/config.site" \
  16749. - "$ac_default_prefix/etc/config.site"
  16750. + ac_site_file1=$ac_default_prefix/share/config.site
  16751. + ac_site_file2=$ac_default_prefix/etc/config.site
  16752. fi
  16753. -shift
  16754. -for ac_site_file
  16755. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  16756. do
  16757. - if test -r "$ac_site_file"; then
  16758. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  16759. -echo "$as_me: loading site script $ac_site_file" >&6;}
  16760. + test "x$ac_site_file" = xNONE && continue
  16761. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  16762. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  16763. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  16764. sed 's/^/| /' "$ac_site_file" >&5
  16765. . "$ac_site_file"
  16766. fi
  16767. done
  16768. if test -r "$cache_file"; then
  16769. - # Some versions of bash will fail to source /dev/null (special
  16770. - # files actually), so we avoid doing that.
  16771. - if test -f "$cache_file"; then
  16772. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  16773. -echo "$as_me: loading cache $cache_file" >&6;}
  16774. + # Some versions of bash will fail to source /dev/null (special files
  16775. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  16776. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  16777. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  16778. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  16779. case $cache_file in
  16780. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  16781. *) . "./$cache_file";;
  16782. esac
  16783. fi
  16784. else
  16785. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  16786. -echo "$as_me: creating cache $cache_file" >&6;}
  16787. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  16788. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  16789. >$cache_file
  16790. fi
  16791. @@ -1891,60 +2274,56 @@
  16792. eval ac_new_val=\$ac_env_${ac_var}_value
  16793. case $ac_old_set,$ac_new_set in
  16794. set,)
  16795. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  16796. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  16797. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  16798. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  16799. ac_cache_corrupted=: ;;
  16800. ,set)
  16801. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  16802. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  16803. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  16804. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  16805. ac_cache_corrupted=: ;;
  16806. ,);;
  16807. *)
  16808. if test "x$ac_old_val" != "x$ac_new_val"; then
  16809. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  16810. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  16811. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  16812. -echo "$as_me: former value: $ac_old_val" >&2;}
  16813. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  16814. -echo "$as_me: current value: $ac_new_val" >&2;}
  16815. - ac_cache_corrupted=:
  16816. + # differences in whitespace do not lead to failure.
  16817. + ac_old_val_w=`echo x $ac_old_val`
  16818. + ac_new_val_w=`echo x $ac_new_val`
  16819. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  16820. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  16821. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  16822. + ac_cache_corrupted=:
  16823. + else
  16824. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  16825. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  16826. + eval $ac_var=\$ac_old_val
  16827. + fi
  16828. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  16829. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  16830. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  16831. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  16832. fi;;
  16833. esac
  16834. # Pass precious variables to config.status.
  16835. if test "$ac_new_set" = set; then
  16836. case $ac_new_val in
  16837. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  16838. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  16839. *) ac_arg=$ac_var=$ac_new_val ;;
  16840. esac
  16841. case " $ac_configure_args " in
  16842. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  16843. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  16844. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  16845. esac
  16846. fi
  16847. done
  16848. if $ac_cache_corrupted; then
  16849. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  16850. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  16851. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  16852. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  16853. - { (exit 1); exit 1; }; }
  16854. -fi
  16855. -
  16856. -
  16857. -
  16858. -
  16859. -
  16860. -
  16861. -
  16862. -
  16863. -
  16864. -
  16865. -
  16866. -
  16867. -
  16868. -
  16869. -
  16870. -
  16871. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16872. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16873. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  16874. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  16875. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  16876. +fi
  16877. +## -------------------- ##
  16878. +## Main body of script. ##
  16879. +## -------------------- ##
  16880. ac_ext=c
  16881. ac_cpp='$CPP $CPPFLAGS'
  16882. @@ -1956,24 +2335,16 @@
  16883. ac_aux_dir=
  16884. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  16885. - if test -f "$ac_dir/install-sh"; then
  16886. - ac_aux_dir=$ac_dir
  16887. - ac_install_sh="$ac_aux_dir/install-sh -c"
  16888. - break
  16889. - elif test -f "$ac_dir/install.sh"; then
  16890. - ac_aux_dir=$ac_dir
  16891. - ac_install_sh="$ac_aux_dir/install.sh -c"
  16892. - break
  16893. - elif test -f "$ac_dir/shtool"; then
  16894. - ac_aux_dir=$ac_dir
  16895. - ac_install_sh="$ac_aux_dir/shtool install -c"
  16896. - break
  16897. - fi
  16898. + for ac_t in install-sh install.sh shtool; do
  16899. + if test -f "$ac_dir/$ac_t"; then
  16900. + ac_aux_dir=$ac_dir
  16901. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  16902. + break 2
  16903. + fi
  16904. + done
  16905. done
  16906. if test -z "$ac_aux_dir"; then
  16907. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  16908. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  16909. - { (exit 1); exit 1; }; }
  16910. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  16911. fi
  16912. # These three variables are undocumented and unsupported,
  16913. @@ -1987,35 +2358,27 @@
  16914. # Make sure we can run config.sub.
  16915. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  16916. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  16917. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  16918. - { (exit 1); exit 1; }; }
  16919. -
  16920. -{ echo "$as_me:$LINENO: checking build system type" >&5
  16921. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  16922. -if test "${ac_cv_build+set}" = set; then
  16923. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16924. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  16925. +
  16926. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  16927. +$as_echo_n "checking build system type... " >&6; }
  16928. +if test "${ac_cv_build+set}" = set; then :
  16929. + $as_echo_n "(cached) " >&6
  16930. else
  16931. ac_build_alias=$build_alias
  16932. test "x$ac_build_alias" = x &&
  16933. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  16934. test "x$ac_build_alias" = x &&
  16935. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  16936. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  16937. - { (exit 1); exit 1; }; }
  16938. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  16939. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  16940. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  16941. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  16942. - { (exit 1); exit 1; }; }
  16943. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  16944. fi
  16945. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  16946. -echo "${ECHO_T}$ac_cv_build" >&6; }
  16947. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  16948. +$as_echo "$ac_cv_build" >&6; }
  16949. case $ac_cv_build in
  16950. *-*-*) ;;
  16951. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  16952. -echo "$as_me: error: invalid value of canonical build" >&2;}
  16953. - { (exit 1); exit 1; }; };;
  16954. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  16955. esac
  16956. build=$ac_cv_build
  16957. ac_save_IFS=$IFS; IFS='-'
  16958. @@ -2031,28 +2394,24 @@
  16959. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  16960. -{ echo "$as_me:$LINENO: checking host system type" >&5
  16961. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  16962. -if test "${ac_cv_host+set}" = set; then
  16963. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  16965. +$as_echo_n "checking host system type... " >&6; }
  16966. +if test "${ac_cv_host+set}" = set; then :
  16967. + $as_echo_n "(cached) " >&6
  16968. else
  16969. if test "x$host_alias" = x; then
  16970. ac_cv_host=$ac_cv_build
  16971. else
  16972. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  16973. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  16974. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  16975. - { (exit 1); exit 1; }; }
  16976. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  16977. fi
  16978. fi
  16979. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  16980. -echo "${ECHO_T}$ac_cv_host" >&6; }
  16981. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  16982. +$as_echo "$ac_cv_host" >&6; }
  16983. case $ac_cv_host in
  16984. *-*-*) ;;
  16985. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  16986. -echo "$as_me: error: invalid value of canonical host" >&2;}
  16987. - { (exit 1); exit 1; }; };;
  16988. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  16989. esac
  16990. host=$ac_cv_host
  16991. ac_save_IFS=$IFS; IFS='-'
  16992. @@ -2068,28 +2427,24 @@
  16993. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  16994. -{ echo "$as_me:$LINENO: checking target system type" >&5
  16995. -echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  16996. -if test "${ac_cv_target+set}" = set; then
  16997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16998. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  16999. +$as_echo_n "checking target system type... " >&6; }
  17000. +if test "${ac_cv_target+set}" = set; then :
  17001. + $as_echo_n "(cached) " >&6
  17002. else
  17003. if test "x$target_alias" = x; then
  17004. ac_cv_target=$ac_cv_host
  17005. else
  17006. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  17007. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  17008. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  17009. - { (exit 1); exit 1; }; }
  17010. + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  17011. fi
  17012. fi
  17013. -{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  17014. -echo "${ECHO_T}$ac_cv_target" >&6; }
  17015. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  17016. +$as_echo "$ac_cv_target" >&6; }
  17017. case $ac_cv_target in
  17018. *-*-*) ;;
  17019. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  17020. -echo "$as_me: error: invalid value of canonical target" >&2;}
  17021. - { (exit 1); exit 1; }; };;
  17022. +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  17023. esac
  17024. target=$ac_cv_target
  17025. ac_save_IFS=$IFS; IFS='-'
  17026. @@ -2115,7 +2470,7 @@
  17027. ac_config_headers="$ac_config_headers config.h"
  17028. -am__api_version='1.10'
  17029. +am__api_version='1.11'
  17030. # Find a good install program. We prefer a C program (faster),
  17031. # so one script is as good as another. But avoid the broken or
  17032. @@ -2130,22 +2485,23 @@
  17033. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17034. # OS/2's system install, which has a completely different semantic
  17035. # ./install, which can be erroneously created by make from ./install.sh.
  17036. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17037. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  17038. +# Reject install programs that cannot install multiple files.
  17039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  17040. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  17041. if test -z "$INSTALL"; then
  17042. -if test "${ac_cv_path_install+set}" = set; then
  17043. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17044. +if test "${ac_cv_path_install+set}" = set; then :
  17045. + $as_echo_n "(cached) " >&6
  17046. else
  17047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17048. for as_dir in $PATH
  17049. do
  17050. IFS=$as_save_IFS
  17051. test -z "$as_dir" && as_dir=.
  17052. - # Account for people who put trailing slashes in PATH elements.
  17053. -case $as_dir/ in
  17054. - ./ | .// | /cC/* | \
  17055. + # Account for people who put trailing slashes in PATH elements.
  17056. +case $as_dir/ in #((
  17057. + ./ | .// | /[cC]/* | \
  17058. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17059. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17060. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  17061. /usr/ucb/* ) ;;
  17062. *)
  17063. # OSF1 and SCO ODT 3.0 have their own names for install.
  17064. @@ -2163,17 +2519,29 @@
  17065. # program-specific install script used by HP pwplus--don't use.
  17066. :
  17067. else
  17068. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17069. - break 3
  17070. + rm -rf conftest.one conftest.two conftest.dir
  17071. + echo one > conftest.one
  17072. + echo two > conftest.two
  17073. + mkdir conftest.dir
  17074. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  17075. + test -s conftest.one && test -s conftest.two &&
  17076. + test -s conftest.dir/conftest.one &&
  17077. + test -s conftest.dir/conftest.two
  17078. + then
  17079. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17080. + break 3
  17081. + fi
  17082. fi
  17083. fi
  17084. done
  17085. done
  17086. ;;
  17087. esac
  17088. -done
  17089. +
  17090. + done
  17091. IFS=$as_save_IFS
  17092. +rm -rf conftest.one conftest.two conftest.dir
  17093. fi
  17094. if test "${ac_cv_path_install+set}" = set; then
  17095. @@ -2186,8 +2554,8 @@
  17096. INSTALL=$ac_install_sh
  17097. fi
  17098. fi
  17099. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  17100. -echo "${ECHO_T}$INSTALL" >&6; }
  17101. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  17102. +$as_echo "$INSTALL" >&6; }
  17103. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17104. # It thinks the first close brace ends the variable substitution.
  17105. @@ -2197,21 +2565,34 @@
  17106. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17107. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17108. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  17109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  17110. +$as_echo_n "checking whether build environment is sane... " >&6; }
  17111. # Just in case
  17112. sleep 1
  17113. echo timestamp > conftest.file
  17114. +# Reject unsafe characters in $srcdir or the absolute working directory
  17115. +# name. Accept space and tab only in the latter.
  17116. +am_lf='
  17117. +'
  17118. +case `pwd` in
  17119. + *[\\\"\#\$\&\'\`$am_lf]*)
  17120. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  17121. +esac
  17122. +case $srcdir in
  17123. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  17124. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  17125. +esac
  17126. +
  17127. # Do `set' in a subshell so we don't clobber the current shell's
  17128. # arguments. Must try -L first in case configure is actually a
  17129. # symlink; some systems play weird games with the mod time of symlinks
  17130. # (eg FreeBSD returns the mod time of the symlink's containing
  17131. # directory).
  17132. if (
  17133. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17134. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  17135. if test "$*" = "X"; then
  17136. # -L didn't work.
  17137. - set X `ls -t $srcdir/configure conftest.file`
  17138. + set X `ls -t "$srcdir/configure" conftest.file`
  17139. fi
  17140. rm -f conftest.file
  17141. if test "$*" != "X $srcdir/configure conftest.file" \
  17142. @@ -2221,11 +2602,8 @@
  17143. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17144. # broken ls alias from the environment. This has actually
  17145. # happened. Such a system could not be considered "sane".
  17146. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17147. -alias in your environment" >&5
  17148. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17149. -alias in your environment" >&2;}
  17150. - { (exit 1); exit 1; }; }
  17151. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  17152. +alias in your environment" "$LINENO" 5
  17153. fi
  17154. test "$2" = conftest.file
  17155. @@ -2234,96 +2612,206 @@
  17156. # Ok.
  17157. :
  17158. else
  17159. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17160. -Check your system clock" >&5
  17161. -echo "$as_me: error: newly created file is older than distributed files!
  17162. -Check your system clock" >&2;}
  17163. - { (exit 1); exit 1; }; }
  17164. + as_fn_error "newly created file is older than distributed files!
  17165. +Check your system clock" "$LINENO" 5
  17166. fi
  17167. -{ echo "$as_me:$LINENO: result: yes" >&5
  17168. -echo "${ECHO_T}yes" >&6; }
  17169. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17170. +$as_echo "yes" >&6; }
  17171. test "$program_prefix" != NONE &&
  17172. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  17173. # Use a double $ so make ignores it.
  17174. test "$program_suffix" != NONE &&
  17175. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  17176. -# Double any \ or $. echo might interpret backslashes.
  17177. +# Double any \ or $.
  17178. # By default was `s,x,x', remove it if useless.
  17179. -cat <<\_ACEOF >conftest.sed
  17180. -s/[\\$]/&&/g;s/;s,x,x,$//
  17181. -_ACEOF
  17182. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17183. -rm -f conftest.sed
  17184. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  17185. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  17186. # expand $ac_aux_dir to an absolute path
  17187. am_aux_dir=`cd $ac_aux_dir && pwd`
  17188. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17189. +if test x"${MISSING+set}" != xset; then
  17190. + case $am_aux_dir in
  17191. + *\ * | *\ *)
  17192. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  17193. + *)
  17194. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  17195. + esac
  17196. +fi
  17197. # Use eval to expand $SHELL
  17198. if eval "$MISSING --run true"; then
  17199. am_missing_run="$MISSING --run "
  17200. else
  17201. am_missing_run=
  17202. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17203. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17204. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  17205. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17206. fi
  17207. -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  17208. -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  17209. -if test -z "$MKDIR_P"; then
  17210. - if test "${ac_cv_path_mkdir+set}" = set; then
  17211. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17212. +if test x"${install_sh}" != xset; then
  17213. + case $am_aux_dir in
  17214. + *\ * | *\ *)
  17215. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  17216. + *)
  17217. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  17218. + esac
  17219. +fi
  17220. +
  17221. +# Installed binaries are usually stripped using `strip' when the user
  17222. +# run `make install-strip'. However `strip' might not be the right
  17223. +# tool to use in cross-compilation environments, therefore Automake
  17224. +# will honor the `STRIP' environment variable to overrule this program.
  17225. +if test "$cross_compiling" != no; then
  17226. + if test -n "$ac_tool_prefix"; then
  17227. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17228. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  17229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17230. +$as_echo_n "checking for $ac_word... " >&6; }
  17231. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  17232. + $as_echo_n "(cached) " >&6
  17233. else
  17234. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17235. -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  17236. + if test -n "$STRIP"; then
  17237. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17238. +else
  17239. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17240. +for as_dir in $PATH
  17241. do
  17242. IFS=$as_save_IFS
  17243. test -z "$as_dir" && as_dir=.
  17244. - for ac_prog in mkdir gmkdir; do
  17245. - for ac_exec_ext in '' $ac_executable_extensions; do
  17246. - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  17247. - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  17248. - 'mkdir (GNU coreutils) '* | \
  17249. - 'mkdir (coreutils) '* | \
  17250. - 'mkdir (fileutils) '4.1*)
  17251. - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  17252. - break 3;;
  17253. - esac
  17254. - done
  17255. - done
  17256. + for ac_exec_ext in '' $ac_executable_extensions; do
  17257. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17258. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17259. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17260. + break 2
  17261. + fi
  17262. done
  17263. + done
  17264. IFS=$as_save_IFS
  17265. fi
  17266. -
  17267. - if test "${ac_cv_path_mkdir+set}" = set; then
  17268. - MKDIR_P="$ac_cv_path_mkdir -p"
  17269. - else
  17270. - # As a last resort, use the slow shell script. Don't cache a
  17271. - # value for MKDIR_P within a source directory, because that will
  17272. - # break other packages using the cache if that directory is
  17273. - # removed, or if the value is a relative name.
  17274. - test -d ./--version && rmdir ./--version
  17275. - MKDIR_P="$ac_install_sh -d"
  17276. - fi
  17277. fi
  17278. -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  17279. -echo "${ECHO_T}$MKDIR_P" >&6; }
  17280. +STRIP=$ac_cv_prog_STRIP
  17281. +if test -n "$STRIP"; then
  17282. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  17283. +$as_echo "$STRIP" >&6; }
  17284. +else
  17285. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17286. +$as_echo "no" >&6; }
  17287. +fi
  17288. -mkdir_p="$MKDIR_P"
  17289. -case $mkdir_p in
  17290. - [\\/$]* | ?:[\\/]*) ;;
  17291. - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  17292. +
  17293. +fi
  17294. +if test -z "$ac_cv_prog_STRIP"; then
  17295. + ac_ct_STRIP=$STRIP
  17296. + # Extract the first word of "strip", so it can be a program name with args.
  17297. +set dummy strip; ac_word=$2
  17298. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17299. +$as_echo_n "checking for $ac_word... " >&6; }
  17300. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  17301. + $as_echo_n "(cached) " >&6
  17302. +else
  17303. + if test -n "$ac_ct_STRIP"; then
  17304. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17305. +else
  17306. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17307. +for as_dir in $PATH
  17308. +do
  17309. + IFS=$as_save_IFS
  17310. + test -z "$as_dir" && as_dir=.
  17311. + for ac_exec_ext in '' $ac_executable_extensions; do
  17312. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17313. + ac_cv_prog_ac_ct_STRIP="strip"
  17314. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17315. + break 2
  17316. + fi
  17317. +done
  17318. + done
  17319. +IFS=$as_save_IFS
  17320. +
  17321. +fi
  17322. +fi
  17323. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17324. +if test -n "$ac_ct_STRIP"; then
  17325. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  17326. +$as_echo "$ac_ct_STRIP" >&6; }
  17327. +else
  17328. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17329. +$as_echo "no" >&6; }
  17330. +fi
  17331. +
  17332. + if test "x$ac_ct_STRIP" = x; then
  17333. + STRIP=":"
  17334. + else
  17335. + case $cross_compiling:$ac_tool_warned in
  17336. +yes:)
  17337. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17338. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17339. +ac_tool_warned=yes ;;
  17340. +esac
  17341. + STRIP=$ac_ct_STRIP
  17342. + fi
  17343. +else
  17344. + STRIP="$ac_cv_prog_STRIP"
  17345. +fi
  17346. +
  17347. +fi
  17348. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17349. +
  17350. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  17351. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  17352. +if test -z "$MKDIR_P"; then
  17353. + if test "${ac_cv_path_mkdir+set}" = set; then :
  17354. + $as_echo_n "(cached) " >&6
  17355. +else
  17356. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17357. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  17358. +do
  17359. + IFS=$as_save_IFS
  17360. + test -z "$as_dir" && as_dir=.
  17361. + for ac_prog in mkdir gmkdir; do
  17362. + for ac_exec_ext in '' $ac_executable_extensions; do
  17363. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  17364. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  17365. + 'mkdir (GNU coreutils) '* | \
  17366. + 'mkdir (coreutils) '* | \
  17367. + 'mkdir (fileutils) '4.1*)
  17368. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  17369. + break 3;;
  17370. + esac
  17371. + done
  17372. + done
  17373. + done
  17374. +IFS=$as_save_IFS
  17375. +
  17376. +fi
  17377. +
  17378. + test -d ./--version && rmdir ./--version
  17379. + if test "${ac_cv_path_mkdir+set}" = set; then
  17380. + MKDIR_P="$ac_cv_path_mkdir -p"
  17381. + else
  17382. + # As a last resort, use the slow shell script. Don't cache a
  17383. + # value for MKDIR_P within a source directory, because that will
  17384. + # break other packages using the cache if that directory is
  17385. + # removed, or if the value is a relative name.
  17386. + MKDIR_P="$ac_install_sh -d"
  17387. + fi
  17388. +fi
  17389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  17390. +$as_echo "$MKDIR_P" >&6; }
  17391. +
  17392. +mkdir_p="$MKDIR_P"
  17393. +case $mkdir_p in
  17394. + [\\/$]* | ?:[\\/]*) ;;
  17395. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  17396. esac
  17397. for ac_prog in gawk mawk nawk awk
  17398. do
  17399. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17400. set dummy $ac_prog; ac_word=$2
  17401. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17402. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17403. -if test "${ac_cv_prog_AWK+set}" = set; then
  17404. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17406. +$as_echo_n "checking for $ac_word... " >&6; }
  17407. +if test "${ac_cv_prog_AWK+set}" = set; then :
  17408. + $as_echo_n "(cached) " >&6
  17409. else
  17410. if test -n "$AWK"; then
  17411. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17412. @@ -2333,36 +2821,37 @@
  17413. do
  17414. IFS=$as_save_IFS
  17415. test -z "$as_dir" && as_dir=.
  17416. - for ac_exec_ext in '' $ac_executable_extensions; do
  17417. + for ac_exec_ext in '' $ac_executable_extensions; do
  17418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17419. ac_cv_prog_AWK="$ac_prog"
  17420. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17421. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17422. break 2
  17423. fi
  17424. done
  17425. -done
  17426. + done
  17427. IFS=$as_save_IFS
  17428. fi
  17429. fi
  17430. AWK=$ac_cv_prog_AWK
  17431. if test -n "$AWK"; then
  17432. - { echo "$as_me:$LINENO: result: $AWK" >&5
  17433. -echo "${ECHO_T}$AWK" >&6; }
  17434. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  17435. +$as_echo "$AWK" >&6; }
  17436. else
  17437. - { echo "$as_me:$LINENO: result: no" >&5
  17438. -echo "${ECHO_T}no" >&6; }
  17439. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17440. +$as_echo "no" >&6; }
  17441. fi
  17442. test -n "$AWK" && break
  17443. done
  17444. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17445. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  17446. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17447. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  17448. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17450. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  17451. +set x ${MAKE-make}
  17452. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17453. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  17454. + $as_echo_n "(cached) " >&6
  17455. else
  17456. cat >conftest.make <<\_ACEOF
  17457. SHELL = /bin/sh
  17458. @@ -2379,12 +2868,12 @@
  17459. rm -f conftest.make
  17460. fi
  17461. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  17462. - { echo "$as_me:$LINENO: result: yes" >&5
  17463. -echo "${ECHO_T}yes" >&6; }
  17464. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17465. +$as_echo "yes" >&6; }
  17466. SET_MAKE=
  17467. else
  17468. - { echo "$as_me:$LINENO: result: no" >&5
  17469. -echo "${ECHO_T}no" >&6; }
  17470. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17471. +$as_echo "no" >&6; }
  17472. SET_MAKE="MAKE=${MAKE-make}"
  17473. fi
  17474. @@ -2403,9 +2892,7 @@
  17475. am__isrc=' -I$(srcdir)'
  17476. # test to see if srcdir already configured
  17477. if test -f $srcdir/config.status; then
  17478. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17479. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17480. - { (exit 1); exit 1; }; }
  17481. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  17482. fi
  17483. fi
  17484. @@ -2449,112 +2936,6 @@
  17485. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17486. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  17487. -
  17488. -# Installed binaries are usually stripped using `strip' when the user
  17489. -# run `make install-strip'. However `strip' might not be the right
  17490. -# tool to use in cross-compilation environments, therefore Automake
  17491. -# will honor the `STRIP' environment variable to overrule this program.
  17492. -if test "$cross_compiling" != no; then
  17493. - if test -n "$ac_tool_prefix"; then
  17494. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17495. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  17496. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17497. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17498. -if test "${ac_cv_prog_STRIP+set}" = set; then
  17499. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17500. -else
  17501. - if test -n "$STRIP"; then
  17502. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17503. -else
  17504. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17505. -for as_dir in $PATH
  17506. -do
  17507. - IFS=$as_save_IFS
  17508. - test -z "$as_dir" && as_dir=.
  17509. - for ac_exec_ext in '' $ac_executable_extensions; do
  17510. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17511. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17512. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17513. - break 2
  17514. - fi
  17515. -done
  17516. -done
  17517. -IFS=$as_save_IFS
  17518. -
  17519. -fi
  17520. -fi
  17521. -STRIP=$ac_cv_prog_STRIP
  17522. -if test -n "$STRIP"; then
  17523. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  17524. -echo "${ECHO_T}$STRIP" >&6; }
  17525. -else
  17526. - { echo "$as_me:$LINENO: result: no" >&5
  17527. -echo "${ECHO_T}no" >&6; }
  17528. -fi
  17529. -
  17530. -
  17531. -fi
  17532. -if test -z "$ac_cv_prog_STRIP"; then
  17533. - ac_ct_STRIP=$STRIP
  17534. - # Extract the first word of "strip", so it can be a program name with args.
  17535. -set dummy strip; ac_word=$2
  17536. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17537. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17538. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17539. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17540. -else
  17541. - if test -n "$ac_ct_STRIP"; then
  17542. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17543. -else
  17544. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17545. -for as_dir in $PATH
  17546. -do
  17547. - IFS=$as_save_IFS
  17548. - test -z "$as_dir" && as_dir=.
  17549. - for ac_exec_ext in '' $ac_executable_extensions; do
  17550. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17551. - ac_cv_prog_ac_ct_STRIP="strip"
  17552. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17553. - break 2
  17554. - fi
  17555. -done
  17556. -done
  17557. -IFS=$as_save_IFS
  17558. -
  17559. -fi
  17560. -fi
  17561. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17562. -if test -n "$ac_ct_STRIP"; then
  17563. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17564. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  17565. -else
  17566. - { echo "$as_me:$LINENO: result: no" >&5
  17567. -echo "${ECHO_T}no" >&6; }
  17568. -fi
  17569. -
  17570. - if test "x$ac_ct_STRIP" = x; then
  17571. - STRIP=":"
  17572. - else
  17573. - case $cross_compiling:$ac_tool_warned in
  17574. -yes:)
  17575. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17576. -whose name does not start with the host triplet. If you think this
  17577. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17578. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17579. -whose name does not start with the host triplet. If you think this
  17580. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17581. -ac_tool_warned=yes ;;
  17582. -esac
  17583. - STRIP=$ac_ct_STRIP
  17584. - fi
  17585. -else
  17586. - STRIP="$ac_cv_prog_STRIP"
  17587. -fi
  17588. -
  17589. -fi
  17590. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17591. -
  17592. # We need awk for the "check" target. The system "awk" is bad on
  17593. # some platforms.
  17594. # Always define AMTAR for backward compatibility.
  17595. @@ -2567,17 +2948,18 @@
  17596. -{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17597. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  17598. +
  17599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17600. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  17601. # Check whether --enable-maintainer-mode was given.
  17602. -if test "${enable_maintainer_mode+set}" = set; then
  17603. +if test "${enable_maintainer_mode+set}" = set; then :
  17604. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  17605. else
  17606. USE_MAINTAINER_MODE=no
  17607. fi
  17608. - { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  17609. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  17610. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  17611. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  17612. if test $USE_MAINTAINER_MODE = yes; then
  17613. MAINTAINER_MODE_TRUE=
  17614. MAINTAINER_MODE_FALSE='#'
  17615. @@ -2620,10 +3002,10 @@
  17616. if test -n "$ac_tool_prefix"; then
  17617. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17618. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17619. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17620. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17621. -if test "${ac_cv_prog_CC+set}" = set; then
  17622. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17623. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17624. +$as_echo_n "checking for $ac_word... " >&6; }
  17625. +if test "${ac_cv_prog_CC+set}" = set; then :
  17626. + $as_echo_n "(cached) " >&6
  17627. else
  17628. if test -n "$CC"; then
  17629. ac_cv_prog_CC="$CC" # Let the user override the test.
  17630. @@ -2633,25 +3015,25 @@
  17631. do
  17632. IFS=$as_save_IFS
  17633. test -z "$as_dir" && as_dir=.
  17634. - for ac_exec_ext in '' $ac_executable_extensions; do
  17635. + for ac_exec_ext in '' $ac_executable_extensions; do
  17636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17637. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17638. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17639. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17640. break 2
  17641. fi
  17642. done
  17643. -done
  17644. + done
  17645. IFS=$as_save_IFS
  17646. fi
  17647. fi
  17648. CC=$ac_cv_prog_CC
  17649. if test -n "$CC"; then
  17650. - { echo "$as_me:$LINENO: result: $CC" >&5
  17651. -echo "${ECHO_T}$CC" >&6; }
  17652. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17653. +$as_echo "$CC" >&6; }
  17654. else
  17655. - { echo "$as_me:$LINENO: result: no" >&5
  17656. -echo "${ECHO_T}no" >&6; }
  17657. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17658. +$as_echo "no" >&6; }
  17659. fi
  17660. @@ -2660,10 +3042,10 @@
  17661. ac_ct_CC=$CC
  17662. # Extract the first word of "gcc", so it can be a program name with args.
  17663. set dummy gcc; ac_word=$2
  17664. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17665. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17666. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17667. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17668. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17669. +$as_echo_n "checking for $ac_word... " >&6; }
  17670. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17671. + $as_echo_n "(cached) " >&6
  17672. else
  17673. if test -n "$ac_ct_CC"; then
  17674. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17675. @@ -2673,25 +3055,25 @@
  17676. do
  17677. IFS=$as_save_IFS
  17678. test -z "$as_dir" && as_dir=.
  17679. - for ac_exec_ext in '' $ac_executable_extensions; do
  17680. + for ac_exec_ext in '' $ac_executable_extensions; do
  17681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17682. ac_cv_prog_ac_ct_CC="gcc"
  17683. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17684. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17685. break 2
  17686. fi
  17687. done
  17688. -done
  17689. + done
  17690. IFS=$as_save_IFS
  17691. fi
  17692. fi
  17693. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17694. if test -n "$ac_ct_CC"; then
  17695. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17696. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  17697. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  17698. +$as_echo "$ac_ct_CC" >&6; }
  17699. else
  17700. - { echo "$as_me:$LINENO: result: no" >&5
  17701. -echo "${ECHO_T}no" >&6; }
  17702. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17703. +$as_echo "no" >&6; }
  17704. fi
  17705. if test "x$ac_ct_CC" = x; then
  17706. @@ -2699,12 +3081,8 @@
  17707. else
  17708. case $cross_compiling:$ac_tool_warned in
  17709. yes:)
  17710. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17711. -whose name does not start with the host triplet. If you think this
  17712. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17713. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17714. -whose name does not start with the host triplet. If you think this
  17715. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17716. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17717. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17718. ac_tool_warned=yes ;;
  17719. esac
  17720. CC=$ac_ct_CC
  17721. @@ -2717,10 +3095,10 @@
  17722. if test -n "$ac_tool_prefix"; then
  17723. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17724. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17725. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17726. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17727. -if test "${ac_cv_prog_CC+set}" = set; then
  17728. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17730. +$as_echo_n "checking for $ac_word... " >&6; }
  17731. +if test "${ac_cv_prog_CC+set}" = set; then :
  17732. + $as_echo_n "(cached) " >&6
  17733. else
  17734. if test -n "$CC"; then
  17735. ac_cv_prog_CC="$CC" # Let the user override the test.
  17736. @@ -2730,25 +3108,25 @@
  17737. do
  17738. IFS=$as_save_IFS
  17739. test -z "$as_dir" && as_dir=.
  17740. - for ac_exec_ext in '' $ac_executable_extensions; do
  17741. + for ac_exec_ext in '' $ac_executable_extensions; do
  17742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17743. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17744. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17745. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17746. break 2
  17747. fi
  17748. done
  17749. -done
  17750. + done
  17751. IFS=$as_save_IFS
  17752. fi
  17753. fi
  17754. CC=$ac_cv_prog_CC
  17755. if test -n "$CC"; then
  17756. - { echo "$as_me:$LINENO: result: $CC" >&5
  17757. -echo "${ECHO_T}$CC" >&6; }
  17758. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17759. +$as_echo "$CC" >&6; }
  17760. else
  17761. - { echo "$as_me:$LINENO: result: no" >&5
  17762. -echo "${ECHO_T}no" >&6; }
  17763. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17764. +$as_echo "no" >&6; }
  17765. fi
  17766. @@ -2757,10 +3135,10 @@
  17767. if test -z "$CC"; then
  17768. # Extract the first word of "cc", so it can be a program name with args.
  17769. set dummy cc; ac_word=$2
  17770. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17771. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17772. -if test "${ac_cv_prog_CC+set}" = set; then
  17773. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17774. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17775. +$as_echo_n "checking for $ac_word... " >&6; }
  17776. +if test "${ac_cv_prog_CC+set}" = set; then :
  17777. + $as_echo_n "(cached) " >&6
  17778. else
  17779. if test -n "$CC"; then
  17780. ac_cv_prog_CC="$CC" # Let the user override the test.
  17781. @@ -2771,18 +3149,18 @@
  17782. do
  17783. IFS=$as_save_IFS
  17784. test -z "$as_dir" && as_dir=.
  17785. - for ac_exec_ext in '' $ac_executable_extensions; do
  17786. + for ac_exec_ext in '' $ac_executable_extensions; do
  17787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17788. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17789. ac_prog_rejected=yes
  17790. continue
  17791. fi
  17792. ac_cv_prog_CC="cc"
  17793. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17794. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17795. break 2
  17796. fi
  17797. done
  17798. -done
  17799. + done
  17800. IFS=$as_save_IFS
  17801. if test $ac_prog_rejected = yes; then
  17802. @@ -2801,11 +3179,11 @@
  17803. fi
  17804. CC=$ac_cv_prog_CC
  17805. if test -n "$CC"; then
  17806. - { echo "$as_me:$LINENO: result: $CC" >&5
  17807. -echo "${ECHO_T}$CC" >&6; }
  17808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17809. +$as_echo "$CC" >&6; }
  17810. else
  17811. - { echo "$as_me:$LINENO: result: no" >&5
  17812. -echo "${ECHO_T}no" >&6; }
  17813. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17814. +$as_echo "no" >&6; }
  17815. fi
  17816. @@ -2816,10 +3194,10 @@
  17817. do
  17818. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17819. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17820. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17821. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17822. -if test "${ac_cv_prog_CC+set}" = set; then
  17823. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17825. +$as_echo_n "checking for $ac_word... " >&6; }
  17826. +if test "${ac_cv_prog_CC+set}" = set; then :
  17827. + $as_echo_n "(cached) " >&6
  17828. else
  17829. if test -n "$CC"; then
  17830. ac_cv_prog_CC="$CC" # Let the user override the test.
  17831. @@ -2829,25 +3207,25 @@
  17832. do
  17833. IFS=$as_save_IFS
  17834. test -z "$as_dir" && as_dir=.
  17835. - for ac_exec_ext in '' $ac_executable_extensions; do
  17836. + for ac_exec_ext in '' $ac_executable_extensions; do
  17837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17838. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17839. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17840. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17841. break 2
  17842. fi
  17843. done
  17844. -done
  17845. + done
  17846. IFS=$as_save_IFS
  17847. fi
  17848. fi
  17849. CC=$ac_cv_prog_CC
  17850. if test -n "$CC"; then
  17851. - { echo "$as_me:$LINENO: result: $CC" >&5
  17852. -echo "${ECHO_T}$CC" >&6; }
  17853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17854. +$as_echo "$CC" >&6; }
  17855. else
  17856. - { echo "$as_me:$LINENO: result: no" >&5
  17857. -echo "${ECHO_T}no" >&6; }
  17858. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17859. +$as_echo "no" >&6; }
  17860. fi
  17861. @@ -2860,10 +3238,10 @@
  17862. do
  17863. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17864. set dummy $ac_prog; ac_word=$2
  17865. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17866. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17867. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17868. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17870. +$as_echo_n "checking for $ac_word... " >&6; }
  17871. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17872. + $as_echo_n "(cached) " >&6
  17873. else
  17874. if test -n "$ac_ct_CC"; then
  17875. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17876. @@ -2873,25 +3251,25 @@
  17877. do
  17878. IFS=$as_save_IFS
  17879. test -z "$as_dir" && as_dir=.
  17880. - for ac_exec_ext in '' $ac_executable_extensions; do
  17881. + for ac_exec_ext in '' $ac_executable_extensions; do
  17882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17883. ac_cv_prog_ac_ct_CC="$ac_prog"
  17884. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17885. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17886. break 2
  17887. fi
  17888. done
  17889. -done
  17890. + done
  17891. IFS=$as_save_IFS
  17892. fi
  17893. fi
  17894. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17895. if test -n "$ac_ct_CC"; then
  17896. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17897. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  17898. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  17899. +$as_echo "$ac_ct_CC" >&6; }
  17900. else
  17901. - { echo "$as_me:$LINENO: result: no" >&5
  17902. -echo "${ECHO_T}no" >&6; }
  17903. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17904. +$as_echo "no" >&6; }
  17905. fi
  17906. @@ -2903,12 +3281,8 @@
  17907. else
  17908. case $cross_compiling:$ac_tool_warned in
  17909. yes:)
  17910. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17911. -whose name does not start with the host triplet. If you think this
  17912. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  17913. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17914. -whose name does not start with the host triplet. If you think this
  17915. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17916. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17917. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17918. ac_tool_warned=yes ;;
  17919. esac
  17920. CC=$ac_ct_CC
  17921. @@ -2918,51 +3292,37 @@
  17922. fi
  17923. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17924. -See \`config.log' for more details." >&5
  17925. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  17926. -See \`config.log' for more details." >&2;}
  17927. - { (exit 1); exit 1; }; }
  17928. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17929. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17930. +as_fn_error "no acceptable C compiler found in \$PATH
  17931. +See \`config.log' for more details." "$LINENO" 5; }
  17932. # Provide some information about the compiler.
  17933. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  17934. -ac_compiler=`set X $ac_compile; echo $2`
  17935. -{ (ac_try="$ac_compiler --version >&5"
  17936. -case "(($ac_try" in
  17937. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17938. - *) ac_try_echo=$ac_try;;
  17939. -esac
  17940. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17941. - (eval "$ac_compiler --version >&5") 2>&5
  17942. - ac_status=$?
  17943. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17944. - (exit $ac_status); }
  17945. -{ (ac_try="$ac_compiler -v >&5"
  17946. -case "(($ac_try" in
  17947. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17948. - *) ac_try_echo=$ac_try;;
  17949. -esac
  17950. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17951. - (eval "$ac_compiler -v >&5") 2>&5
  17952. - ac_status=$?
  17953. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17954. - (exit $ac_status); }
  17955. -{ (ac_try="$ac_compiler -V >&5"
  17956. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  17957. +set X $ac_compile
  17958. +ac_compiler=$2
  17959. +for ac_option in --version -v -V -qversion; do
  17960. + { { ac_try="$ac_compiler $ac_option >&5"
  17961. case "(($ac_try" in
  17962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17963. *) ac_try_echo=$ac_try;;
  17964. esac
  17965. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17966. - (eval "$ac_compiler -V >&5") 2>&5
  17967. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17968. +$as_echo "$ac_try_echo"; } >&5
  17969. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  17970. ac_status=$?
  17971. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17972. - (exit $ac_status); }
  17973. + if test -s conftest.err; then
  17974. + sed '10a\
  17975. +... rest of stderr output deleted ...
  17976. + 10q' conftest.err >conftest.er1
  17977. + cat conftest.er1 >&5
  17978. + fi
  17979. + rm -f conftest.er1 conftest.err
  17980. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17981. + test $ac_status = 0; }
  17982. +done
  17983. -cat >conftest.$ac_ext <<_ACEOF
  17984. -/* confdefs.h. */
  17985. -_ACEOF
  17986. -cat confdefs.h >>conftest.$ac_ext
  17987. -cat >>conftest.$ac_ext <<_ACEOF
  17988. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17989. /* end confdefs.h. */
  17990. int
  17991. @@ -2974,42 +3334,38 @@
  17992. }
  17993. _ACEOF
  17994. ac_clean_files_save=$ac_clean_files
  17995. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  17996. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  17997. # Try to create an executable without -o first, disregard a.out.
  17998. # It will help us diagnose broken compilers, and finding out an intuition
  17999. # of exeext.
  18000. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  18001. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  18002. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18003. -#
  18004. -# List of possible output files, starting from the most likely.
  18005. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  18006. -# only as a last resort. b.out is created by i960 compilers.
  18007. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  18008. -#
  18009. -# The IRIX 6 linker writes into existing files which may not be
  18010. -# executable, retaining their permissions. Remove them first so a
  18011. -# subsequent execution test works.
  18012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  18013. +$as_echo_n "checking whether the C compiler works... " >&6; }
  18014. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  18015. +
  18016. +# The possible output files:
  18017. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  18018. +
  18019. ac_rmfiles=
  18020. for ac_file in $ac_files
  18021. do
  18022. case $ac_file in
  18023. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  18024. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18025. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  18026. esac
  18027. done
  18028. rm -f $ac_rmfiles
  18029. -if { (ac_try="$ac_link_default"
  18030. +if { { ac_try="$ac_link_default"
  18031. case "(($ac_try" in
  18032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18033. *) ac_try_echo=$ac_try;;
  18034. esac
  18035. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18036. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18037. +$as_echo "$ac_try_echo"; } >&5
  18038. (eval "$ac_link_default") 2>&5
  18039. ac_status=$?
  18040. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18041. - (exit $ac_status); }; then
  18042. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18043. + test $ac_status = 0; }; then :
  18044. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  18045. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  18046. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  18047. @@ -3019,14 +3375,14 @@
  18048. do
  18049. test -f "$ac_file" || continue
  18050. case $ac_file in
  18051. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  18052. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  18053. ;;
  18054. [ab].out )
  18055. # We found the default executable, but exeext='' is most
  18056. # certainly right.
  18057. break;;
  18058. *.* )
  18059. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  18060. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  18061. then :; else
  18062. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18063. fi
  18064. @@ -3045,78 +3401,42 @@
  18065. else
  18066. ac_file=''
  18067. fi
  18068. -
  18069. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  18070. -echo "${ECHO_T}$ac_file" >&6; }
  18071. -if test -z "$ac_file"; then
  18072. - echo "$as_me: failed program was:" >&5
  18073. -sed 's/^/| /' conftest.$ac_ext >&5
  18074. -
  18075. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  18076. -See \`config.log' for more details." >&5
  18077. -echo "$as_me: error: C compiler cannot create executables
  18078. -See \`config.log' for more details." >&2;}
  18079. - { (exit 77); exit 77; }; }
  18080. -fi
  18081. -
  18082. +if test -z "$ac_file"; then :
  18083. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18084. +$as_echo "no" >&6; }
  18085. +$as_echo "$as_me: failed program was:" >&5
  18086. +sed 's/^/| /' conftest.$ac_ext >&5
  18087. +
  18088. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18089. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18090. +{ as_fn_set_status 77
  18091. +as_fn_error "C compiler cannot create executables
  18092. +See \`config.log' for more details." "$LINENO" 5; }; }
  18093. +else
  18094. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18095. +$as_echo "yes" >&6; }
  18096. +fi
  18097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  18098. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  18099. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  18100. +$as_echo "$ac_file" >&6; }
  18101. ac_exeext=$ac_cv_exeext
  18102. -# Check that the compiler produces executables we can run. If not, either
  18103. -# the compiler is broken, or we cross compile.
  18104. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  18105. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  18106. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  18107. -# If not cross compiling, check that we can run a simple program.
  18108. -if test "$cross_compiling" != yes; then
  18109. - if { ac_try='./$ac_file'
  18110. - { (case "(($ac_try" in
  18111. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18112. - *) ac_try_echo=$ac_try;;
  18113. -esac
  18114. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18115. - (eval "$ac_try") 2>&5
  18116. - ac_status=$?
  18117. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18118. - (exit $ac_status); }; }; then
  18119. - cross_compiling=no
  18120. - else
  18121. - if test "$cross_compiling" = maybe; then
  18122. - cross_compiling=yes
  18123. - else
  18124. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  18125. -If you meant to cross compile, use \`--host'.
  18126. -See \`config.log' for more details." >&5
  18127. -echo "$as_me: error: cannot run C compiled programs.
  18128. -If you meant to cross compile, use \`--host'.
  18129. -See \`config.log' for more details." >&2;}
  18130. - { (exit 1); exit 1; }; }
  18131. - fi
  18132. - fi
  18133. -fi
  18134. -{ echo "$as_me:$LINENO: result: yes" >&5
  18135. -echo "${ECHO_T}yes" >&6; }
  18136. -
  18137. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  18138. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  18139. ac_clean_files=$ac_clean_files_save
  18140. -# Check that the compiler produces executables we can run. If not, either
  18141. -# the compiler is broken, or we cross compile.
  18142. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  18143. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  18144. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  18145. -echo "${ECHO_T}$cross_compiling" >&6; }
  18146. -
  18147. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  18148. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  18149. -if { (ac_try="$ac_link"
  18150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  18151. +$as_echo_n "checking for suffix of executables... " >&6; }
  18152. +if { { ac_try="$ac_link"
  18153. case "(($ac_try" in
  18154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18155. *) ac_try_echo=$ac_try;;
  18156. esac
  18157. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18158. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18159. +$as_echo "$ac_try_echo"; } >&5
  18160. (eval "$ac_link") 2>&5
  18161. ac_status=$?
  18162. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18163. - (exit $ac_status); }; then
  18164. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18165. + test $ac_status = 0; }; then :
  18166. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  18167. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  18168. # work properly (i.e., refer to `conftest.exe'), while it won't with
  18169. @@ -3124,154 +3444,182 @@
  18170. for ac_file in conftest.exe conftest conftest.*; do
  18171. test -f "$ac_file" || continue
  18172. case $ac_file in
  18173. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  18174. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  18175. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  18176. break;;
  18177. * ) break;;
  18178. esac
  18179. done
  18180. else
  18181. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  18182. -See \`config.log' for more details." >&5
  18183. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  18184. -See \`config.log' for more details." >&2;}
  18185. - { (exit 1); exit 1; }; }
  18186. -fi
  18187. -
  18188. -rm -f conftest$ac_cv_exeext
  18189. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  18190. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  18191. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18192. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18193. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  18194. +See \`config.log' for more details." "$LINENO" 5; }
  18195. +fi
  18196. +rm -f conftest conftest$ac_cv_exeext
  18197. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  18198. +$as_echo "$ac_cv_exeext" >&6; }
  18199. rm -f conftest.$ac_ext
  18200. EXEEXT=$ac_cv_exeext
  18201. ac_exeext=$EXEEXT
  18202. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  18203. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  18204. -if test "${ac_cv_objext+set}" = set; then
  18205. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18206. -else
  18207. - cat >conftest.$ac_ext <<_ACEOF
  18208. -/* confdefs.h. */
  18209. -_ACEOF
  18210. -cat confdefs.h >>conftest.$ac_ext
  18211. -cat >>conftest.$ac_ext <<_ACEOF
  18212. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18213. /* end confdefs.h. */
  18214. -
  18215. +#include <stdio.h>
  18216. int
  18217. main ()
  18218. {
  18219. +FILE *f = fopen ("conftest.out", "w");
  18220. + return ferror (f) || fclose (f) != 0;
  18221. ;
  18222. return 0;
  18223. }
  18224. _ACEOF
  18225. -rm -f conftest.o conftest.obj
  18226. -if { (ac_try="$ac_compile"
  18227. +ac_clean_files="$ac_clean_files conftest.out"
  18228. +# Check that the compiler produces executables we can run. If not, either
  18229. +# the compiler is broken, or we cross compile.
  18230. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  18231. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  18232. +if test "$cross_compiling" != yes; then
  18233. + { { ac_try="$ac_link"
  18234. case "(($ac_try" in
  18235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18236. *) ac_try_echo=$ac_try;;
  18237. esac
  18238. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18239. - (eval "$ac_compile") 2>&5
  18240. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18241. +$as_echo "$ac_try_echo"; } >&5
  18242. + (eval "$ac_link") 2>&5
  18243. ac_status=$?
  18244. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18245. - (exit $ac_status); }; then
  18246. - for ac_file in conftest.o conftest.obj conftest.*; do
  18247. - test -f "$ac_file" || continue;
  18248. - case $ac_file in
  18249. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  18250. - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  18251. - break;;
  18252. - esac
  18253. -done
  18254. -else
  18255. - echo "$as_me: failed program was:" >&5
  18256. -sed 's/^/| /' conftest.$ac_ext >&5
  18257. -
  18258. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  18259. -See \`config.log' for more details." >&5
  18260. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  18261. -See \`config.log' for more details." >&2;}
  18262. - { (exit 1); exit 1; }; }
  18263. -fi
  18264. -
  18265. -rm -f conftest.$ac_cv_objext conftest.$ac_ext
  18266. -fi
  18267. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  18268. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  18269. -OBJEXT=$ac_cv_objext
  18270. -ac_objext=$OBJEXT
  18271. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  18272. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  18273. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  18274. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18275. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18276. + test $ac_status = 0; }
  18277. + if { ac_try='./conftest$ac_cv_exeext'
  18278. + { { case "(($ac_try" in
  18279. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18280. + *) ac_try_echo=$ac_try;;
  18281. +esac
  18282. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18283. +$as_echo "$ac_try_echo"; } >&5
  18284. + (eval "$ac_try") 2>&5
  18285. + ac_status=$?
  18286. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18287. + test $ac_status = 0; }; }; then
  18288. + cross_compiling=no
  18289. + else
  18290. + if test "$cross_compiling" = maybe; then
  18291. + cross_compiling=yes
  18292. + else
  18293. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18294. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18295. +as_fn_error "cannot run C compiled programs.
  18296. +If you meant to cross compile, use \`--host'.
  18297. +See \`config.log' for more details." "$LINENO" 5; }
  18298. + fi
  18299. + fi
  18300. +fi
  18301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  18302. +$as_echo "$cross_compiling" >&6; }
  18303. +
  18304. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  18305. +ac_clean_files=$ac_clean_files_save
  18306. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  18307. +$as_echo_n "checking for suffix of object files... " >&6; }
  18308. +if test "${ac_cv_objext+set}" = set; then :
  18309. + $as_echo_n "(cached) " >&6
  18310. else
  18311. - cat >conftest.$ac_ext <<_ACEOF
  18312. -/* confdefs.h. */
  18313. -_ACEOF
  18314. -cat confdefs.h >>conftest.$ac_ext
  18315. -cat >>conftest.$ac_ext <<_ACEOF
  18316. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18317. /* end confdefs.h. */
  18318. int
  18319. main ()
  18320. {
  18321. -#ifndef __GNUC__
  18322. - choke me
  18323. -#endif
  18324. ;
  18325. return 0;
  18326. }
  18327. _ACEOF
  18328. -rm -f conftest.$ac_objext
  18329. -if { (ac_try="$ac_compile"
  18330. +rm -f conftest.o conftest.obj
  18331. +if { { ac_try="$ac_compile"
  18332. case "(($ac_try" in
  18333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18334. *) ac_try_echo=$ac_try;;
  18335. esac
  18336. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18337. - (eval "$ac_compile") 2>conftest.er1
  18338. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18339. +$as_echo "$ac_try_echo"; } >&5
  18340. + (eval "$ac_compile") 2>&5
  18341. ac_status=$?
  18342. - grep -v '^ *+' conftest.er1 >conftest.err
  18343. - rm -f conftest.er1
  18344. - cat conftest.err >&5
  18345. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18346. - (exit $ac_status); } && {
  18347. - test -z "$ac_c_werror_flag" ||
  18348. - test ! -s conftest.err
  18349. - } && test -s conftest.$ac_objext; then
  18350. - ac_compiler_gnu=yes
  18351. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18352. + test $ac_status = 0; }; then :
  18353. + for ac_file in conftest.o conftest.obj conftest.*; do
  18354. + test -f "$ac_file" || continue;
  18355. + case $ac_file in
  18356. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  18357. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  18358. + break;;
  18359. + esac
  18360. +done
  18361. else
  18362. - echo "$as_me: failed program was:" >&5
  18363. + $as_echo "$as_me: failed program was:" >&5
  18364. sed 's/^/| /' conftest.$ac_ext >&5
  18365. - ac_compiler_gnu=no
  18366. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18367. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18368. +as_fn_error "cannot compute suffix of object files: cannot compile
  18369. +See \`config.log' for more details." "$LINENO" 5; }
  18370. +fi
  18371. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  18372. fi
  18373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  18374. +$as_echo "$ac_cv_objext" >&6; }
  18375. +OBJEXT=$ac_cv_objext
  18376. +ac_objext=$OBJEXT
  18377. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  18378. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  18379. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  18380. + $as_echo_n "(cached) " >&6
  18381. +else
  18382. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18383. +/* end confdefs.h. */
  18384. +int
  18385. +main ()
  18386. +{
  18387. +#ifndef __GNUC__
  18388. + choke me
  18389. +#endif
  18390. +
  18391. + ;
  18392. + return 0;
  18393. +}
  18394. +_ACEOF
  18395. +if ac_fn_c_try_compile "$LINENO"; then :
  18396. + ac_compiler_gnu=yes
  18397. +else
  18398. + ac_compiler_gnu=no
  18399. +fi
  18400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18401. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  18402. fi
  18403. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  18404. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  18405. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  18406. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  18407. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  18408. +if test $ac_compiler_gnu = yes; then
  18409. + GCC=yes
  18410. +else
  18411. + GCC=
  18412. +fi
  18413. ac_test_CFLAGS=${CFLAGS+set}
  18414. ac_save_CFLAGS=$CFLAGS
  18415. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  18416. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  18417. -if test "${ac_cv_prog_cc_g+set}" = set; then
  18418. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18419. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  18420. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  18421. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  18422. + $as_echo_n "(cached) " >&6
  18423. else
  18424. ac_save_c_werror_flag=$ac_c_werror_flag
  18425. ac_c_werror_flag=yes
  18426. ac_cv_prog_cc_g=no
  18427. CFLAGS="-g"
  18428. - cat >conftest.$ac_ext <<_ACEOF
  18429. -/* confdefs.h. */
  18430. -_ACEOF
  18431. -cat confdefs.h >>conftest.$ac_ext
  18432. -cat >>conftest.$ac_ext <<_ACEOF
  18433. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18434. /* end confdefs.h. */
  18435. int
  18436. @@ -3282,34 +3630,11 @@
  18437. return 0;
  18438. }
  18439. _ACEOF
  18440. -rm -f conftest.$ac_objext
  18441. -if { (ac_try="$ac_compile"
  18442. -case "(($ac_try" in
  18443. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18444. - *) ac_try_echo=$ac_try;;
  18445. -esac
  18446. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18447. - (eval "$ac_compile") 2>conftest.er1
  18448. - ac_status=$?
  18449. - grep -v '^ *+' conftest.er1 >conftest.err
  18450. - rm -f conftest.er1
  18451. - cat conftest.err >&5
  18452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18453. - (exit $ac_status); } && {
  18454. - test -z "$ac_c_werror_flag" ||
  18455. - test ! -s conftest.err
  18456. - } && test -s conftest.$ac_objext; then
  18457. +if ac_fn_c_try_compile "$LINENO"; then :
  18458. ac_cv_prog_cc_g=yes
  18459. else
  18460. - echo "$as_me: failed program was:" >&5
  18461. -sed 's/^/| /' conftest.$ac_ext >&5
  18462. -
  18463. - CFLAGS=""
  18464. - cat >conftest.$ac_ext <<_ACEOF
  18465. -/* confdefs.h. */
  18466. -_ACEOF
  18467. -cat confdefs.h >>conftest.$ac_ext
  18468. -cat >>conftest.$ac_ext <<_ACEOF
  18469. + CFLAGS=""
  18470. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18471. /* end confdefs.h. */
  18472. int
  18473. @@ -3320,35 +3645,12 @@
  18474. return 0;
  18475. }
  18476. _ACEOF
  18477. -rm -f conftest.$ac_objext
  18478. -if { (ac_try="$ac_compile"
  18479. -case "(($ac_try" in
  18480. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18481. - *) ac_try_echo=$ac_try;;
  18482. -esac
  18483. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18484. - (eval "$ac_compile") 2>conftest.er1
  18485. - ac_status=$?
  18486. - grep -v '^ *+' conftest.er1 >conftest.err
  18487. - rm -f conftest.er1
  18488. - cat conftest.err >&5
  18489. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18490. - (exit $ac_status); } && {
  18491. - test -z "$ac_c_werror_flag" ||
  18492. - test ! -s conftest.err
  18493. - } && test -s conftest.$ac_objext; then
  18494. - :
  18495. -else
  18496. - echo "$as_me: failed program was:" >&5
  18497. -sed 's/^/| /' conftest.$ac_ext >&5
  18498. +if ac_fn_c_try_compile "$LINENO"; then :
  18499. - ac_c_werror_flag=$ac_save_c_werror_flag
  18500. +else
  18501. + ac_c_werror_flag=$ac_save_c_werror_flag
  18502. CFLAGS="-g"
  18503. - cat >conftest.$ac_ext <<_ACEOF
  18504. -/* confdefs.h. */
  18505. -_ACEOF
  18506. -cat confdefs.h >>conftest.$ac_ext
  18507. -cat >>conftest.$ac_ext <<_ACEOF
  18508. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18509. /* end confdefs.h. */
  18510. int
  18511. @@ -3359,42 +3661,18 @@
  18512. return 0;
  18513. }
  18514. _ACEOF
  18515. -rm -f conftest.$ac_objext
  18516. -if { (ac_try="$ac_compile"
  18517. -case "(($ac_try" in
  18518. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18519. - *) ac_try_echo=$ac_try;;
  18520. -esac
  18521. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18522. - (eval "$ac_compile") 2>conftest.er1
  18523. - ac_status=$?
  18524. - grep -v '^ *+' conftest.er1 >conftest.err
  18525. - rm -f conftest.er1
  18526. - cat conftest.err >&5
  18527. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18528. - (exit $ac_status); } && {
  18529. - test -z "$ac_c_werror_flag" ||
  18530. - test ! -s conftest.err
  18531. - } && test -s conftest.$ac_objext; then
  18532. +if ac_fn_c_try_compile "$LINENO"; then :
  18533. ac_cv_prog_cc_g=yes
  18534. -else
  18535. - echo "$as_me: failed program was:" >&5
  18536. -sed 's/^/| /' conftest.$ac_ext >&5
  18537. -
  18538. -
  18539. fi
  18540. -
  18541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18542. fi
  18543. -
  18544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18545. fi
  18546. -
  18547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18548. ac_c_werror_flag=$ac_save_c_werror_flag
  18549. fi
  18550. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  18551. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  18552. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  18553. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  18554. if test "$ac_test_CFLAGS" = set; then
  18555. CFLAGS=$ac_save_CFLAGS
  18556. elif test $ac_cv_prog_cc_g = yes; then
  18557. @@ -3410,18 +3688,14 @@
  18558. CFLAGS=
  18559. fi
  18560. fi
  18561. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18562. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18563. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  18564. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18565. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  18566. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  18567. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  18568. + $as_echo_n "(cached) " >&6
  18569. else
  18570. ac_cv_prog_cc_c89=no
  18571. ac_save_CC=$CC
  18572. -cat >conftest.$ac_ext <<_ACEOF
  18573. -/* confdefs.h. */
  18574. -_ACEOF
  18575. -cat confdefs.h >>conftest.$ac_ext
  18576. -cat >>conftest.$ac_ext <<_ACEOF
  18577. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18578. /* end confdefs.h. */
  18579. #include <stdarg.h>
  18580. #include <stdio.h>
  18581. @@ -3478,31 +3752,9 @@
  18582. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18583. do
  18584. CC="$ac_save_CC $ac_arg"
  18585. - rm -f conftest.$ac_objext
  18586. -if { (ac_try="$ac_compile"
  18587. -case "(($ac_try" in
  18588. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18589. - *) ac_try_echo=$ac_try;;
  18590. -esac
  18591. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18592. - (eval "$ac_compile") 2>conftest.er1
  18593. - ac_status=$?
  18594. - grep -v '^ *+' conftest.er1 >conftest.err
  18595. - rm -f conftest.er1
  18596. - cat conftest.err >&5
  18597. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18598. - (exit $ac_status); } && {
  18599. - test -z "$ac_c_werror_flag" ||
  18600. - test ! -s conftest.err
  18601. - } && test -s conftest.$ac_objext; then
  18602. + if ac_fn_c_try_compile "$LINENO"; then :
  18603. ac_cv_prog_cc_c89=$ac_arg
  18604. -else
  18605. - echo "$as_me: failed program was:" >&5
  18606. -sed 's/^/| /' conftest.$ac_ext >&5
  18607. -
  18608. -
  18609. fi
  18610. -
  18611. rm -f core conftest.err conftest.$ac_objext
  18612. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18613. done
  18614. @@ -3513,17 +3765,19 @@
  18615. # AC_CACHE_VAL
  18616. case "x$ac_cv_prog_cc_c89" in
  18617. x)
  18618. - { echo "$as_me:$LINENO: result: none needed" >&5
  18619. -echo "${ECHO_T}none needed" >&6; } ;;
  18620. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  18621. +$as_echo "none needed" >&6; } ;;
  18622. xno)
  18623. - { echo "$as_me:$LINENO: result: unsupported" >&5
  18624. -echo "${ECHO_T}unsupported" >&6; } ;;
  18625. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  18626. +$as_echo "unsupported" >&6; } ;;
  18627. *)
  18628. CC="$CC $ac_cv_prog_cc_c89"
  18629. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18630. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18631. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  18632. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  18633. esac
  18634. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  18635. +fi
  18636. ac_ext=c
  18637. ac_cpp='$CPP $CPPFLAGS'
  18638. @@ -3538,44 +3792,44 @@
  18639. am_make=${MAKE-make}
  18640. cat > confinc << 'END'
  18641. am__doit:
  18642. - @echo done
  18643. + @echo this is the am__doit target
  18644. .PHONY: am__doit
  18645. END
  18646. # If we don't find an include directive, just comment out the code.
  18647. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  18648. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  18649. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  18650. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  18651. am__include="#"
  18652. am__quote=
  18653. _am_result=none
  18654. # First try GNU make style include.
  18655. echo "include confinc" > confmf
  18656. -# We grep out `Entering directory' and `Leaving directory'
  18657. -# messages which can occur if `w' ends up in MAKEFLAGS.
  18658. -# In particular we don't look at `^make:' because GNU make might
  18659. -# be invoked under some other name (usually "gmake"), in which
  18660. -# case it prints its new name instead of `make'.
  18661. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  18662. - am__include=include
  18663. - am__quote=
  18664. - _am_result=GNU
  18665. -fi
  18666. +# Ignore all kinds of additional output from `make'.
  18667. +case `$am_make -s -f confmf 2> /dev/null` in #(
  18668. +*the\ am__doit\ target*)
  18669. + am__include=include
  18670. + am__quote=
  18671. + _am_result=GNU
  18672. + ;;
  18673. +esac
  18674. # Now try BSD make style include.
  18675. if test "$am__include" = "#"; then
  18676. echo '.include "confinc"' > confmf
  18677. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  18678. - am__include=.include
  18679. - am__quote="\""
  18680. - _am_result=BSD
  18681. - fi
  18682. + case `$am_make -s -f confmf 2> /dev/null` in #(
  18683. + *the\ am__doit\ target*)
  18684. + am__include=.include
  18685. + am__quote="\""
  18686. + _am_result=BSD
  18687. + ;;
  18688. + esac
  18689. fi
  18690. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  18691. -echo "${ECHO_T}$_am_result" >&6; }
  18692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  18693. +$as_echo "$_am_result" >&6; }
  18694. rm -f confinc confmf
  18695. # Check whether --enable-dependency-tracking was given.
  18696. -if test "${enable_dependency_tracking+set}" = set; then
  18697. +if test "${enable_dependency_tracking+set}" = set; then :
  18698. enableval=$enable_dependency_tracking;
  18699. fi
  18700. @@ -3595,10 +3849,10 @@
  18701. depcc="$CC" am_compiler_list=
  18702. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18703. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18704. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18705. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18706. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  18707. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  18708. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  18709. + $as_echo_n "(cached) " >&6
  18710. else
  18711. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18712. # We make a subdir and do the tests there. Otherwise we can end up
  18713. @@ -3623,6 +3877,11 @@
  18714. if test "$am_compiler_list" = ""; then
  18715. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18716. fi
  18717. + am__universal=false
  18718. + case " $depcc " in #(
  18719. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  18720. + esac
  18721. +
  18722. for depmode in $am_compiler_list; do
  18723. # Setup a source with many dependencies, because some compilers
  18724. # like to wrap large dependency lists on column 80 (with \), and
  18725. @@ -3640,7 +3899,17 @@
  18726. done
  18727. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18728. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18729. + # mode. It turns out that the SunPro C++ compiler does not properly
  18730. + # handle `-M -o', and we need to detect this. Also, some Intel
  18731. + # versions had trouble with output in subdirs
  18732. + am__obj=sub/conftest.${OBJEXT-o}
  18733. + am__minus_obj="-o $am__obj"
  18734. case $depmode in
  18735. + gcc)
  18736. + # This depmode causes a compiler race in universal mode.
  18737. + test "$am__universal" = false || continue
  18738. + ;;
  18739. nosideeffect)
  18740. # after this tag, mechanisms are not by side-effect, so they'll
  18741. # only be used when explicitly requested
  18742. @@ -3650,19 +3919,23 @@
  18743. break
  18744. fi
  18745. ;;
  18746. + msvisualcpp | msvcmsys)
  18747. + # This compiler won't grok `-c -o', but also, the minuso test has
  18748. + # not run yet. These depmodes are late enough in the game, and
  18749. + # so weak that their functioning should not be impacted.
  18750. + am__obj=conftest.${OBJEXT-o}
  18751. + am__minus_obj=
  18752. + ;;
  18753. none) break ;;
  18754. esac
  18755. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18756. - # mode. It turns out that the SunPro C++ compiler does not properly
  18757. - # handle `-M -o', and we need to detect this.
  18758. if depmode=$depmode \
  18759. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18760. + source=sub/conftest.c object=$am__obj \
  18761. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18762. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18763. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  18764. >/dev/null 2>conftest.err &&
  18765. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18766. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18767. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18768. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  18769. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18770. # icc doesn't choke on unknown options, it will just issue warnings
  18771. # or remarks (even with -Werror). So we grep stderr for any message
  18772. @@ -3686,8 +3959,8 @@
  18773. fi
  18774. fi
  18775. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  18776. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  18777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  18778. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  18779. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  18780. if
  18781. @@ -3706,15 +3979,15 @@
  18782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18785. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18786. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  18787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  18788. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  18789. # On Suns, sometimes $CPP names a directory.
  18790. if test -n "$CPP" && test -d "$CPP"; then
  18791. CPP=
  18792. fi
  18793. if test -z "$CPP"; then
  18794. - if test "${ac_cv_prog_CPP+set}" = set; then
  18795. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18796. + if test "${ac_cv_prog_CPP+set}" = set; then :
  18797. + $as_echo_n "(cached) " >&6
  18798. else
  18799. # Double quotes because CPP needs to be expanded
  18800. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18801. @@ -3728,11 +4001,7 @@
  18802. # <limits.h> exists even on freestanding compilers.
  18803. # On the NeXT, cc -E runs the code through the compiler's parser,
  18804. # not just through cpp. "Syntax error" is here to catch this case.
  18805. - cat >conftest.$ac_ext <<_ACEOF
  18806. -/* confdefs.h. */
  18807. -_ACEOF
  18808. -cat confdefs.h >>conftest.$ac_ext
  18809. -cat >>conftest.$ac_ext <<_ACEOF
  18810. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18811. /* end confdefs.h. */
  18812. #ifdef __STDC__
  18813. # include <limits.h>
  18814. @@ -3741,76 +4010,34 @@
  18815. #endif
  18816. Syntax error
  18817. _ACEOF
  18818. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18819. -case "(($ac_try" in
  18820. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18821. - *) ac_try_echo=$ac_try;;
  18822. -esac
  18823. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18824. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18825. - ac_status=$?
  18826. - grep -v '^ *+' conftest.er1 >conftest.err
  18827. - rm -f conftest.er1
  18828. - cat conftest.err >&5
  18829. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18830. - (exit $ac_status); } >/dev/null && {
  18831. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18832. - test ! -s conftest.err
  18833. - }; then
  18834. - :
  18835. -else
  18836. - echo "$as_me: failed program was:" >&5
  18837. -sed 's/^/| /' conftest.$ac_ext >&5
  18838. +if ac_fn_c_try_cpp "$LINENO"; then :
  18839. +else
  18840. # Broken: fails on valid input.
  18841. continue
  18842. fi
  18843. -
  18844. rm -f conftest.err conftest.$ac_ext
  18845. # OK, works on sane cases. Now check whether nonexistent headers
  18846. # can be detected and how.
  18847. - cat >conftest.$ac_ext <<_ACEOF
  18848. -/* confdefs.h. */
  18849. -_ACEOF
  18850. -cat confdefs.h >>conftest.$ac_ext
  18851. -cat >>conftest.$ac_ext <<_ACEOF
  18852. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18853. /* end confdefs.h. */
  18854. #include <ac_nonexistent.h>
  18855. _ACEOF
  18856. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18857. -case "(($ac_try" in
  18858. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18859. - *) ac_try_echo=$ac_try;;
  18860. -esac
  18861. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18862. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18863. - ac_status=$?
  18864. - grep -v '^ *+' conftest.er1 >conftest.err
  18865. - rm -f conftest.er1
  18866. - cat conftest.err >&5
  18867. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18868. - (exit $ac_status); } >/dev/null && {
  18869. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18870. - test ! -s conftest.err
  18871. - }; then
  18872. +if ac_fn_c_try_cpp "$LINENO"; then :
  18873. # Broken: success on invalid input.
  18874. continue
  18875. else
  18876. - echo "$as_me: failed program was:" >&5
  18877. -sed 's/^/| /' conftest.$ac_ext >&5
  18878. -
  18879. # Passes both tests.
  18880. ac_preproc_ok=:
  18881. break
  18882. fi
  18883. -
  18884. rm -f conftest.err conftest.$ac_ext
  18885. done
  18886. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18887. rm -f conftest.err conftest.$ac_ext
  18888. -if $ac_preproc_ok; then
  18889. +if $ac_preproc_ok; then :
  18890. break
  18891. fi
  18892. @@ -3822,8 +4049,8 @@
  18893. else
  18894. ac_cv_prog_CPP=$CPP
  18895. fi
  18896. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  18897. -echo "${ECHO_T}$CPP" >&6; }
  18898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  18899. +$as_echo "$CPP" >&6; }
  18900. ac_preproc_ok=false
  18901. for ac_c_preproc_warn_flag in '' yes
  18902. do
  18903. @@ -3833,11 +4060,7 @@
  18904. # <limits.h> exists even on freestanding compilers.
  18905. # On the NeXT, cc -E runs the code through the compiler's parser,
  18906. # not just through cpp. "Syntax error" is here to catch this case.
  18907. - cat >conftest.$ac_ext <<_ACEOF
  18908. -/* confdefs.h. */
  18909. -_ACEOF
  18910. -cat confdefs.h >>conftest.$ac_ext
  18911. -cat >>conftest.$ac_ext <<_ACEOF
  18912. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18913. /* end confdefs.h. */
  18914. #ifdef __STDC__
  18915. # include <limits.h>
  18916. @@ -3846,83 +4069,40 @@
  18917. #endif
  18918. Syntax error
  18919. _ACEOF
  18920. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18921. -case "(($ac_try" in
  18922. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18923. - *) ac_try_echo=$ac_try;;
  18924. -esac
  18925. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18926. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18927. - ac_status=$?
  18928. - grep -v '^ *+' conftest.er1 >conftest.err
  18929. - rm -f conftest.er1
  18930. - cat conftest.err >&5
  18931. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18932. - (exit $ac_status); } >/dev/null && {
  18933. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18934. - test ! -s conftest.err
  18935. - }; then
  18936. - :
  18937. -else
  18938. - echo "$as_me: failed program was:" >&5
  18939. -sed 's/^/| /' conftest.$ac_ext >&5
  18940. +if ac_fn_c_try_cpp "$LINENO"; then :
  18941. +else
  18942. # Broken: fails on valid input.
  18943. continue
  18944. fi
  18945. -
  18946. rm -f conftest.err conftest.$ac_ext
  18947. # OK, works on sane cases. Now check whether nonexistent headers
  18948. # can be detected and how.
  18949. - cat >conftest.$ac_ext <<_ACEOF
  18950. -/* confdefs.h. */
  18951. -_ACEOF
  18952. -cat confdefs.h >>conftest.$ac_ext
  18953. -cat >>conftest.$ac_ext <<_ACEOF
  18954. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18955. /* end confdefs.h. */
  18956. #include <ac_nonexistent.h>
  18957. _ACEOF
  18958. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  18959. -case "(($ac_try" in
  18960. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18961. - *) ac_try_echo=$ac_try;;
  18962. -esac
  18963. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18964. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18965. - ac_status=$?
  18966. - grep -v '^ *+' conftest.er1 >conftest.err
  18967. - rm -f conftest.er1
  18968. - cat conftest.err >&5
  18969. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18970. - (exit $ac_status); } >/dev/null && {
  18971. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18972. - test ! -s conftest.err
  18973. - }; then
  18974. +if ac_fn_c_try_cpp "$LINENO"; then :
  18975. # Broken: success on invalid input.
  18976. continue
  18977. else
  18978. - echo "$as_me: failed program was:" >&5
  18979. -sed 's/^/| /' conftest.$ac_ext >&5
  18980. -
  18981. # Passes both tests.
  18982. ac_preproc_ok=:
  18983. break
  18984. fi
  18985. -
  18986. rm -f conftest.err conftest.$ac_ext
  18987. done
  18988. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18989. rm -f conftest.err conftest.$ac_ext
  18990. -if $ac_preproc_ok; then
  18991. - :
  18992. +if $ac_preproc_ok; then :
  18993. +
  18994. else
  18995. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  18996. -See \`config.log' for more details." >&5
  18997. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  18998. -See \`config.log' for more details." >&2;}
  18999. - { (exit 1); exit 1; }; }
  19000. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19001. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19002. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  19003. +See \`config.log' for more details." "$LINENO" 5; }
  19004. fi
  19005. ac_ext=c
  19006. @@ -3933,174 +4113,147 @@
  19007. CFLAGS="$cflags_save"
  19008. -# Check whether --enable-shared was given.
  19009. -if test "${enable_shared+set}" = set; then
  19010. - enableval=$enable_shared; p=${PACKAGE-default}
  19011. - case $enableval in
  19012. - yes) enable_shared=yes ;;
  19013. - no) enable_shared=no ;;
  19014. - *)
  19015. - enable_shared=no
  19016. - # Look at the argument we got. We use all the common list separators.
  19017. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19018. - for pkg in $enableval; do
  19019. - IFS="$lt_save_ifs"
  19020. - if test "X$pkg" = "X$p"; then
  19021. - enable_shared=yes
  19022. - fi
  19023. - done
  19024. - IFS="$lt_save_ifs"
  19025. - ;;
  19026. - esac
  19027. -else
  19028. - enable_shared=yes
  19029. -fi
  19030. +case `pwd` in
  19031. + *\ * | *\ *)
  19032. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  19033. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  19034. +esac
  19035. -# Check whether --enable-static was given.
  19036. -if test "${enable_static+set}" = set; then
  19037. - enableval=$enable_static; p=${PACKAGE-default}
  19038. - case $enableval in
  19039. - yes) enable_static=yes ;;
  19040. - no) enable_static=no ;;
  19041. - *)
  19042. - enable_static=no
  19043. - # Look at the argument we got. We use all the common list separators.
  19044. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19045. - for pkg in $enableval; do
  19046. - IFS="$lt_save_ifs"
  19047. - if test "X$pkg" = "X$p"; then
  19048. - enable_static=yes
  19049. - fi
  19050. - done
  19051. - IFS="$lt_save_ifs"
  19052. - ;;
  19053. - esac
  19054. -else
  19055. - enable_static=yes
  19056. -fi
  19057. +macro_version='2.2.6b'
  19058. +macro_revision='1.3017'
  19059. -# Check whether --enable-fast-install was given.
  19060. -if test "${enable_fast_install+set}" = set; then
  19061. - enableval=$enable_fast_install; p=${PACKAGE-default}
  19062. - case $enableval in
  19063. - yes) enable_fast_install=yes ;;
  19064. - no) enable_fast_install=no ;;
  19065. - *)
  19066. - enable_fast_install=no
  19067. - # Look at the argument we got. We use all the common list separators.
  19068. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  19069. - for pkg in $enableval; do
  19070. - IFS="$lt_save_ifs"
  19071. - if test "X$pkg" = "X$p"; then
  19072. - enable_fast_install=yes
  19073. - fi
  19074. - done
  19075. - IFS="$lt_save_ifs"
  19076. - ;;
  19077. - esac
  19078. -else
  19079. - enable_fast_install=yes
  19080. -fi
  19081. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19082. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  19083. -if test "${lt_cv_path_SED+set}" = set; then
  19084. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19085. -else
  19086. - # Loop through the user's path and test for sed and gsed.
  19087. -# Then use that list of sed's as ones to test for truncation.
  19088. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19089. +
  19090. +
  19091. +
  19092. +
  19093. +
  19094. +
  19095. +
  19096. +
  19097. +
  19098. +
  19099. +ltmain="$ac_aux_dir/ltmain.sh"
  19100. +
  19101. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  19102. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  19103. +if test "${ac_cv_path_SED+set}" = set; then :
  19104. + $as_echo_n "(cached) " >&6
  19105. +else
  19106. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19107. + for ac_i in 1 2 3 4 5 6 7; do
  19108. + ac_script="$ac_script$as_nl$ac_script"
  19109. + done
  19110. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  19111. + { ac_script=; unset ac_script;}
  19112. + if test -z "$SED"; then
  19113. + ac_path_SED_found=false
  19114. + # Loop through the user's path and test for each of PROGNAME-LIST
  19115. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19116. for as_dir in $PATH
  19117. do
  19118. IFS=$as_save_IFS
  19119. test -z "$as_dir" && as_dir=.
  19120. - for lt_ac_prog in sed gsed; do
  19121. + for ac_prog in sed gsed; do
  19122. for ac_exec_ext in '' $ac_executable_extensions; do
  19123. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  19124. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  19125. - fi
  19126. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19127. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19128. +# Check for GNU ac_path_SED and select it if it is found.
  19129. + # Check for GNU $ac_path_SED
  19130. +case `"$ac_path_SED" --version 2>&1` in
  19131. +*GNU*)
  19132. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19133. +*)
  19134. + ac_count=0
  19135. + $as_echo_n 0123456789 >"conftest.in"
  19136. + while :
  19137. + do
  19138. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19139. + mv "conftest.tmp" "conftest.in"
  19140. + cp "conftest.in" "conftest.nl"
  19141. + $as_echo '' >> "conftest.nl"
  19142. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19143. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19144. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19145. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  19146. + # Best one so far, save it but keep looking for a better one
  19147. + ac_cv_path_SED="$ac_path_SED"
  19148. + ac_path_SED_max=$ac_count
  19149. + fi
  19150. + # 10*(2^10) chars as input seems more than enough
  19151. + test $ac_count -gt 10 && break
  19152. + done
  19153. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19154. +esac
  19155. +
  19156. + $ac_path_SED_found && break 3
  19157. done
  19158. done
  19159. -done
  19160. -lt_ac_max=0
  19161. -lt_ac_count=0
  19162. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  19163. -# along with /bin/sed that truncates output.
  19164. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  19165. - test ! -f $lt_ac_sed && continue
  19166. - cat /dev/null > conftest.in
  19167. - lt_ac_count=0
  19168. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  19169. - # Check for GNU sed and select it if it is found.
  19170. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  19171. - lt_cv_path_SED=$lt_ac_sed
  19172. - break
  19173. - fi
  19174. - while true; do
  19175. - cat conftest.in conftest.in >conftest.tmp
  19176. - mv conftest.tmp conftest.in
  19177. - cp conftest.in conftest.nl
  19178. - echo >>conftest.nl
  19179. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  19180. - cmp -s conftest.out conftest.nl || break
  19181. - # 10000 chars as input seems more than enough
  19182. - test $lt_ac_count -gt 10 && break
  19183. - lt_ac_count=`expr $lt_ac_count + 1`
  19184. - if test $lt_ac_count -gt $lt_ac_max; then
  19185. - lt_ac_max=$lt_ac_count
  19186. - lt_cv_path_SED=$lt_ac_sed
  19187. - fi
  19188. done
  19189. -done
  19190. +IFS=$as_save_IFS
  19191. + if test -z "$ac_cv_path_SED"; then
  19192. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  19193. + fi
  19194. +else
  19195. + ac_cv_path_SED=$SED
  19196. +fi
  19197. fi
  19198. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  19199. +$as_echo "$ac_cv_path_SED" >&6; }
  19200. + SED="$ac_cv_path_SED"
  19201. + rm -f conftest.sed
  19202. +
  19203. +test -z "$SED" && SED=sed
  19204. +Xsed="$SED -e 1s/^X//"
  19205. +
  19206. +
  19207. +
  19208. -SED=$lt_cv_path_SED
  19209. -{ echo "$as_me:$LINENO: result: $SED" >&5
  19210. -echo "${ECHO_T}$SED" >&6; }
  19211. -
  19212. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  19213. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  19214. -if test "${ac_cv_path_GREP+set}" = set; then
  19215. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19216. -else
  19217. - # Extract the first word of "grep ggrep" to use in msg output
  19218. -if test -z "$GREP"; then
  19219. -set dummy grep ggrep; ac_prog_name=$2
  19220. -if test "${ac_cv_path_GREP+set}" = set; then
  19221. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19222. +
  19223. +
  19224. +
  19225. +
  19226. +
  19227. +
  19228. +
  19229. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  19230. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  19231. +if test "${ac_cv_path_GREP+set}" = set; then :
  19232. + $as_echo_n "(cached) " >&6
  19233. else
  19234. + if test -z "$GREP"; then
  19235. ac_path_GREP_found=false
  19236. -# Loop through the user's path and test for each of PROGNAME-LIST
  19237. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19238. + # Loop through the user's path and test for each of PROGNAME-LIST
  19239. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19240. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19241. do
  19242. IFS=$as_save_IFS
  19243. test -z "$as_dir" && as_dir=.
  19244. - for ac_prog in grep ggrep; do
  19245. - for ac_exec_ext in '' $ac_executable_extensions; do
  19246. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  19247. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  19248. - # Check for GNU ac_path_GREP and select it if it is found.
  19249. + for ac_prog in grep ggrep; do
  19250. + for ac_exec_ext in '' $ac_executable_extensions; do
  19251. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  19252. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  19253. +# Check for GNU ac_path_GREP and select it if it is found.
  19254. # Check for GNU $ac_path_GREP
  19255. case `"$ac_path_GREP" --version 2>&1` in
  19256. *GNU*)
  19257. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  19258. *)
  19259. ac_count=0
  19260. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19261. + $as_echo_n 0123456789 >"conftest.in"
  19262. while :
  19263. do
  19264. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19265. mv "conftest.tmp" "conftest.in"
  19266. cp "conftest.in" "conftest.nl"
  19267. - echo 'GREP' >> "conftest.nl"
  19268. + $as_echo 'GREP' >> "conftest.nl"
  19269. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19270. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19271. - ac_count=`expr $ac_count + 1`
  19272. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19273. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  19274. # Best one so far, save it but keep looking for a better one
  19275. ac_cv_path_GREP="$ac_path_GREP"
  19276. @@ -4112,77 +4265,61 @@
  19277. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19278. esac
  19279. -
  19280. - $ac_path_GREP_found && break 3
  19281. + $ac_path_GREP_found && break 3
  19282. + done
  19283. + done
  19284. done
  19285. -done
  19286. -
  19287. -done
  19288. IFS=$as_save_IFS
  19289. -
  19290. -
  19291. -fi
  19292. -
  19293. -GREP="$ac_cv_path_GREP"
  19294. -if test -z "$GREP"; then
  19295. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  19296. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  19297. - { (exit 1); exit 1; }; }
  19298. -fi
  19299. -
  19300. + if test -z "$ac_cv_path_GREP"; then
  19301. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19302. + fi
  19303. else
  19304. ac_cv_path_GREP=$GREP
  19305. fi
  19306. -
  19307. fi
  19308. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  19309. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  19310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  19311. +$as_echo "$ac_cv_path_GREP" >&6; }
  19312. GREP="$ac_cv_path_GREP"
  19313. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  19314. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  19315. -if test "${ac_cv_path_EGREP+set}" = set; then
  19316. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19317. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  19318. +$as_echo_n "checking for egrep... " >&6; }
  19319. +if test "${ac_cv_path_EGREP+set}" = set; then :
  19320. + $as_echo_n "(cached) " >&6
  19321. else
  19322. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  19323. then ac_cv_path_EGREP="$GREP -E"
  19324. else
  19325. - # Extract the first word of "egrep" to use in msg output
  19326. -if test -z "$EGREP"; then
  19327. -set dummy egrep; ac_prog_name=$2
  19328. -if test "${ac_cv_path_EGREP+set}" = set; then
  19329. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19330. -else
  19331. + if test -z "$EGREP"; then
  19332. ac_path_EGREP_found=false
  19333. -# Loop through the user's path and test for each of PROGNAME-LIST
  19334. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19335. + # Loop through the user's path and test for each of PROGNAME-LIST
  19336. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19337. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19338. do
  19339. IFS=$as_save_IFS
  19340. test -z "$as_dir" && as_dir=.
  19341. - for ac_prog in egrep; do
  19342. - for ac_exec_ext in '' $ac_executable_extensions; do
  19343. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  19344. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  19345. - # Check for GNU ac_path_EGREP and select it if it is found.
  19346. + for ac_prog in egrep; do
  19347. + for ac_exec_ext in '' $ac_executable_extensions; do
  19348. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  19349. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  19350. +# Check for GNU ac_path_EGREP and select it if it is found.
  19351. # Check for GNU $ac_path_EGREP
  19352. case `"$ac_path_EGREP" --version 2>&1` in
  19353. *GNU*)
  19354. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  19355. *)
  19356. ac_count=0
  19357. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19358. + $as_echo_n 0123456789 >"conftest.in"
  19359. while :
  19360. do
  19361. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19362. mv "conftest.tmp" "conftest.in"
  19363. cp "conftest.in" "conftest.nl"
  19364. - echo 'EGREP' >> "conftest.nl"
  19365. + $as_echo 'EGREP' >> "conftest.nl"
  19366. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19367. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19368. - ac_count=`expr $ac_count + 1`
  19369. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19370. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  19371. # Best one so far, save it but keep looking for a better one
  19372. ac_cv_path_EGREP="$ac_path_EGREP"
  19373. @@ -4194,39 +4331,114 @@
  19374. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19375. esac
  19376. -
  19377. - $ac_path_EGREP_found && break 3
  19378. + $ac_path_EGREP_found && break 3
  19379. + done
  19380. + done
  19381. done
  19382. -done
  19383. -
  19384. -done
  19385. IFS=$as_save_IFS
  19386. -
  19387. -
  19388. + if test -z "$ac_cv_path_EGREP"; then
  19389. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19390. + fi
  19391. +else
  19392. + ac_cv_path_EGREP=$EGREP
  19393. fi
  19394. -EGREP="$ac_cv_path_EGREP"
  19395. -if test -z "$EGREP"; then
  19396. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  19397. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  19398. - { (exit 1); exit 1; }; }
  19399. + fi
  19400. fi
  19401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  19402. +$as_echo "$ac_cv_path_EGREP" >&6; }
  19403. + EGREP="$ac_cv_path_EGREP"
  19404. +
  19405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  19406. +$as_echo_n "checking for fgrep... " >&6; }
  19407. +if test "${ac_cv_path_FGREP+set}" = set; then :
  19408. + $as_echo_n "(cached) " >&6
  19409. else
  19410. - ac_cv_path_EGREP=$EGREP
  19411. -fi
  19412. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  19413. + then ac_cv_path_FGREP="$GREP -F"
  19414. + else
  19415. + if test -z "$FGREP"; then
  19416. + ac_path_FGREP_found=false
  19417. + # Loop through the user's path and test for each of PROGNAME-LIST
  19418. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19419. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19420. +do
  19421. + IFS=$as_save_IFS
  19422. + test -z "$as_dir" && as_dir=.
  19423. + for ac_prog in fgrep; do
  19424. + for ac_exec_ext in '' $ac_executable_extensions; do
  19425. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  19426. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  19427. +# Check for GNU ac_path_FGREP and select it if it is found.
  19428. + # Check for GNU $ac_path_FGREP
  19429. +case `"$ac_path_FGREP" --version 2>&1` in
  19430. +*GNU*)
  19431. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  19432. +*)
  19433. + ac_count=0
  19434. + $as_echo_n 0123456789 >"conftest.in"
  19435. + while :
  19436. + do
  19437. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19438. + mv "conftest.tmp" "conftest.in"
  19439. + cp "conftest.in" "conftest.nl"
  19440. + $as_echo 'FGREP' >> "conftest.nl"
  19441. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19442. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19443. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19444. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  19445. + # Best one so far, save it but keep looking for a better one
  19446. + ac_cv_path_FGREP="$ac_path_FGREP"
  19447. + ac_path_FGREP_max=$ac_count
  19448. + fi
  19449. + # 10*(2^10) chars as input seems more than enough
  19450. + test $ac_count -gt 10 && break
  19451. + done
  19452. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19453. +esac
  19454. + $ac_path_FGREP_found && break 3
  19455. + done
  19456. + done
  19457. + done
  19458. +IFS=$as_save_IFS
  19459. + if test -z "$ac_cv_path_FGREP"; then
  19460. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19461. + fi
  19462. +else
  19463. + ac_cv_path_FGREP=$FGREP
  19464. +fi
  19465. fi
  19466. fi
  19467. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  19468. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  19469. - EGREP="$ac_cv_path_EGREP"
  19470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  19471. +$as_echo "$ac_cv_path_FGREP" >&6; }
  19472. + FGREP="$ac_cv_path_FGREP"
  19473. +
  19474. +
  19475. +test -z "$GREP" && GREP=grep
  19476. +
  19477. +
  19478. +
  19479. +
  19480. +
  19481. +
  19482. +
  19483. +
  19484. +
  19485. +
  19486. +
  19487. +
  19488. +
  19489. +
  19490. +
  19491. +
  19492. # Check whether --with-gnu-ld was given.
  19493. -if test "${with_gnu_ld+set}" = set; then
  19494. +if test "${with_gnu_ld+set}" = set; then :
  19495. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  19496. else
  19497. with_gnu_ld=no
  19498. @@ -4235,8 +4447,8 @@
  19499. ac_prog=ld
  19500. if test "$GCC" = yes; then
  19501. # Check if gcc -print-prog-name=ld gives a path.
  19502. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  19503. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  19504. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  19505. +$as_echo_n "checking for ld used by $CC... " >&6; }
  19506. case $host in
  19507. *-*-mingw*)
  19508. # gcc leaves a trailing carriage return which upsets mingw
  19509. @@ -4249,9 +4461,9 @@
  19510. [\\/]* | ?:[\\/]*)
  19511. re_direlt='/[^/][^/]*/\.\./'
  19512. # Canonicalize the pathname of ld
  19513. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  19514. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  19515. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  19516. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  19517. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  19518. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  19519. done
  19520. test -z "$LD" && LD="$ac_prog"
  19521. ;;
  19522. @@ -4265,14 +4477,14 @@
  19523. ;;
  19524. esac
  19525. elif test "$with_gnu_ld" = yes; then
  19526. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  19527. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  19528. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  19529. +$as_echo_n "checking for GNU ld... " >&6; }
  19530. else
  19531. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  19532. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  19533. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  19534. +$as_echo_n "checking for non-GNU ld... " >&6; }
  19535. fi
  19536. -if test "${lt_cv_path_LD+set}" = set; then
  19537. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19538. +if test "${lt_cv_path_LD+set}" = set; then :
  19539. + $as_echo_n "(cached) " >&6
  19540. else
  19541. if test -z "$LD"; then
  19542. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19543. @@ -4302,19 +4514,17 @@
  19544. LD="$lt_cv_path_LD"
  19545. if test -n "$LD"; then
  19546. - { echo "$as_me:$LINENO: result: $LD" >&5
  19547. -echo "${ECHO_T}$LD" >&6; }
  19548. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  19549. +$as_echo "$LD" >&6; }
  19550. else
  19551. - { echo "$as_me:$LINENO: result: no" >&5
  19552. -echo "${ECHO_T}no" >&6; }
  19553. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19554. +$as_echo "no" >&6; }
  19555. fi
  19556. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  19557. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  19558. - { (exit 1); exit 1; }; }
  19559. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  19560. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  19561. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  19562. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19563. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  19564. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  19565. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  19566. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  19567. + $as_echo_n "(cached) " >&6
  19568. else
  19569. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  19570. case `$LD -v 2>&1 </dev/null` in
  19571. @@ -4326,40 +4536,22 @@
  19572. ;;
  19573. esac
  19574. fi
  19575. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  19576. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  19577. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  19578. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  19579. with_gnu_ld=$lt_cv_prog_gnu_ld
  19580. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  19581. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  19582. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  19583. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19584. -else
  19585. - lt_cv_ld_reload_flag='-r'
  19586. -fi
  19587. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  19588. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  19589. -reload_flag=$lt_cv_ld_reload_flag
  19590. -case $reload_flag in
  19591. -"" | " "*) ;;
  19592. -*) reload_flag=" $reload_flag" ;;
  19593. -esac
  19594. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  19595. -case $host_os in
  19596. - darwin*)
  19597. - if test "$GCC" = yes; then
  19598. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  19599. - else
  19600. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  19601. - fi
  19602. - ;;
  19603. -esac
  19604. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  19605. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  19606. -if test "${lt_cv_path_NM+set}" = set; then
  19607. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19608. +
  19609. +
  19610. +
  19611. +
  19612. +
  19613. +
  19614. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  19615. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  19616. +if test "${lt_cv_path_NM+set}" = set; then :
  19617. + $as_echo_n "(cached) " >&6
  19618. else
  19619. if test -n "$NM"; then
  19620. # Let the user override the test.
  19621. @@ -4402,606 +4594,480 @@
  19622. done
  19623. IFS="$lt_save_ifs"
  19624. done
  19625. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  19626. + : ${lt_cv_path_NM=no}
  19627. fi
  19628. fi
  19629. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  19630. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  19631. -NM="$lt_cv_path_NM"
  19632. -
  19633. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19634. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  19635. -LN_S=$as_ln_s
  19636. -if test "$LN_S" = "ln -s"; then
  19637. - { echo "$as_me:$LINENO: result: yes" >&5
  19638. -echo "${ECHO_T}yes" >&6; }
  19639. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  19640. +$as_echo "$lt_cv_path_NM" >&6; }
  19641. +if test "$lt_cv_path_NM" != "no"; then
  19642. + NM="$lt_cv_path_NM"
  19643. else
  19644. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19645. -echo "${ECHO_T}no, using $LN_S" >&6; }
  19646. -fi
  19647. -
  19648. -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  19649. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  19650. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  19651. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19652. + # Didn't find any BSD compatible name lister, look for dumpbin.
  19653. + if test -n "$ac_tool_prefix"; then
  19654. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  19655. + do
  19656. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19657. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19658. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19659. +$as_echo_n "checking for $ac_word... " >&6; }
  19660. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  19661. + $as_echo_n "(cached) " >&6
  19662. else
  19663. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  19664. -lt_cv_file_magic_test_file=
  19665. -lt_cv_deplibs_check_method='unknown'
  19666. -# Need to set the preceding variable on all platforms that support
  19667. -# interlibrary dependencies.
  19668. -# 'none' -- dependencies not supported.
  19669. -# `unknown' -- same as none, but documents that we really don't know.
  19670. -# 'pass_all' -- all dependencies passed with no checks.
  19671. -# 'test_compile' -- check by making test program.
  19672. -# 'file_magic [[regex]]' -- check by looking for files in library path
  19673. -# which responds to the $file_magic_cmd with a given extended regex.
  19674. -# If you have `file' or equivalent on your system and you're not sure
  19675. -# whether `pass_all' will *always* work, you probably want this one.
  19676. + if test -n "$DUMPBIN"; then
  19677. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  19678. +else
  19679. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19680. +for as_dir in $PATH
  19681. +do
  19682. + IFS=$as_save_IFS
  19683. + test -z "$as_dir" && as_dir=.
  19684. + for ac_exec_ext in '' $ac_executable_extensions; do
  19685. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19686. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  19687. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19688. + break 2
  19689. + fi
  19690. +done
  19691. + done
  19692. +IFS=$as_save_IFS
  19693. -case $host_os in
  19694. -aix4* | aix5*)
  19695. - lt_cv_deplibs_check_method=pass_all
  19696. - ;;
  19697. +fi
  19698. +fi
  19699. +DUMPBIN=$ac_cv_prog_DUMPBIN
  19700. +if test -n "$DUMPBIN"; then
  19701. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  19702. +$as_echo "$DUMPBIN" >&6; }
  19703. +else
  19704. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19705. +$as_echo "no" >&6; }
  19706. +fi
  19707. -beos*)
  19708. - lt_cv_deplibs_check_method=pass_all
  19709. - ;;
  19710. -bsdi[45]*)
  19711. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  19712. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  19713. - lt_cv_file_magic_test_file=/shlib/libc.so
  19714. - ;;
  19715. + test -n "$DUMPBIN" && break
  19716. + done
  19717. +fi
  19718. +if test -z "$DUMPBIN"; then
  19719. + ac_ct_DUMPBIN=$DUMPBIN
  19720. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  19721. +do
  19722. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  19723. +set dummy $ac_prog; ac_word=$2
  19724. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19725. +$as_echo_n "checking for $ac_word... " >&6; }
  19726. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  19727. + $as_echo_n "(cached) " >&6
  19728. +else
  19729. + if test -n "$ac_ct_DUMPBIN"; then
  19730. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  19731. +else
  19732. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19733. +for as_dir in $PATH
  19734. +do
  19735. + IFS=$as_save_IFS
  19736. + test -z "$as_dir" && as_dir=.
  19737. + for ac_exec_ext in '' $ac_executable_extensions; do
  19738. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19739. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  19740. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19741. + break 2
  19742. + fi
  19743. +done
  19744. + done
  19745. +IFS=$as_save_IFS
  19746. -cygwin*)
  19747. - # func_win32_libid is a shell function defined in ltmain.sh
  19748. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  19749. - lt_cv_file_magic_cmd='func_win32_libid'
  19750. - ;;
  19751. +fi
  19752. +fi
  19753. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  19754. +if test -n "$ac_ct_DUMPBIN"; then
  19755. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  19756. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  19757. +else
  19758. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19759. +$as_echo "no" >&6; }
  19760. +fi
  19761. -mingw* | pw32*)
  19762. - # Base MSYS/MinGW do not provide the 'file' command needed by
  19763. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  19764. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  19765. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  19766. - ;;
  19767. -darwin* | rhapsody*)
  19768. - lt_cv_deplibs_check_method=pass_all
  19769. - ;;
  19770. + test -n "$ac_ct_DUMPBIN" && break
  19771. +done
  19772. -freebsd* | dragonfly*)
  19773. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  19774. - case $host_cpu in
  19775. - i*86 )
  19776. - # Not sure whether the presence of OpenBSD here was a mistake.
  19777. - # Let's accept both of them until this is cleared up.
  19778. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  19779. - lt_cv_file_magic_cmd=/usr/bin/file
  19780. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  19781. - ;;
  19782. - esac
  19783. + if test "x$ac_ct_DUMPBIN" = x; then
  19784. + DUMPBIN=":"
  19785. else
  19786. - lt_cv_deplibs_check_method=pass_all
  19787. + case $cross_compiling:$ac_tool_warned in
  19788. +yes:)
  19789. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19790. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19791. +ac_tool_warned=yes ;;
  19792. +esac
  19793. + DUMPBIN=$ac_ct_DUMPBIN
  19794. fi
  19795. - ;;
  19796. +fi
  19797. -gnu*)
  19798. - lt_cv_deplibs_check_method=pass_all
  19799. - ;;
  19800. -hpux10.20* | hpux11*)
  19801. - lt_cv_file_magic_cmd=/usr/bin/file
  19802. - case $host_cpu in
  19803. - ia64*)
  19804. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  19805. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  19806. - ;;
  19807. - hppa*64*)
  19808. - 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]'
  19809. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  19810. - ;;
  19811. - *)
  19812. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  19813. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  19814. - ;;
  19815. - esac
  19816. - ;;
  19817. + if test "$DUMPBIN" != ":"; then
  19818. + NM="$DUMPBIN"
  19819. + fi
  19820. +fi
  19821. +test -z "$NM" && NM=nm
  19822. -interix3*)
  19823. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  19824. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  19825. - ;;
  19826. -irix5* | irix6* | nonstopux*)
  19827. - case $LD in
  19828. - *-32|*"-32 ") libmagic=32-bit;;
  19829. - *-n32|*"-n32 ") libmagic=N32;;
  19830. - *-64|*"-64 ") libmagic=64-bit;;
  19831. - *) libmagic=never-match;;
  19832. - esac
  19833. - lt_cv_deplibs_check_method=pass_all
  19834. - ;;
  19835. -# This must be Linux ELF.
  19836. -linux* | k*bsd*-gnu)
  19837. - lt_cv_deplibs_check_method=pass_all
  19838. - ;;
  19839. -netbsd* | netbsdelf*-gnu)
  19840. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  19841. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19842. - else
  19843. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  19844. +
  19845. +
  19846. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  19847. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  19848. +if test "${lt_cv_nm_interface+set}" = set; then :
  19849. + $as_echo_n "(cached) " >&6
  19850. +else
  19851. + lt_cv_nm_interface="BSD nm"
  19852. + echo "int some_variable = 0;" > conftest.$ac_ext
  19853. + (eval echo "\"\$as_me:4725: $ac_compile\"" >&5)
  19854. + (eval "$ac_compile" 2>conftest.err)
  19855. + cat conftest.err >&5
  19856. + (eval echo "\"\$as_me:4728: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  19857. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  19858. + cat conftest.err >&5
  19859. + (eval echo "\"\$as_me:4731: output\"" >&5)
  19860. + cat conftest.out >&5
  19861. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  19862. + lt_cv_nm_interface="MS dumpbin"
  19863. fi
  19864. - ;;
  19865. + rm -f conftest*
  19866. +fi
  19867. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  19868. +$as_echo "$lt_cv_nm_interface" >&6; }
  19869. -newos6*)
  19870. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  19871. - lt_cv_file_magic_cmd=/usr/bin/file
  19872. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  19873. - ;;
  19874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  19875. +$as_echo_n "checking whether ln -s works... " >&6; }
  19876. +LN_S=$as_ln_s
  19877. +if test "$LN_S" = "ln -s"; then
  19878. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19879. +$as_echo "yes" >&6; }
  19880. +else
  19881. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  19882. +$as_echo "no, using $LN_S" >&6; }
  19883. +fi
  19884. -nto-qnx*)
  19885. - lt_cv_deplibs_check_method=unknown
  19886. - ;;
  19887. +# find the maximum length of command line arguments
  19888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  19889. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  19890. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  19891. + $as_echo_n "(cached) " >&6
  19892. +else
  19893. + i=0
  19894. + teststring="ABCD"
  19895. -openbsd*)
  19896. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19897. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  19898. - else
  19899. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19900. - fi
  19901. - ;;
  19902. + case $build_os in
  19903. + msdosdjgpp*)
  19904. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  19905. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  19906. + # during glob expansion). Even if it were fixed, the result of this
  19907. + # check would be larger than it should be.
  19908. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  19909. + ;;
  19910. -osf3* | osf4* | osf5*)
  19911. - lt_cv_deplibs_check_method=pass_all
  19912. - ;;
  19913. + gnu*)
  19914. + # Under GNU Hurd, this test is not required because there is
  19915. + # no limit to the length of command line arguments.
  19916. + # Libtool will interpret -1 as no limit whatsoever
  19917. + lt_cv_sys_max_cmd_len=-1;
  19918. + ;;
  19919. -solaris*)
  19920. - lt_cv_deplibs_check_method=pass_all
  19921. - ;;
  19922. + cygwin* | mingw* | cegcc*)
  19923. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  19924. + # about 5 minutes as the teststring grows exponentially.
  19925. + # Worse, since 9x/ME are not pre-emptively multitasking,
  19926. + # you end up with a "frozen" computer, even though with patience
  19927. + # the test eventually succeeds (with a max line length of 256k).
  19928. + # Instead, let's just punt: use the minimum linelength reported by
  19929. + # all of the supported platforms: 8192 (on NT/2K/XP).
  19930. + lt_cv_sys_max_cmd_len=8192;
  19931. + ;;
  19932. -sysv4 | sysv4.3*)
  19933. - case $host_vendor in
  19934. - motorola)
  19935. - 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]'
  19936. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  19937. + amigaos*)
  19938. + # On AmigaOS with pdksh, this test takes hours, literally.
  19939. + # So we just punt and use a minimum line length of 8192.
  19940. + lt_cv_sys_max_cmd_len=8192;
  19941. ;;
  19942. - ncr)
  19943. - lt_cv_deplibs_check_method=pass_all
  19944. +
  19945. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  19946. + # This has been around since 386BSD, at least. Likely further.
  19947. + if test -x /sbin/sysctl; then
  19948. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  19949. + elif test -x /usr/sbin/sysctl; then
  19950. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  19951. + else
  19952. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  19953. + fi
  19954. + # And add a safety zone
  19955. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19956. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19957. ;;
  19958. - sequent)
  19959. - lt_cv_file_magic_cmd='/bin/file'
  19960. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  19961. +
  19962. + interix*)
  19963. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  19964. + lt_cv_sys_max_cmd_len=196608
  19965. ;;
  19966. - sni)
  19967. - lt_cv_file_magic_cmd='/bin/file'
  19968. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  19969. - lt_cv_file_magic_test_file=/lib/libc.so
  19970. +
  19971. + osf*)
  19972. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  19973. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  19974. + # nice to cause kernel panics so lets avoid the loop below.
  19975. + # First set a reasonable default.
  19976. + lt_cv_sys_max_cmd_len=16384
  19977. + #
  19978. + if test -x /sbin/sysconfig; then
  19979. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  19980. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  19981. + esac
  19982. + fi
  19983. ;;
  19984. - siemens)
  19985. - lt_cv_deplibs_check_method=pass_all
  19986. + sco3.2v5*)
  19987. + lt_cv_sys_max_cmd_len=102400
  19988. ;;
  19989. - pc)
  19990. - lt_cv_deplibs_check_method=pass_all
  19991. + sysv5* | sco5v6* | sysv4.2uw2*)
  19992. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  19993. + if test -n "$kargmax"; then
  19994. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  19995. + else
  19996. + lt_cv_sys_max_cmd_len=32768
  19997. + fi
  19998. + ;;
  19999. + *)
  20000. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  20001. + if test -n "$lt_cv_sys_max_cmd_len"; then
  20002. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  20003. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  20004. + else
  20005. + # Make teststring a little bigger before we do anything with it.
  20006. + # a 1K string should be a reasonable start.
  20007. + for i in 1 2 3 4 5 6 7 8 ; do
  20008. + teststring=$teststring$teststring
  20009. + done
  20010. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  20011. + # If test is not a shell built-in, we'll probably end up computing a
  20012. + # maximum length that is only half of the actual maximum length, but
  20013. + # we can't tell.
  20014. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  20015. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  20016. + test $i != 17 # 1/2 MB should be enough
  20017. + do
  20018. + i=`expr $i + 1`
  20019. + teststring=$teststring$teststring
  20020. + done
  20021. + # Only check the string length outside the loop.
  20022. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  20023. + teststring=
  20024. + # Add a significant safety factor because C++ compilers can tack on
  20025. + # massive amounts of additional arguments before passing them to the
  20026. + # linker. It appears as though 1/2 is a usable value.
  20027. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  20028. + fi
  20029. ;;
  20030. esac
  20031. - ;;
  20032. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20033. - lt_cv_deplibs_check_method=pass_all
  20034. - ;;
  20035. -esac
  20036. +fi
  20037. +if test -n $lt_cv_sys_max_cmd_len ; then
  20038. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  20039. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  20040. +else
  20041. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  20042. +$as_echo "none" >&6; }
  20043. fi
  20044. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  20045. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  20046. -file_magic_cmd=$lt_cv_file_magic_cmd
  20047. -deplibs_check_method=$lt_cv_deplibs_check_method
  20048. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  20049. +max_cmd_len=$lt_cv_sys_max_cmd_len
  20050. -# If no C compiler was specified, use CC.
  20051. -LTCC=${LTCC-"$CC"}
  20052. -# If no C compiler flags were specified, use CFLAGS.
  20053. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  20054. -# Allow CC to be a program name with arguments.
  20055. -compiler=$CC
  20056. +: ${CP="cp -f"}
  20057. +: ${MV="mv -f"}
  20058. +: ${RM="rm -f"}
  20059. +
  20060. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  20061. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  20062. +# Try some XSI features
  20063. +xsi_shell=no
  20064. +( _lt_dummy="a/b/c"
  20065. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  20066. + = c,a/b,, \
  20067. + && eval 'test $(( 1 + 1 )) -eq 2 \
  20068. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  20069. + && xsi_shell=yes
  20070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  20071. +$as_echo "$xsi_shell" >&6; }
  20072. +
  20073. +
  20074. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  20075. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  20076. +lt_shell_append=no
  20077. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  20078. + >/dev/null 2>&1 \
  20079. + && lt_shell_append=yes
  20080. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  20081. +$as_echo "$lt_shell_append" >&6; }
  20082. -# Check whether --enable-libtool-lock was given.
  20083. -if test "${enable_libtool_lock+set}" = set; then
  20084. - enableval=$enable_libtool_lock;
  20085. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20086. + lt_unset=unset
  20087. +else
  20088. + lt_unset=false
  20089. fi
  20090. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  20091. -# Some flags need to be propagated to the compiler or linker for good
  20092. -# libtool support.
  20093. -case $host in
  20094. -ia64-*-hpux*)
  20095. - # Find out which ABI we are using.
  20096. - echo 'int i;' > conftest.$ac_ext
  20097. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20098. - (eval $ac_compile) 2>&5
  20099. - ac_status=$?
  20100. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20101. - (exit $ac_status); }; then
  20102. - case `/usr/bin/file conftest.$ac_objext` in
  20103. - *ELF-32*)
  20104. - HPUX_IA64_MODE="32"
  20105. - ;;
  20106. - *ELF-64*)
  20107. - HPUX_IA64_MODE="64"
  20108. - ;;
  20109. - esac
  20110. - fi
  20111. - rm -rf conftest*
  20112. +
  20113. +
  20114. +
  20115. +# test EBCDIC or ASCII
  20116. +case `echo X|tr X '\101'` in
  20117. + A) # ASCII based system
  20118. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  20119. + lt_SP2NL='tr \040 \012'
  20120. + lt_NL2SP='tr \015\012 \040\040'
  20121. ;;
  20122. -*-*-irix6*)
  20123. - # Find out which ABI we are using.
  20124. - echo '#line 4649 "configure"' > conftest.$ac_ext
  20125. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20126. - (eval $ac_compile) 2>&5
  20127. - ac_status=$?
  20128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20129. - (exit $ac_status); }; then
  20130. - if test "$lt_cv_prog_gnu_ld" = yes; then
  20131. - case `/usr/bin/file conftest.$ac_objext` in
  20132. - *32-bit*)
  20133. - LD="${LD-ld} -melf32bsmip"
  20134. - ;;
  20135. - *N32*)
  20136. - LD="${LD-ld} -melf32bmipn32"
  20137. - ;;
  20138. - *64-bit*)
  20139. - LD="${LD-ld} -melf64bmip"
  20140. - ;;
  20141. - esac
  20142. - else
  20143. - case `/usr/bin/file conftest.$ac_objext` in
  20144. - *32-bit*)
  20145. - LD="${LD-ld} -32"
  20146. - ;;
  20147. - *N32*)
  20148. - LD="${LD-ld} -n32"
  20149. - ;;
  20150. - *64-bit*)
  20151. - LD="${LD-ld} -64"
  20152. - ;;
  20153. - esac
  20154. - fi
  20155. - fi
  20156. - rm -rf conftest*
  20157. + *) # EBCDIC based system
  20158. + lt_SP2NL='tr \100 \n'
  20159. + lt_NL2SP='tr \r\n \100\100'
  20160. ;;
  20161. +esac
  20162. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  20163. - # Find out which ABI we are using.
  20164. - echo 'int i;' > conftest.$ac_ext
  20165. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20166. - (eval $ac_compile) 2>&5
  20167. - ac_status=$?
  20168. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20169. - (exit $ac_status); }; then
  20170. - case `/usr/bin/file conftest.o` in
  20171. - *32-bit*)
  20172. - case $host in
  20173. - x86_64-*linux*)
  20174. - LD="${LD-ld} -m elf_i386"
  20175. - ;;
  20176. - ppc64-*linux*|powerpc64-*linux*)
  20177. - LD="${LD-ld} -m elf32ppclinux"
  20178. - ;;
  20179. - s390x-*linux*)
  20180. - LD="${LD-ld} -m elf_s390"
  20181. - ;;
  20182. - sparc64-*linux*)
  20183. - LD="${LD-ld} -m elf32_sparc"
  20184. - ;;
  20185. - esac
  20186. - ;;
  20187. - *64-bit*)
  20188. - case $host in
  20189. - x86_64-*linux*)
  20190. - LD="${LD-ld} -m elf_x86_64"
  20191. - ;;
  20192. - ppc*-*linux*|powerpc*-*linux*)
  20193. - LD="${LD-ld} -m elf64ppc"
  20194. - ;;
  20195. - s390*-*linux*)
  20196. - LD="${LD-ld} -m elf64_s390"
  20197. - ;;
  20198. - sparc*-*linux*)
  20199. - LD="${LD-ld} -m elf64_sparc"
  20200. - ;;
  20201. - esac
  20202. - ;;
  20203. - esac
  20204. - fi
  20205. - rm -rf conftest*
  20206. - ;;
  20207. -*-*-sco3.2v5*)
  20208. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20209. - SAVE_CFLAGS="$CFLAGS"
  20210. - CFLAGS="$CFLAGS -belf"
  20211. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  20212. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  20213. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  20214. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20215. -else
  20216. - ac_ext=c
  20217. -ac_cpp='$CPP $CPPFLAGS'
  20218. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20219. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20220. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20221. - cat >conftest.$ac_ext <<_ACEOF
  20222. -/* confdefs.h. */
  20223. -_ACEOF
  20224. -cat confdefs.h >>conftest.$ac_ext
  20225. -cat >>conftest.$ac_ext <<_ACEOF
  20226. -/* end confdefs.h. */
  20227. -int
  20228. -main ()
  20229. -{
  20230. - ;
  20231. - return 0;
  20232. -}
  20233. -_ACEOF
  20234. -rm -f conftest.$ac_objext conftest$ac_exeext
  20235. -if { (ac_try="$ac_link"
  20236. -case "(($ac_try" in
  20237. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20238. - *) ac_try_echo=$ac_try;;
  20239. -esac
  20240. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20241. - (eval "$ac_link") 2>conftest.er1
  20242. - ac_status=$?
  20243. - grep -v '^ *+' conftest.er1 >conftest.err
  20244. - rm -f conftest.er1
  20245. - cat conftest.err >&5
  20246. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20247. - (exit $ac_status); } && {
  20248. - test -z "$ac_c_werror_flag" ||
  20249. - test ! -s conftest.err
  20250. - } && test -s conftest$ac_exeext &&
  20251. - $as_test_x conftest$ac_exeext; then
  20252. - lt_cv_cc_needs_belf=yes
  20253. -else
  20254. - echo "$as_me: failed program was:" >&5
  20255. -sed 's/^/| /' conftest.$ac_ext >&5
  20256. -
  20257. - lt_cv_cc_needs_belf=no
  20258. -fi
  20259. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20260. - conftest$ac_exeext conftest.$ac_ext
  20261. - ac_ext=c
  20262. -ac_cpp='$CPP $CPPFLAGS'
  20263. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20264. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20265. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20266. -fi
  20267. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  20268. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  20269. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  20270. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  20271. - CFLAGS="$SAVE_CFLAGS"
  20272. - fi
  20273. - ;;
  20274. -sparc*-*solaris*)
  20275. - # Find out which ABI we are using.
  20276. - echo 'int i;' > conftest.$ac_ext
  20277. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20278. - (eval $ac_compile) 2>&5
  20279. - ac_status=$?
  20280. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20281. - (exit $ac_status); }; then
  20282. - case `/usr/bin/file conftest.o` in
  20283. - *64-bit*)
  20284. - case $lt_cv_prog_gnu_ld in
  20285. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  20286. - *) LD="${LD-ld} -64" ;;
  20287. - esac
  20288. - ;;
  20289. - esac
  20290. - fi
  20291. - rm -rf conftest*
  20292. - ;;
  20293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  20294. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  20295. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  20296. + $as_echo_n "(cached) " >&6
  20297. +else
  20298. + lt_cv_ld_reload_flag='-r'
  20299. +fi
  20300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  20301. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  20302. +reload_flag=$lt_cv_ld_reload_flag
  20303. +case $reload_flag in
  20304. +"" | " "*) ;;
  20305. +*) reload_flag=" $reload_flag" ;;
  20306. +esac
  20307. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20308. +case $host_os in
  20309. + darwin*)
  20310. + if test "$GCC" = yes; then
  20311. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20312. + else
  20313. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20314. + fi
  20315. + ;;
  20316. esac
  20317. -
  20318. -need_locks="$enable_libtool_lock"
  20319. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  20320. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  20321. -if test "${ac_cv_header_stdc+set}" = set; then
  20322. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20323. -else
  20324. - cat >conftest.$ac_ext <<_ACEOF
  20325. -/* confdefs.h. */
  20326. -_ACEOF
  20327. -cat confdefs.h >>conftest.$ac_ext
  20328. -cat >>conftest.$ac_ext <<_ACEOF
  20329. -/* end confdefs.h. */
  20330. -#include <stdlib.h>
  20331. -#include <stdarg.h>
  20332. -#include <string.h>
  20333. -#include <float.h>
  20334. -int
  20335. -main ()
  20336. -{
  20337. - ;
  20338. - return 0;
  20339. -}
  20340. -_ACEOF
  20341. -rm -f conftest.$ac_objext
  20342. -if { (ac_try="$ac_compile"
  20343. -case "(($ac_try" in
  20344. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20345. - *) ac_try_echo=$ac_try;;
  20346. -esac
  20347. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20348. - (eval "$ac_compile") 2>conftest.er1
  20349. - ac_status=$?
  20350. - grep -v '^ *+' conftest.er1 >conftest.err
  20351. - rm -f conftest.er1
  20352. - cat conftest.err >&5
  20353. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20354. - (exit $ac_status); } && {
  20355. - test -z "$ac_c_werror_flag" ||
  20356. - test ! -s conftest.err
  20357. - } && test -s conftest.$ac_objext; then
  20358. - ac_cv_header_stdc=yes
  20359. -else
  20360. - echo "$as_me: failed program was:" >&5
  20361. -sed 's/^/| /' conftest.$ac_ext >&5
  20362. - ac_cv_header_stdc=no
  20363. -fi
  20364. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20365. -if test $ac_cv_header_stdc = yes; then
  20366. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20367. - cat >conftest.$ac_ext <<_ACEOF
  20368. -/* confdefs.h. */
  20369. -_ACEOF
  20370. -cat confdefs.h >>conftest.$ac_ext
  20371. -cat >>conftest.$ac_ext <<_ACEOF
  20372. -/* end confdefs.h. */
  20373. -#include <string.h>
  20374. -_ACEOF
  20375. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20376. - $EGREP "memchr" >/dev/null 2>&1; then
  20377. - :
  20378. +if test -n "$ac_tool_prefix"; then
  20379. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  20380. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  20381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20382. +$as_echo_n "checking for $ac_word... " >&6; }
  20383. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  20384. + $as_echo_n "(cached) " >&6
  20385. else
  20386. - ac_cv_header_stdc=no
  20387. -fi
  20388. -rm -f conftest*
  20389. + if test -n "$OBJDUMP"; then
  20390. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  20391. +else
  20392. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20393. +for as_dir in $PATH
  20394. +do
  20395. + IFS=$as_save_IFS
  20396. + test -z "$as_dir" && as_dir=.
  20397. + for ac_exec_ext in '' $ac_executable_extensions; do
  20398. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20399. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  20400. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20401. + break 2
  20402. + fi
  20403. +done
  20404. + done
  20405. +IFS=$as_save_IFS
  20406. fi
  20407. -
  20408. -if test $ac_cv_header_stdc = yes; then
  20409. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20410. - cat >conftest.$ac_ext <<_ACEOF
  20411. -/* confdefs.h. */
  20412. -_ACEOF
  20413. -cat confdefs.h >>conftest.$ac_ext
  20414. -cat >>conftest.$ac_ext <<_ACEOF
  20415. -/* end confdefs.h. */
  20416. -#include <stdlib.h>
  20417. -
  20418. -_ACEOF
  20419. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20420. - $EGREP "free" >/dev/null 2>&1; then
  20421. - :
  20422. +fi
  20423. +OBJDUMP=$ac_cv_prog_OBJDUMP
  20424. +if test -n "$OBJDUMP"; then
  20425. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  20426. +$as_echo "$OBJDUMP" >&6; }
  20427. else
  20428. - ac_cv_header_stdc=no
  20429. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20430. +$as_echo "no" >&6; }
  20431. fi
  20432. -rm -f conftest*
  20433. -fi
  20434. -if test $ac_cv_header_stdc = yes; then
  20435. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20436. - if test "$cross_compiling" = yes; then
  20437. - :
  20438. +fi
  20439. +if test -z "$ac_cv_prog_OBJDUMP"; then
  20440. + ac_ct_OBJDUMP=$OBJDUMP
  20441. + # Extract the first word of "objdump", so it can be a program name with args.
  20442. +set dummy objdump; ac_word=$2
  20443. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20444. +$as_echo_n "checking for $ac_word... " >&6; }
  20445. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  20446. + $as_echo_n "(cached) " >&6
  20447. else
  20448. - cat >conftest.$ac_ext <<_ACEOF
  20449. -/* confdefs.h. */
  20450. -_ACEOF
  20451. -cat confdefs.h >>conftest.$ac_ext
  20452. -cat >>conftest.$ac_ext <<_ACEOF
  20453. -/* end confdefs.h. */
  20454. -#include <ctype.h>
  20455. -#include <stdlib.h>
  20456. -#if ((' ' & 0x0FF) == 0x020)
  20457. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20458. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20459. -#else
  20460. -# define ISLOWER(c) \
  20461. - (('a' <= (c) && (c) <= 'i') \
  20462. - || ('j' <= (c) && (c) <= 'r') \
  20463. - || ('s' <= (c) && (c) <= 'z'))
  20464. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20465. -#endif
  20466. -
  20467. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20468. -int
  20469. -main ()
  20470. -{
  20471. - int i;
  20472. - for (i = 0; i < 256; i++)
  20473. - if (XOR (islower (i), ISLOWER (i))
  20474. - || toupper (i) != TOUPPER (i))
  20475. - return 2;
  20476. - return 0;
  20477. -}
  20478. -_ACEOF
  20479. -rm -f conftest$ac_exeext
  20480. -if { (ac_try="$ac_link"
  20481. -case "(($ac_try" in
  20482. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20483. - *) ac_try_echo=$ac_try;;
  20484. -esac
  20485. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20486. - (eval "$ac_link") 2>&5
  20487. - ac_status=$?
  20488. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20489. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20490. - { (case "(($ac_try" in
  20491. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20492. - *) ac_try_echo=$ac_try;;
  20493. -esac
  20494. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20495. - (eval "$ac_try") 2>&5
  20496. - ac_status=$?
  20497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20498. - (exit $ac_status); }; }; then
  20499. - :
  20500. + if test -n "$ac_ct_OBJDUMP"; then
  20501. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  20502. else
  20503. - echo "$as_me: program exited with status $ac_status" >&5
  20504. -echo "$as_me: failed program was:" >&5
  20505. -sed 's/^/| /' conftest.$ac_ext >&5
  20506. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20507. +for as_dir in $PATH
  20508. +do
  20509. + IFS=$as_save_IFS
  20510. + test -z "$as_dir" && as_dir=.
  20511. + for ac_exec_ext in '' $ac_executable_extensions; do
  20512. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20513. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  20514. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20515. + break 2
  20516. + fi
  20517. +done
  20518. + done
  20519. +IFS=$as_save_IFS
  20520. -( exit $ac_status )
  20521. -ac_cv_header_stdc=no
  20522. -fi
  20523. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20524. fi
  20525. -
  20526. -
  20527. fi
  20528. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  20529. +if test -n "$ac_ct_OBJDUMP"; then
  20530. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  20531. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  20532. +else
  20533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20534. +$as_echo "no" >&6; }
  20535. fi
  20536. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  20537. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  20538. -if test $ac_cv_header_stdc = yes; then
  20539. -
  20540. -cat >>confdefs.h <<\_ACEOF
  20541. -#define STDC_HEADERS 1
  20542. -_ACEOF
  20543. + if test "x$ac_ct_OBJDUMP" = x; then
  20544. + OBJDUMP="false"
  20545. + else
  20546. + case $cross_compiling:$ac_tool_warned in
  20547. +yes:)
  20548. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20549. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20550. +ac_tool_warned=yes ;;
  20551. +esac
  20552. + OBJDUMP=$ac_ct_OBJDUMP
  20553. + fi
  20554. +else
  20555. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  20556. fi
  20557. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  20558. -
  20559. +test -z "$OBJDUMP" && OBJDUMP=objdump
  20560. @@ -5010,1300 +5076,588 @@
  20561. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  20562. - inttypes.h stdint.h unistd.h
  20563. -do
  20564. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20565. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  20566. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20567. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20568. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20569. -else
  20570. - cat >conftest.$ac_ext <<_ACEOF
  20571. -/* confdefs.h. */
  20572. -_ACEOF
  20573. -cat confdefs.h >>conftest.$ac_ext
  20574. -cat >>conftest.$ac_ext <<_ACEOF
  20575. -/* end confdefs.h. */
  20576. -$ac_includes_default
  20577. -#include <$ac_header>
  20578. -_ACEOF
  20579. -rm -f conftest.$ac_objext
  20580. -if { (ac_try="$ac_compile"
  20581. -case "(($ac_try" in
  20582. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20583. - *) ac_try_echo=$ac_try;;
  20584. -esac
  20585. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20586. - (eval "$ac_compile") 2>conftest.er1
  20587. - ac_status=$?
  20588. - grep -v '^ *+' conftest.er1 >conftest.err
  20589. - rm -f conftest.er1
  20590. - cat conftest.err >&5
  20591. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20592. - (exit $ac_status); } && {
  20593. - test -z "$ac_c_werror_flag" ||
  20594. - test ! -s conftest.err
  20595. - } && test -s conftest.$ac_objext; then
  20596. - eval "$as_ac_Header=yes"
  20597. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  20598. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  20599. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  20600. + $as_echo_n "(cached) " >&6
  20601. else
  20602. - echo "$as_me: failed program was:" >&5
  20603. -sed 's/^/| /' conftest.$ac_ext >&5
  20604. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  20605. +lt_cv_file_magic_test_file=
  20606. +lt_cv_deplibs_check_method='unknown'
  20607. +# Need to set the preceding variable on all platforms that support
  20608. +# interlibrary dependencies.
  20609. +# 'none' -- dependencies not supported.
  20610. +# `unknown' -- same as none, but documents that we really don't know.
  20611. +# 'pass_all' -- all dependencies passed with no checks.
  20612. +# 'test_compile' -- check by making test program.
  20613. +# 'file_magic [[regex]]' -- check by looking for files in library path
  20614. +# which responds to the $file_magic_cmd with a given extended regex.
  20615. +# If you have `file' or equivalent on your system and you're not sure
  20616. +# whether `pass_all' will *always* work, you probably want this one.
  20617. - eval "$as_ac_Header=no"
  20618. -fi
  20619. +case $host_os in
  20620. +aix[4-9]*)
  20621. + lt_cv_deplibs_check_method=pass_all
  20622. + ;;
  20623. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20624. -fi
  20625. -ac_res=`eval echo '${'$as_ac_Header'}'`
  20626. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  20627. -echo "${ECHO_T}$ac_res" >&6; }
  20628. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20629. - cat >>confdefs.h <<_ACEOF
  20630. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20631. -_ACEOF
  20632. +beos*)
  20633. + lt_cv_deplibs_check_method=pass_all
  20634. + ;;
  20635. -fi
  20636. +bsdi[45]*)
  20637. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  20638. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  20639. + lt_cv_file_magic_test_file=/shlib/libc.so
  20640. + ;;
  20641. -done
  20642. +cygwin*)
  20643. + # func_win32_libid is a shell function defined in ltmain.sh
  20644. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20645. + lt_cv_file_magic_cmd='func_win32_libid'
  20646. + ;;
  20647. +mingw* | pw32*)
  20648. + # Base MSYS/MinGW do not provide the 'file' command needed by
  20649. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  20650. + # unless we find 'file', for example because we are cross-compiling.
  20651. + if ( file / ) >/dev/null 2>&1; then
  20652. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20653. + lt_cv_file_magic_cmd='func_win32_libid'
  20654. + else
  20655. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  20656. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  20657. + fi
  20658. + ;;
  20659. +cegcc)
  20660. + # use the weaker test based on 'objdump'. See mingw*.
  20661. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  20662. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  20663. + ;;
  20664. -for ac_header in dlfcn.h
  20665. -do
  20666. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20667. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20668. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20669. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20670. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20671. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20672. -fi
  20673. -ac_res=`eval echo '${'$as_ac_Header'}'`
  20674. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  20675. -echo "${ECHO_T}$ac_res" >&6; }
  20676. -else
  20677. - # Is the header compilable?
  20678. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20679. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20680. -cat >conftest.$ac_ext <<_ACEOF
  20681. -/* confdefs.h. */
  20682. -_ACEOF
  20683. -cat confdefs.h >>conftest.$ac_ext
  20684. -cat >>conftest.$ac_ext <<_ACEOF
  20685. -/* end confdefs.h. */
  20686. -$ac_includes_default
  20687. -#include <$ac_header>
  20688. -_ACEOF
  20689. -rm -f conftest.$ac_objext
  20690. -if { (ac_try="$ac_compile"
  20691. -case "(($ac_try" in
  20692. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20693. - *) ac_try_echo=$ac_try;;
  20694. -esac
  20695. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20696. - (eval "$ac_compile") 2>conftest.er1
  20697. - ac_status=$?
  20698. - grep -v '^ *+' conftest.er1 >conftest.err
  20699. - rm -f conftest.er1
  20700. - cat conftest.err >&5
  20701. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20702. - (exit $ac_status); } && {
  20703. - test -z "$ac_c_werror_flag" ||
  20704. - test ! -s conftest.err
  20705. - } && test -s conftest.$ac_objext; then
  20706. - ac_header_compiler=yes
  20707. -else
  20708. - echo "$as_me: failed program was:" >&5
  20709. -sed 's/^/| /' conftest.$ac_ext >&5
  20710. +darwin* | rhapsody*)
  20711. + lt_cv_deplibs_check_method=pass_all
  20712. + ;;
  20713. - ac_header_compiler=no
  20714. -fi
  20715. +freebsd* | dragonfly*)
  20716. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  20717. + case $host_cpu in
  20718. + i*86 )
  20719. + # Not sure whether the presence of OpenBSD here was a mistake.
  20720. + # Let's accept both of them until this is cleared up.
  20721. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  20722. + lt_cv_file_magic_cmd=/usr/bin/file
  20723. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  20724. + ;;
  20725. + esac
  20726. + else
  20727. + lt_cv_deplibs_check_method=pass_all
  20728. + fi
  20729. + ;;
  20730. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20731. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20732. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  20733. +gnu*)
  20734. + lt_cv_deplibs_check_method=pass_all
  20735. + ;;
  20736. -# Is the header present?
  20737. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20738. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20739. -cat >conftest.$ac_ext <<_ACEOF
  20740. -/* confdefs.h. */
  20741. -_ACEOF
  20742. -cat confdefs.h >>conftest.$ac_ext
  20743. -cat >>conftest.$ac_ext <<_ACEOF
  20744. -/* end confdefs.h. */
  20745. -#include <$ac_header>
  20746. -_ACEOF
  20747. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  20748. -case "(($ac_try" in
  20749. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20750. - *) ac_try_echo=$ac_try;;
  20751. -esac
  20752. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20753. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20754. - ac_status=$?
  20755. - grep -v '^ *+' conftest.er1 >conftest.err
  20756. - rm -f conftest.er1
  20757. - cat conftest.err >&5
  20758. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20759. - (exit $ac_status); } >/dev/null && {
  20760. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20761. - test ! -s conftest.err
  20762. - }; then
  20763. - ac_header_preproc=yes
  20764. -else
  20765. - echo "$as_me: failed program was:" >&5
  20766. -sed 's/^/| /' conftest.$ac_ext >&5
  20767. +hpux10.20* | hpux11*)
  20768. + lt_cv_file_magic_cmd=/usr/bin/file
  20769. + case $host_cpu in
  20770. + ia64*)
  20771. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  20772. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  20773. + ;;
  20774. + hppa*64*)
  20775. + 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]'
  20776. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  20777. + ;;
  20778. + *)
  20779. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  20780. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  20781. + ;;
  20782. + esac
  20783. + ;;
  20784. - ac_header_preproc=no
  20785. -fi
  20786. +interix[3-9]*)
  20787. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  20788. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  20789. + ;;
  20790. -rm -f conftest.err conftest.$ac_ext
  20791. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20792. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  20793. +irix5* | irix6* | nonstopux*)
  20794. + case $LD in
  20795. + *-32|*"-32 ") libmagic=32-bit;;
  20796. + *-n32|*"-n32 ") libmagic=N32;;
  20797. + *-64|*"-64 ") libmagic=64-bit;;
  20798. + *) libmagic=never-match;;
  20799. + esac
  20800. + lt_cv_deplibs_check_method=pass_all
  20801. + ;;
  20802. -# So? What about this header?
  20803. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20804. - yes:no: )
  20805. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20806. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20807. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20808. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20809. - ac_header_preproc=yes
  20810. - ;;
  20811. - no:yes:* )
  20812. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20813. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20814. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20815. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20816. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20817. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20818. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20819. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20820. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20821. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20822. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20823. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20824. +# This must be Linux ELF.
  20825. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  20826. + lt_cv_deplibs_check_method=pass_all
  20827. + ;;
  20828. +
  20829. +netbsd* | netbsdelf*-gnu)
  20830. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  20831. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20832. + else
  20833. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  20834. + fi
  20835. + ;;
  20836. +
  20837. +newos6*)
  20838. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  20839. + lt_cv_file_magic_cmd=/usr/bin/file
  20840. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  20841. + ;;
  20842. +
  20843. +*nto* | *qnx*)
  20844. + lt_cv_deplibs_check_method=pass_all
  20845. + ;;
  20846. +
  20847. +openbsd*)
  20848. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20849. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  20850. + else
  20851. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20852. + fi
  20853. + ;;
  20854. +
  20855. +osf3* | osf4* | osf5*)
  20856. + lt_cv_deplibs_check_method=pass_all
  20857. + ;;
  20858. +
  20859. +rdos*)
  20860. + lt_cv_deplibs_check_method=pass_all
  20861. + ;;
  20862. +
  20863. +solaris*)
  20864. + lt_cv_deplibs_check_method=pass_all
  20865. + ;;
  20866. +
  20867. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20868. + lt_cv_deplibs_check_method=pass_all
  20869. + ;;
  20870. +sysv4 | sysv4.3*)
  20871. + case $host_vendor in
  20872. + motorola)
  20873. + 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]'
  20874. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  20875. + ;;
  20876. + ncr)
  20877. + lt_cv_deplibs_check_method=pass_all
  20878. + ;;
  20879. + sequent)
  20880. + lt_cv_file_magic_cmd='/bin/file'
  20881. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  20882. + ;;
  20883. + sni)
  20884. + lt_cv_file_magic_cmd='/bin/file'
  20885. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  20886. + lt_cv_file_magic_test_file=/lib/libc.so
  20887. + ;;
  20888. + siemens)
  20889. + lt_cv_deplibs_check_method=pass_all
  20890. + ;;
  20891. + pc)
  20892. + lt_cv_deplibs_check_method=pass_all
  20893. ;;
  20894. + esac
  20895. + ;;
  20896. +
  20897. +tpf*)
  20898. + lt_cv_deplibs_check_method=pass_all
  20899. + ;;
  20900. esac
  20901. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  20902. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20903. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20904. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20905. -else
  20906. - eval "$as_ac_Header=\$ac_header_preproc"
  20907. -fi
  20908. -ac_res=`eval echo '${'$as_ac_Header'}'`
  20909. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  20910. -echo "${ECHO_T}$ac_res" >&6; }
  20911. fi
  20912. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20913. - cat >>confdefs.h <<_ACEOF
  20914. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20915. -_ACEOF
  20916. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  20917. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  20918. +file_magic_cmd=$lt_cv_file_magic_cmd
  20919. +deplibs_check_method=$lt_cv_deplibs_check_method
  20920. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  20921. -fi
  20922. -done
  20923. -ac_ext=cpp
  20924. -ac_cpp='$CXXCPP $CPPFLAGS'
  20925. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20926. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20927. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20928. -if test -z "$CXX"; then
  20929. - if test -n "$CCC"; then
  20930. - CXX=$CCC
  20931. - else
  20932. - if test -n "$ac_tool_prefix"; then
  20933. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  20934. - do
  20935. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20936. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20937. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20938. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20939. -if test "${ac_cv_prog_CXX+set}" = set; then
  20940. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20941. +
  20942. +
  20943. +
  20944. +
  20945. +
  20946. +
  20947. +
  20948. +
  20949. +
  20950. +if test -n "$ac_tool_prefix"; then
  20951. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  20952. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  20953. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20954. +$as_echo_n "checking for $ac_word... " >&6; }
  20955. +if test "${ac_cv_prog_AR+set}" = set; then :
  20956. + $as_echo_n "(cached) " >&6
  20957. else
  20958. - if test -n "$CXX"; then
  20959. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  20960. + if test -n "$AR"; then
  20961. + ac_cv_prog_AR="$AR" # Let the user override the test.
  20962. else
  20963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20964. for as_dir in $PATH
  20965. do
  20966. IFS=$as_save_IFS
  20967. test -z "$as_dir" && as_dir=.
  20968. - for ac_exec_ext in '' $ac_executable_extensions; do
  20969. + for ac_exec_ext in '' $ac_executable_extensions; do
  20970. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20971. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  20972. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20973. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  20974. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20975. break 2
  20976. fi
  20977. done
  20978. -done
  20979. + done
  20980. IFS=$as_save_IFS
  20981. fi
  20982. fi
  20983. -CXX=$ac_cv_prog_CXX
  20984. -if test -n "$CXX"; then
  20985. - { echo "$as_me:$LINENO: result: $CXX" >&5
  20986. -echo "${ECHO_T}$CXX" >&6; }
  20987. +AR=$ac_cv_prog_AR
  20988. +if test -n "$AR"; then
  20989. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  20990. +$as_echo "$AR" >&6; }
  20991. else
  20992. - { echo "$as_me:$LINENO: result: no" >&5
  20993. -echo "${ECHO_T}no" >&6; }
  20994. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20995. +$as_echo "no" >&6; }
  20996. fi
  20997. - test -n "$CXX" && break
  20998. - done
  20999. fi
  21000. -if test -z "$CXX"; then
  21001. - ac_ct_CXX=$CXX
  21002. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  21003. -do
  21004. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21005. -set dummy $ac_prog; ac_word=$2
  21006. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21007. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21008. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  21009. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21010. +if test -z "$ac_cv_prog_AR"; then
  21011. + ac_ct_AR=$AR
  21012. + # Extract the first word of "ar", so it can be a program name with args.
  21013. +set dummy ar; ac_word=$2
  21014. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21015. +$as_echo_n "checking for $ac_word... " >&6; }
  21016. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  21017. + $as_echo_n "(cached) " >&6
  21018. else
  21019. - if test -n "$ac_ct_CXX"; then
  21020. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  21021. + if test -n "$ac_ct_AR"; then
  21022. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  21023. else
  21024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21025. for as_dir in $PATH
  21026. do
  21027. IFS=$as_save_IFS
  21028. test -z "$as_dir" && as_dir=.
  21029. - for ac_exec_ext in '' $ac_executable_extensions; do
  21030. + for ac_exec_ext in '' $ac_executable_extensions; do
  21031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21032. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  21033. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21034. + ac_cv_prog_ac_ct_AR="ar"
  21035. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21036. break 2
  21037. fi
  21038. done
  21039. -done
  21040. + done
  21041. IFS=$as_save_IFS
  21042. fi
  21043. fi
  21044. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  21045. -if test -n "$ac_ct_CXX"; then
  21046. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  21047. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  21048. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  21049. +if test -n "$ac_ct_AR"; then
  21050. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  21051. +$as_echo "$ac_ct_AR" >&6; }
  21052. else
  21053. - { echo "$as_me:$LINENO: result: no" >&5
  21054. -echo "${ECHO_T}no" >&6; }
  21055. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21056. +$as_echo "no" >&6; }
  21057. fi
  21058. -
  21059. - test -n "$ac_ct_CXX" && break
  21060. -done
  21061. -
  21062. - if test "x$ac_ct_CXX" = x; then
  21063. - CXX="g++"
  21064. + if test "x$ac_ct_AR" = x; then
  21065. + AR="false"
  21066. else
  21067. case $cross_compiling:$ac_tool_warned in
  21068. yes:)
  21069. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21070. -whose name does not start with the host triplet. If you think this
  21071. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21072. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21073. -whose name does not start with the host triplet. If you think this
  21074. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21075. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21076. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21077. ac_tool_warned=yes ;;
  21078. esac
  21079. - CXX=$ac_ct_CXX
  21080. + AR=$ac_ct_AR
  21081. fi
  21082. +else
  21083. + AR="$ac_cv_prog_AR"
  21084. fi
  21085. - fi
  21086. -fi
  21087. -# Provide some information about the compiler.
  21088. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  21089. -ac_compiler=`set X $ac_compile; echo $2`
  21090. -{ (ac_try="$ac_compiler --version >&5"
  21091. -case "(($ac_try" in
  21092. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21093. - *) ac_try_echo=$ac_try;;
  21094. -esac
  21095. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21096. - (eval "$ac_compiler --version >&5") 2>&5
  21097. - ac_status=$?
  21098. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21099. - (exit $ac_status); }
  21100. -{ (ac_try="$ac_compiler -v >&5"
  21101. -case "(($ac_try" in
  21102. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21103. - *) ac_try_echo=$ac_try;;
  21104. -esac
  21105. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21106. - (eval "$ac_compiler -v >&5") 2>&5
  21107. - ac_status=$?
  21108. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21109. - (exit $ac_status); }
  21110. -{ (ac_try="$ac_compiler -V >&5"
  21111. -case "(($ac_try" in
  21112. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21113. - *) ac_try_echo=$ac_try;;
  21114. -esac
  21115. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21116. - (eval "$ac_compiler -V >&5") 2>&5
  21117. - ac_status=$?
  21118. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21119. - (exit $ac_status); }
  21120. +test -z "$AR" && AR=ar
  21121. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  21122. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  21123. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  21124. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  21125. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21126. -else
  21127. - cat >conftest.$ac_ext <<_ACEOF
  21128. -/* confdefs.h. */
  21129. -_ACEOF
  21130. -cat confdefs.h >>conftest.$ac_ext
  21131. -cat >>conftest.$ac_ext <<_ACEOF
  21132. -/* end confdefs.h. */
  21133. -int
  21134. -main ()
  21135. -{
  21136. -#ifndef __GNUC__
  21137. - choke me
  21138. -#endif
  21139. - ;
  21140. - return 0;
  21141. -}
  21142. -_ACEOF
  21143. -rm -f conftest.$ac_objext
  21144. -if { (ac_try="$ac_compile"
  21145. -case "(($ac_try" in
  21146. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21147. - *) ac_try_echo=$ac_try;;
  21148. -esac
  21149. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21150. - (eval "$ac_compile") 2>conftest.er1
  21151. - ac_status=$?
  21152. - grep -v '^ *+' conftest.er1 >conftest.err
  21153. - rm -f conftest.er1
  21154. - cat conftest.err >&5
  21155. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21156. - (exit $ac_status); } && {
  21157. - test -z "$ac_cxx_werror_flag" ||
  21158. - test ! -s conftest.err
  21159. - } && test -s conftest.$ac_objext; then
  21160. - ac_compiler_gnu=yes
  21161. -else
  21162. - echo "$as_me: failed program was:" >&5
  21163. -sed 's/^/| /' conftest.$ac_ext >&5
  21164. - ac_compiler_gnu=no
  21165. -fi
  21166. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21167. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  21168. -fi
  21169. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  21170. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  21171. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  21172. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  21173. -ac_save_CXXFLAGS=$CXXFLAGS
  21174. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  21175. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  21176. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  21177. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21178. -else
  21179. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  21180. - ac_cxx_werror_flag=yes
  21181. - ac_cv_prog_cxx_g=no
  21182. - CXXFLAGS="-g"
  21183. - cat >conftest.$ac_ext <<_ACEOF
  21184. -/* confdefs.h. */
  21185. -_ACEOF
  21186. -cat confdefs.h >>conftest.$ac_ext
  21187. -cat >>conftest.$ac_ext <<_ACEOF
  21188. -/* end confdefs.h. */
  21189. -int
  21190. -main ()
  21191. -{
  21192. - ;
  21193. - return 0;
  21194. -}
  21195. -_ACEOF
  21196. -rm -f conftest.$ac_objext
  21197. -if { (ac_try="$ac_compile"
  21198. -case "(($ac_try" in
  21199. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21200. - *) ac_try_echo=$ac_try;;
  21201. -esac
  21202. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21203. - (eval "$ac_compile") 2>conftest.er1
  21204. - ac_status=$?
  21205. - grep -v '^ *+' conftest.er1 >conftest.err
  21206. - rm -f conftest.er1
  21207. - cat conftest.err >&5
  21208. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21209. - (exit $ac_status); } && {
  21210. - test -z "$ac_cxx_werror_flag" ||
  21211. - test ! -s conftest.err
  21212. - } && test -s conftest.$ac_objext; then
  21213. - ac_cv_prog_cxx_g=yes
  21214. -else
  21215. - echo "$as_me: failed program was:" >&5
  21216. -sed 's/^/| /' conftest.$ac_ext >&5
  21217. - CXXFLAGS=""
  21218. - cat >conftest.$ac_ext <<_ACEOF
  21219. -/* confdefs.h. */
  21220. -_ACEOF
  21221. -cat confdefs.h >>conftest.$ac_ext
  21222. -cat >>conftest.$ac_ext <<_ACEOF
  21223. -/* end confdefs.h. */
  21224. -int
  21225. -main ()
  21226. -{
  21227. - ;
  21228. - return 0;
  21229. -}
  21230. -_ACEOF
  21231. -rm -f conftest.$ac_objext
  21232. -if { (ac_try="$ac_compile"
  21233. -case "(($ac_try" in
  21234. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21235. - *) ac_try_echo=$ac_try;;
  21236. -esac
  21237. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21238. - (eval "$ac_compile") 2>conftest.er1
  21239. - ac_status=$?
  21240. - grep -v '^ *+' conftest.er1 >conftest.err
  21241. - rm -f conftest.er1
  21242. - cat conftest.err >&5
  21243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21244. - (exit $ac_status); } && {
  21245. - test -z "$ac_cxx_werror_flag" ||
  21246. - test ! -s conftest.err
  21247. - } && test -s conftest.$ac_objext; then
  21248. - :
  21249. +if test -n "$ac_tool_prefix"; then
  21250. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  21251. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  21252. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21253. +$as_echo_n "checking for $ac_word... " >&6; }
  21254. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  21255. + $as_echo_n "(cached) " >&6
  21256. else
  21257. - echo "$as_me: failed program was:" >&5
  21258. -sed 's/^/| /' conftest.$ac_ext >&5
  21259. -
  21260. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21261. - CXXFLAGS="-g"
  21262. - cat >conftest.$ac_ext <<_ACEOF
  21263. -/* confdefs.h. */
  21264. -_ACEOF
  21265. -cat confdefs.h >>conftest.$ac_ext
  21266. -cat >>conftest.$ac_ext <<_ACEOF
  21267. -/* end confdefs.h. */
  21268. -
  21269. -int
  21270. -main ()
  21271. -{
  21272. + if test -n "$STRIP"; then
  21273. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  21274. +else
  21275. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21276. +for as_dir in $PATH
  21277. +do
  21278. + IFS=$as_save_IFS
  21279. + test -z "$as_dir" && as_dir=.
  21280. + for ac_exec_ext in '' $ac_executable_extensions; do
  21281. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21282. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  21283. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21284. + break 2
  21285. + fi
  21286. +done
  21287. + done
  21288. +IFS=$as_save_IFS
  21289. - ;
  21290. - return 0;
  21291. -}
  21292. -_ACEOF
  21293. -rm -f conftest.$ac_objext
  21294. -if { (ac_try="$ac_compile"
  21295. -case "(($ac_try" in
  21296. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21297. - *) ac_try_echo=$ac_try;;
  21298. -esac
  21299. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21300. - (eval "$ac_compile") 2>conftest.er1
  21301. - ac_status=$?
  21302. - grep -v '^ *+' conftest.er1 >conftest.err
  21303. - rm -f conftest.er1
  21304. - cat conftest.err >&5
  21305. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21306. - (exit $ac_status); } && {
  21307. - test -z "$ac_cxx_werror_flag" ||
  21308. - test ! -s conftest.err
  21309. - } && test -s conftest.$ac_objext; then
  21310. - ac_cv_prog_cxx_g=yes
  21311. +fi
  21312. +fi
  21313. +STRIP=$ac_cv_prog_STRIP
  21314. +if test -n "$STRIP"; then
  21315. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  21316. +$as_echo "$STRIP" >&6; }
  21317. else
  21318. - echo "$as_me: failed program was:" >&5
  21319. -sed 's/^/| /' conftest.$ac_ext >&5
  21320. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21321. +$as_echo "no" >&6; }
  21322. +fi
  21323. fi
  21324. +if test -z "$ac_cv_prog_STRIP"; then
  21325. + ac_ct_STRIP=$STRIP
  21326. + # Extract the first word of "strip", so it can be a program name with args.
  21327. +set dummy strip; ac_word=$2
  21328. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21329. +$as_echo_n "checking for $ac_word... " >&6; }
  21330. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  21331. + $as_echo_n "(cached) " >&6
  21332. +else
  21333. + if test -n "$ac_ct_STRIP"; then
  21334. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  21335. +else
  21336. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21337. +for as_dir in $PATH
  21338. +do
  21339. + IFS=$as_save_IFS
  21340. + test -z "$as_dir" && as_dir=.
  21341. + for ac_exec_ext in '' $ac_executable_extensions; do
  21342. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21343. + ac_cv_prog_ac_ct_STRIP="strip"
  21344. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21345. + break 2
  21346. + fi
  21347. +done
  21348. + done
  21349. +IFS=$as_save_IFS
  21350. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21351. fi
  21352. -
  21353. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21354. fi
  21355. -
  21356. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21357. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  21358. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  21359. +if test -n "$ac_ct_STRIP"; then
  21360. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  21361. +$as_echo "$ac_ct_STRIP" >&6; }
  21362. +else
  21363. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21364. +$as_echo "no" >&6; }
  21365. fi
  21366. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  21367. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  21368. -if test "$ac_test_CXXFLAGS" = set; then
  21369. - CXXFLAGS=$ac_save_CXXFLAGS
  21370. -elif test $ac_cv_prog_cxx_g = yes; then
  21371. - if test "$GXX" = yes; then
  21372. - CXXFLAGS="-g -O2"
  21373. +
  21374. + if test "x$ac_ct_STRIP" = x; then
  21375. + STRIP=":"
  21376. else
  21377. - CXXFLAGS="-g"
  21378. + case $cross_compiling:$ac_tool_warned in
  21379. +yes:)
  21380. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21381. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21382. +ac_tool_warned=yes ;;
  21383. +esac
  21384. + STRIP=$ac_ct_STRIP
  21385. fi
  21386. else
  21387. - if test "$GXX" = yes; then
  21388. - CXXFLAGS="-O2"
  21389. - else
  21390. - CXXFLAGS=
  21391. - fi
  21392. + STRIP="$ac_cv_prog_STRIP"
  21393. fi
  21394. -ac_ext=cpp
  21395. -ac_cpp='$CXXCPP $CPPFLAGS'
  21396. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21397. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21398. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21399. -depcc="$CXX" am_compiler_list=
  21400. +test -z "$STRIP" && STRIP=:
  21401. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  21402. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  21403. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  21404. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21405. -else
  21406. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21407. - # We make a subdir and do the tests there. Otherwise we can end up
  21408. - # making bogus files that we don't know about and never remove. For
  21409. - # instance it was reported that on HP-UX the gcc test will end up
  21410. - # making a dummy file named `D' -- because `-MD' means `put the output
  21411. - # in D'.
  21412. - mkdir conftest.dir
  21413. - # Copy depcomp to subdir because otherwise we won't find it if we're
  21414. - # using a relative directory.
  21415. - cp "$am_depcomp" conftest.dir
  21416. - cd conftest.dir
  21417. - # We will build objects and dependencies in a subdirectory because
  21418. - # it helps to detect inapplicable dependency modes. For instance
  21419. - # both Tru64's cc and ICC support -MD to output dependencies as a
  21420. - # side effect of compilation, but ICC will put the dependencies in
  21421. - # the current directory while Tru64 will put them in the object
  21422. - # directory.
  21423. - mkdir sub
  21424. - am_cv_CXX_dependencies_compiler_type=none
  21425. - if test "$am_compiler_list" = ""; then
  21426. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21427. - fi
  21428. - for depmode in $am_compiler_list; do
  21429. - # Setup a source with many dependencies, because some compilers
  21430. - # like to wrap large dependency lists on column 80 (with \), and
  21431. - # we should not choose a depcomp mode which is confused by this.
  21432. - #
  21433. - # We need to recreate these files for each test, as the compiler may
  21434. - # overwrite some of them when testing with obscure command lines.
  21435. - # This happens at least with the AIX C compiler.
  21436. - : > sub/conftest.c
  21437. - for i in 1 2 3 4 5 6; do
  21438. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21439. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21440. - # Solaris 8's {/usr,}/bin/sh.
  21441. - touch sub/conftst$i.h
  21442. - done
  21443. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21444. - case $depmode in
  21445. - nosideeffect)
  21446. - # after this tag, mechanisms are not by side-effect, so they'll
  21447. - # only be used when explicitly requested
  21448. - if test "x$enable_dependency_tracking" = xyes; then
  21449. - continue
  21450. - else
  21451. - break
  21452. - fi
  21453. - ;;
  21454. - none) break ;;
  21455. - esac
  21456. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21457. - # mode. It turns out that the SunPro C++ compiler does not properly
  21458. - # handle `-M -o', and we need to detect this.
  21459. - if depmode=$depmode \
  21460. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  21461. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21462. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  21463. - >/dev/null 2>conftest.err &&
  21464. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  21465. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21466. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  21467. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21468. - # icc doesn't choke on unknown options, it will just issue warnings
  21469. - # or remarks (even with -Werror). So we grep stderr for any message
  21470. - # that says an option was ignored or not supported.
  21471. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  21472. - # icc: Command line warning: ignoring option '-M'; no argument required
  21473. - # The diagnosis changed in icc 8.0:
  21474. - # icc: Command line remark: option '-MP' not supported
  21475. - if (grep 'ignoring option' conftest.err ||
  21476. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21477. - am_cv_CXX_dependencies_compiler_type=$depmode
  21478. - break
  21479. - fi
  21480. - fi
  21481. - done
  21482. - cd ..
  21483. - rm -rf conftest.dir
  21484. +
  21485. +
  21486. +if test -n "$ac_tool_prefix"; then
  21487. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  21488. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  21489. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21490. +$as_echo_n "checking for $ac_word... " >&6; }
  21491. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  21492. + $as_echo_n "(cached) " >&6
  21493. else
  21494. - am_cv_CXX_dependencies_compiler_type=none
  21495. -fi
  21496. + if test -n "$RANLIB"; then
  21497. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  21498. +else
  21499. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21500. +for as_dir in $PATH
  21501. +do
  21502. + IFS=$as_save_IFS
  21503. + test -z "$as_dir" && as_dir=.
  21504. + for ac_exec_ext in '' $ac_executable_extensions; do
  21505. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21506. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  21507. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21508. + break 2
  21509. + fi
  21510. +done
  21511. + done
  21512. +IFS=$as_save_IFS
  21513. fi
  21514. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  21515. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  21516. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  21517. -
  21518. - if
  21519. - test "x$enable_dependency_tracking" != xno \
  21520. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  21521. - am__fastdepCXX_TRUE=
  21522. - am__fastdepCXX_FALSE='#'
  21523. +fi
  21524. +RANLIB=$ac_cv_prog_RANLIB
  21525. +if test -n "$RANLIB"; then
  21526. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  21527. +$as_echo "$RANLIB" >&6; }
  21528. else
  21529. - am__fastdepCXX_TRUE='#'
  21530. - am__fastdepCXX_FALSE=
  21531. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21532. +$as_echo "no" >&6; }
  21533. fi
  21534. -
  21535. -
  21536. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  21537. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  21538. - (test "X$CXX" != "Xg++"))) ; then
  21539. - ac_ext=cpp
  21540. -ac_cpp='$CXXCPP $CPPFLAGS'
  21541. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21542. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21543. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21544. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  21545. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  21546. -if test -z "$CXXCPP"; then
  21547. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  21548. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21549. +fi
  21550. +if test -z "$ac_cv_prog_RANLIB"; then
  21551. + ac_ct_RANLIB=$RANLIB
  21552. + # Extract the first word of "ranlib", so it can be a program name with args.
  21553. +set dummy ranlib; ac_word=$2
  21554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21555. +$as_echo_n "checking for $ac_word... " >&6; }
  21556. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  21557. + $as_echo_n "(cached) " >&6
  21558. else
  21559. - # Double quotes because CXXCPP needs to be expanded
  21560. - for CXXCPP in "$CXX -E" "/lib/cpp"
  21561. - do
  21562. - ac_preproc_ok=false
  21563. -for ac_cxx_preproc_warn_flag in '' yes
  21564. + if test -n "$ac_ct_RANLIB"; then
  21565. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  21566. +else
  21567. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21568. +for as_dir in $PATH
  21569. do
  21570. - # Use a header file that comes with gcc, so configuring glibc
  21571. - # with a fresh cross-compiler works.
  21572. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21573. - # <limits.h> exists even on freestanding compilers.
  21574. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21575. - # not just through cpp. "Syntax error" is here to catch this case.
  21576. - cat >conftest.$ac_ext <<_ACEOF
  21577. -/* confdefs.h. */
  21578. -_ACEOF
  21579. -cat confdefs.h >>conftest.$ac_ext
  21580. -cat >>conftest.$ac_ext <<_ACEOF
  21581. -/* end confdefs.h. */
  21582. -#ifdef __STDC__
  21583. -# include <limits.h>
  21584. -#else
  21585. -# include <assert.h>
  21586. -#endif
  21587. - Syntax error
  21588. -_ACEOF
  21589. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21590. -case "(($ac_try" in
  21591. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21592. - *) ac_try_echo=$ac_try;;
  21593. -esac
  21594. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21595. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21596. - ac_status=$?
  21597. - grep -v '^ *+' conftest.er1 >conftest.err
  21598. - rm -f conftest.er1
  21599. - cat conftest.err >&5
  21600. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21601. - (exit $ac_status); } >/dev/null && {
  21602. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21603. - test ! -s conftest.err
  21604. - }; then
  21605. - :
  21606. -else
  21607. - echo "$as_me: failed program was:" >&5
  21608. -sed 's/^/| /' conftest.$ac_ext >&5
  21609. + IFS=$as_save_IFS
  21610. + test -z "$as_dir" && as_dir=.
  21611. + for ac_exec_ext in '' $ac_executable_extensions; do
  21612. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21613. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  21614. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21615. + break 2
  21616. + fi
  21617. +done
  21618. + done
  21619. +IFS=$as_save_IFS
  21620. - # Broken: fails on valid input.
  21621. -continue
  21622. +fi
  21623. +fi
  21624. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  21625. +if test -n "$ac_ct_RANLIB"; then
  21626. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  21627. +$as_echo "$ac_ct_RANLIB" >&6; }
  21628. +else
  21629. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21630. +$as_echo "no" >&6; }
  21631. fi
  21632. -rm -f conftest.err conftest.$ac_ext
  21633. -
  21634. - # OK, works on sane cases. Now check whether nonexistent headers
  21635. - # can be detected and how.
  21636. - cat >conftest.$ac_ext <<_ACEOF
  21637. -/* confdefs.h. */
  21638. -_ACEOF
  21639. -cat confdefs.h >>conftest.$ac_ext
  21640. -cat >>conftest.$ac_ext <<_ACEOF
  21641. -/* end confdefs.h. */
  21642. -#include <ac_nonexistent.h>
  21643. -_ACEOF
  21644. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21645. -case "(($ac_try" in
  21646. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21647. - *) ac_try_echo=$ac_try;;
  21648. + if test "x$ac_ct_RANLIB" = x; then
  21649. + RANLIB=":"
  21650. + else
  21651. + case $cross_compiling:$ac_tool_warned in
  21652. +yes:)
  21653. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21654. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21655. +ac_tool_warned=yes ;;
  21656. esac
  21657. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21658. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21659. - ac_status=$?
  21660. - grep -v '^ *+' conftest.er1 >conftest.err
  21661. - rm -f conftest.er1
  21662. - cat conftest.err >&5
  21663. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21664. - (exit $ac_status); } >/dev/null && {
  21665. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21666. - test ! -s conftest.err
  21667. - }; then
  21668. - # Broken: success on invalid input.
  21669. -continue
  21670. + RANLIB=$ac_ct_RANLIB
  21671. + fi
  21672. else
  21673. - echo "$as_me: failed program was:" >&5
  21674. -sed 's/^/| /' conftest.$ac_ext >&5
  21675. -
  21676. - # Passes both tests.
  21677. -ac_preproc_ok=:
  21678. -break
  21679. + RANLIB="$ac_cv_prog_RANLIB"
  21680. fi
  21681. -rm -f conftest.err conftest.$ac_ext
  21682. +test -z "$RANLIB" && RANLIB=:
  21683. -done
  21684. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21685. -rm -f conftest.err conftest.$ac_ext
  21686. -if $ac_preproc_ok; then
  21687. - break
  21688. -fi
  21689. - done
  21690. - ac_cv_prog_CXXCPP=$CXXCPP
  21691. -fi
  21692. - CXXCPP=$ac_cv_prog_CXXCPP
  21693. -else
  21694. - ac_cv_prog_CXXCPP=$CXXCPP
  21695. -fi
  21696. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  21697. -echo "${ECHO_T}$CXXCPP" >&6; }
  21698. -ac_preproc_ok=false
  21699. -for ac_cxx_preproc_warn_flag in '' yes
  21700. -do
  21701. - # Use a header file that comes with gcc, so configuring glibc
  21702. - # with a fresh cross-compiler works.
  21703. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21704. - # <limits.h> exists even on freestanding compilers.
  21705. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21706. - # not just through cpp. "Syntax error" is here to catch this case.
  21707. - cat >conftest.$ac_ext <<_ACEOF
  21708. -/* confdefs.h. */
  21709. -_ACEOF
  21710. -cat confdefs.h >>conftest.$ac_ext
  21711. -cat >>conftest.$ac_ext <<_ACEOF
  21712. -/* end confdefs.h. */
  21713. -#ifdef __STDC__
  21714. -# include <limits.h>
  21715. -#else
  21716. -# include <assert.h>
  21717. -#endif
  21718. - Syntax error
  21719. -_ACEOF
  21720. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21721. -case "(($ac_try" in
  21722. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21723. - *) ac_try_echo=$ac_try;;
  21724. -esac
  21725. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21726. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21727. - ac_status=$?
  21728. - grep -v '^ *+' conftest.er1 >conftest.err
  21729. - rm -f conftest.er1
  21730. - cat conftest.err >&5
  21731. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21732. - (exit $ac_status); } >/dev/null && {
  21733. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21734. - test ! -s conftest.err
  21735. - }; then
  21736. - :
  21737. -else
  21738. - echo "$as_me: failed program was:" >&5
  21739. -sed 's/^/| /' conftest.$ac_ext >&5
  21740. - # Broken: fails on valid input.
  21741. -continue
  21742. -fi
  21743. -rm -f conftest.err conftest.$ac_ext
  21744. - # OK, works on sane cases. Now check whether nonexistent headers
  21745. - # can be detected and how.
  21746. - cat >conftest.$ac_ext <<_ACEOF
  21747. -/* confdefs.h. */
  21748. -_ACEOF
  21749. -cat confdefs.h >>conftest.$ac_ext
  21750. -cat >>conftest.$ac_ext <<_ACEOF
  21751. -/* end confdefs.h. */
  21752. -#include <ac_nonexistent.h>
  21753. -_ACEOF
  21754. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  21755. -case "(($ac_try" in
  21756. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21757. - *) ac_try_echo=$ac_try;;
  21758. -esac
  21759. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21760. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21761. - ac_status=$?
  21762. - grep -v '^ *+' conftest.er1 >conftest.err
  21763. - rm -f conftest.er1
  21764. - cat conftest.err >&5
  21765. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21766. - (exit $ac_status); } >/dev/null && {
  21767. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  21768. - test ! -s conftest.err
  21769. - }; then
  21770. - # Broken: success on invalid input.
  21771. -continue
  21772. -else
  21773. - echo "$as_me: failed program was:" >&5
  21774. -sed 's/^/| /' conftest.$ac_ext >&5
  21775. +# Determine commands to create old-style static archives.
  21776. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  21777. +old_postinstall_cmds='chmod 644 $oldlib'
  21778. +old_postuninstall_cmds=
  21779. - # Passes both tests.
  21780. -ac_preproc_ok=:
  21781. -break
  21782. +if test -n "$RANLIB"; then
  21783. + case $host_os in
  21784. + openbsd*)
  21785. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  21786. + ;;
  21787. + *)
  21788. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  21789. + ;;
  21790. + esac
  21791. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  21792. fi
  21793. -rm -f conftest.err conftest.$ac_ext
  21794. -done
  21795. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21796. -rm -f conftest.err conftest.$ac_ext
  21797. -if $ac_preproc_ok; then
  21798. - :
  21799. -else
  21800. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  21801. -See \`config.log' for more details." >&5
  21802. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  21803. -See \`config.log' for more details." >&2;}
  21804. - { (exit 1); exit 1; }; }
  21805. -fi
  21806. -ac_ext=cpp
  21807. -ac_cpp='$CXXCPP $CPPFLAGS'
  21808. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21809. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21810. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21811. -fi
  21812. -ac_ext=f
  21813. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  21814. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21815. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  21816. -if test -n "$ac_tool_prefix"; then
  21817. - 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
  21818. - do
  21819. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21820. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21821. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21822. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21823. -if test "${ac_cv_prog_F77+set}" = set; then
  21824. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21825. -else
  21826. - if test -n "$F77"; then
  21827. - ac_cv_prog_F77="$F77" # Let the user override the test.
  21828. -else
  21829. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21830. -for as_dir in $PATH
  21831. -do
  21832. - IFS=$as_save_IFS
  21833. - test -z "$as_dir" && as_dir=.
  21834. - for ac_exec_ext in '' $ac_executable_extensions; do
  21835. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21836. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  21837. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21838. - break 2
  21839. - fi
  21840. -done
  21841. -done
  21842. -IFS=$as_save_IFS
  21843. -fi
  21844. -fi
  21845. -F77=$ac_cv_prog_F77
  21846. -if test -n "$F77"; then
  21847. - { echo "$as_me:$LINENO: result: $F77" >&5
  21848. -echo "${ECHO_T}$F77" >&6; }
  21849. -else
  21850. - { echo "$as_me:$LINENO: result: no" >&5
  21851. -echo "${ECHO_T}no" >&6; }
  21852. -fi
  21853. - test -n "$F77" && break
  21854. - done
  21855. -fi
  21856. -if test -z "$F77"; then
  21857. - ac_ct_F77=$F77
  21858. - 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
  21859. -do
  21860. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21861. -set dummy $ac_prog; ac_word=$2
  21862. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  21863. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21864. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  21865. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21866. -else
  21867. - if test -n "$ac_ct_F77"; then
  21868. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  21869. -else
  21870. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21871. -for as_dir in $PATH
  21872. -do
  21873. - IFS=$as_save_IFS
  21874. - test -z "$as_dir" && as_dir=.
  21875. - for ac_exec_ext in '' $ac_executable_extensions; do
  21876. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21877. - ac_cv_prog_ac_ct_F77="$ac_prog"
  21878. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21879. - break 2
  21880. - fi
  21881. -done
  21882. -done
  21883. -IFS=$as_save_IFS
  21884. -fi
  21885. -fi
  21886. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  21887. -if test -n "$ac_ct_F77"; then
  21888. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  21889. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  21890. -else
  21891. - { echo "$as_me:$LINENO: result: no" >&5
  21892. -echo "${ECHO_T}no" >&6; }
  21893. -fi
  21894. - test -n "$ac_ct_F77" && break
  21895. -done
  21896. - if test "x$ac_ct_F77" = x; then
  21897. - F77=""
  21898. - else
  21899. - case $cross_compiling:$ac_tool_warned in
  21900. -yes:)
  21901. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21902. -whose name does not start with the host triplet. If you think this
  21903. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21904. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21905. -whose name does not start with the host triplet. If you think this
  21906. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21907. -ac_tool_warned=yes ;;
  21908. -esac
  21909. - F77=$ac_ct_F77
  21910. - fi
  21911. -fi
  21912. -# Provide some information about the compiler.
  21913. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  21914. -ac_compiler=`set X $ac_compile; echo $2`
  21915. -{ (ac_try="$ac_compiler --version >&5"
  21916. -case "(($ac_try" in
  21917. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21918. - *) ac_try_echo=$ac_try;;
  21919. -esac
  21920. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21921. - (eval "$ac_compiler --version >&5") 2>&5
  21922. - ac_status=$?
  21923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21924. - (exit $ac_status); }
  21925. -{ (ac_try="$ac_compiler -v >&5"
  21926. -case "(($ac_try" in
  21927. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21928. - *) ac_try_echo=$ac_try;;
  21929. -esac
  21930. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21931. - (eval "$ac_compiler -v >&5") 2>&5
  21932. - ac_status=$?
  21933. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21934. - (exit $ac_status); }
  21935. -{ (ac_try="$ac_compiler -V >&5"
  21936. -case "(($ac_try" in
  21937. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21938. - *) ac_try_echo=$ac_try;;
  21939. -esac
  21940. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21941. - (eval "$ac_compiler -V >&5") 2>&5
  21942. - ac_status=$?
  21943. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21944. - (exit $ac_status); }
  21945. -rm -f a.out
  21946. -
  21947. -# If we don't use `.F' as extension, the preprocessor is not run on the
  21948. -# input file. (Note that this only needs to work for GNU compilers.)
  21949. -ac_save_ext=$ac_ext
  21950. -ac_ext=F
  21951. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  21952. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  21953. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  21954. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21955. -else
  21956. - cat >conftest.$ac_ext <<_ACEOF
  21957. - program main
  21958. -#ifndef __GNUC__
  21959. - choke me
  21960. -#endif
  21961. - end
  21962. -_ACEOF
  21963. -rm -f conftest.$ac_objext
  21964. -if { (ac_try="$ac_compile"
  21965. -case "(($ac_try" in
  21966. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21967. - *) ac_try_echo=$ac_try;;
  21968. -esac
  21969. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21970. - (eval "$ac_compile") 2>conftest.er1
  21971. - ac_status=$?
  21972. - grep -v '^ *+' conftest.er1 >conftest.err
  21973. - rm -f conftest.er1
  21974. - cat conftest.err >&5
  21975. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21976. - (exit $ac_status); } && {
  21977. - test -z "$ac_f77_werror_flag" ||
  21978. - test ! -s conftest.err
  21979. - } && test -s conftest.$ac_objext; then
  21980. - ac_compiler_gnu=yes
  21981. -else
  21982. - echo "$as_me: failed program was:" >&5
  21983. -sed 's/^/| /' conftest.$ac_ext >&5
  21984. - ac_compiler_gnu=no
  21985. -fi
  21986. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21987. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  21988. -fi
  21989. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  21990. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  21991. -ac_ext=$ac_save_ext
  21992. -ac_test_FFLAGS=${FFLAGS+set}
  21993. -ac_save_FFLAGS=$FFLAGS
  21994. -FFLAGS=
  21995. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  21996. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  21997. -if test "${ac_cv_prog_f77_g+set}" = set; then
  21998. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21999. -else
  22000. - FFLAGS=-g
  22001. -cat >conftest.$ac_ext <<_ACEOF
  22002. - program main
  22003. - end
  22004. -_ACEOF
  22005. -rm -f conftest.$ac_objext
  22006. -if { (ac_try="$ac_compile"
  22007. -case "(($ac_try" in
  22008. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22009. - *) ac_try_echo=$ac_try;;
  22010. -esac
  22011. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22012. - (eval "$ac_compile") 2>conftest.er1
  22013. - ac_status=$?
  22014. - grep -v '^ *+' conftest.er1 >conftest.err
  22015. - rm -f conftest.er1
  22016. - cat conftest.err >&5
  22017. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22018. - (exit $ac_status); } && {
  22019. - test -z "$ac_f77_werror_flag" ||
  22020. - test ! -s conftest.err
  22021. - } && test -s conftest.$ac_objext; then
  22022. - ac_cv_prog_f77_g=yes
  22023. -else
  22024. - echo "$as_me: failed program was:" >&5
  22025. -sed 's/^/| /' conftest.$ac_ext >&5
  22026. - ac_cv_prog_f77_g=no
  22027. -fi
  22028. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22029. -fi
  22030. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  22031. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  22032. -if test "$ac_test_FFLAGS" = set; then
  22033. - FFLAGS=$ac_save_FFLAGS
  22034. -elif test $ac_cv_prog_f77_g = yes; then
  22035. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22036. - FFLAGS="-g -O2"
  22037. - else
  22038. - FFLAGS="-g"
  22039. - fi
  22040. -else
  22041. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22042. - FFLAGS="-O2"
  22043. - else
  22044. - FFLAGS=
  22045. - fi
  22046. -fi
  22047. -G77=`test $ac_compiler_gnu = yes && echo yes`
  22048. -ac_ext=c
  22049. -ac_cpp='$CPP $CPPFLAGS'
  22050. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22051. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22052. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22053. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  22054. -# find the maximum length of command line arguments
  22055. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  22056. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  22057. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  22058. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22059. -else
  22060. - i=0
  22061. - teststring="ABCD"
  22062. - case $build_os in
  22063. - msdosdjgpp*)
  22064. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  22065. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  22066. - # during glob expansion). Even if it were fixed, the result of this
  22067. - # check would be larger than it should be.
  22068. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  22069. - ;;
  22070. -
  22071. - gnu*)
  22072. - # Under GNU Hurd, this test is not required because there is
  22073. - # no limit to the length of command line arguments.
  22074. - # Libtool will interpret -1 as no limit whatsoever
  22075. - lt_cv_sys_max_cmd_len=-1;
  22076. - ;;
  22077. -
  22078. - cygwin* | mingw*)
  22079. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  22080. - # about 5 minutes as the teststring grows exponentially.
  22081. - # Worse, since 9x/ME are not pre-emptively multitasking,
  22082. - # you end up with a "frozen" computer, even though with patience
  22083. - # the test eventually succeeds (with a max line length of 256k).
  22084. - # Instead, let's just punt: use the minimum linelength reported by
  22085. - # all of the supported platforms: 8192 (on NT/2K/XP).
  22086. - lt_cv_sys_max_cmd_len=8192;
  22087. - ;;
  22088. -
  22089. - amigaos*)
  22090. - # On AmigaOS with pdksh, this test takes hours, literally.
  22091. - # So we just punt and use a minimum line length of 8192.
  22092. - lt_cv_sys_max_cmd_len=8192;
  22093. - ;;
  22094. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  22095. - # This has been around since 386BSD, at least. Likely further.
  22096. - if test -x /sbin/sysctl; then
  22097. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  22098. - elif test -x /usr/sbin/sysctl; then
  22099. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  22100. - else
  22101. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  22102. - fi
  22103. - # And add a safety zone
  22104. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22105. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22106. - ;;
  22107. - interix*)
  22108. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  22109. - lt_cv_sys_max_cmd_len=196608
  22110. - ;;
  22111. - osf*)
  22112. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  22113. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  22114. - # nice to cause kernel panics so lets avoid the loop below.
  22115. - # First set a reasonable default.
  22116. - lt_cv_sys_max_cmd_len=16384
  22117. - #
  22118. - if test -x /sbin/sysconfig; then
  22119. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  22120. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  22121. - esac
  22122. - fi
  22123. - ;;
  22124. - sco3.2v5*)
  22125. - lt_cv_sys_max_cmd_len=102400
  22126. - ;;
  22127. - sysv5* | sco5v6* | sysv4.2uw2*)
  22128. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  22129. - if test -n "$kargmax"; then
  22130. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  22131. - else
  22132. - lt_cv_sys_max_cmd_len=32768
  22133. - fi
  22134. - ;;
  22135. - *)
  22136. - # If test is not a shell built-in, we'll probably end up computing a
  22137. - # maximum length that is only half of the actual maximum length, but
  22138. - # we can't tell.
  22139. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  22140. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  22141. - = "XX$teststring") >/dev/null 2>&1 &&
  22142. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  22143. - lt_cv_sys_max_cmd_len=$new_result &&
  22144. - test $i != 17 # 1/2 MB should be enough
  22145. - do
  22146. - i=`expr $i + 1`
  22147. - teststring=$teststring$teststring
  22148. - done
  22149. - teststring=
  22150. - # Add a significant safety factor because C++ compilers can tack on massive
  22151. - # amounts of additional arguments before passing them to the linker.
  22152. - # It appears as though 1/2 is a usable value.
  22153. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  22154. - ;;
  22155. - esac
  22156. -fi
  22157. -if test -n $lt_cv_sys_max_cmd_len ; then
  22158. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  22159. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  22160. -else
  22161. - { echo "$as_me:$LINENO: result: none" >&5
  22162. -echo "${ECHO_T}none" >&6; }
  22163. -fi
  22164. +# If no C compiler was specified, use CC.
  22165. +LTCC=${LTCC-"$CC"}
  22166. +# If no C compiler flags were specified, use CFLAGS.
  22167. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  22168. +# Allow CC to be a program name with arguments.
  22169. +compiler=$CC
  22170. # Check for command to grab the raw symbol name followed by C symbol from nm.
  22171. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  22172. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  22173. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  22174. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  22176. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  22177. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  22178. + $as_echo_n "(cached) " >&6
  22179. else
  22180. # These are sane defaults that work on at least a few old systems.
  22181. @@ -6315,33 +5669,18 @@
  22182. # Regexp to match symbols that can be accessed directly from C.
  22183. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  22184. -# Transform an extracted symbol line into a proper C declaration
  22185. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  22186. -
  22187. -# Transform an extracted symbol line into symbol name and symbol address
  22188. -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'"
  22189. -
  22190. # Define system-specific variables.
  22191. case $host_os in
  22192. aix*)
  22193. symcode='[BCDT]'
  22194. ;;
  22195. -cygwin* | mingw* | pw32*)
  22196. +cygwin* | mingw* | pw32* | cegcc*)
  22197. symcode='[ABCDGISTW]'
  22198. ;;
  22199. -hpux*) # Its linker distinguishes data from code symbols
  22200. +hpux*)
  22201. if test "$host_cpu" = ia64; then
  22202. symcode='[ABCDEGRST]'
  22203. fi
  22204. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22205. - 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'"
  22206. - ;;
  22207. -linux* | k*bsd*-gnu)
  22208. - if test "$host_cpu" = ia64; then
  22209. - symcode='[ABCDGIRSTW]'
  22210. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22211. - 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'"
  22212. - fi
  22213. ;;
  22214. irix* | nonstopux*)
  22215. symcode='[BCDEGRST]'
  22216. @@ -6366,57 +5705,85 @@
  22217. ;;
  22218. esac
  22219. +# If we're using GNU nm, then use its standard symbol codes.
  22220. +case `$NM -V 2>&1` in
  22221. +*GNU* | *'with BFD'*)
  22222. + symcode='[ABCDGIRSTW]' ;;
  22223. +esac
  22224. +
  22225. +# Transform an extracted symbol line into a proper C declaration.
  22226. +# Some systems (esp. on ia64) link data and code symbols differently,
  22227. +# so use this general approach.
  22228. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22229. +
  22230. +# Transform an extracted symbol line into symbol name and symbol address
  22231. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  22232. +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'"
  22233. +
  22234. # Handle CRLF in mingw tool chain
  22235. opt_cr=
  22236. case $build_os in
  22237. mingw*)
  22238. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22239. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22240. ;;
  22241. esac
  22242. -# If we're using GNU nm, then use its standard symbol codes.
  22243. -case `$NM -V 2>&1` in
  22244. -*GNU* | *'with BFD'*)
  22245. - symcode='[ABCDGIRSTW]' ;;
  22246. -esac
  22247. -
  22248. -# Try without a prefix undercore, then with it.
  22249. +# Try without a prefix underscore, then with it.
  22250. for ac_symprfx in "" "_"; do
  22251. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  22252. symxfrm="\\1 $ac_symprfx\\2 \\2"
  22253. # Write the raw and C identifiers.
  22254. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  22255. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  22256. + # Fake it for dumpbin and say T for any non-static function
  22257. + # and D for any global variable.
  22258. + # Also find C++ and __fastcall symbols from MSVC++,
  22259. + # which start with @ or ?.
  22260. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  22261. +" {last_section=section; section=\$ 3};"\
  22262. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  22263. +" \$ 0!~/External *\|/{next};"\
  22264. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  22265. +" {if(hide[section]) next};"\
  22266. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  22267. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  22268. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  22269. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  22270. +" ' prfx=^$ac_symprfx"
  22271. + else
  22272. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  22273. + fi
  22274. # Check to see that the pipe works correctly.
  22275. pipe_works=no
  22276. rm -f conftest*
  22277. - cat > conftest.$ac_ext <<EOF
  22278. + cat > conftest.$ac_ext <<_LT_EOF
  22279. #ifdef __cplusplus
  22280. extern "C" {
  22281. #endif
  22282. char nm_test_var;
  22283. -void nm_test_func(){}
  22284. +void nm_test_func(void);
  22285. +void nm_test_func(void){}
  22286. #ifdef __cplusplus
  22287. }
  22288. #endif
  22289. int main(){nm_test_var='a';nm_test_func();return(0);}
  22290. -EOF
  22291. +_LT_EOF
  22292. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22293. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22294. (eval $ac_compile) 2>&5
  22295. ac_status=$?
  22296. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22297. - (exit $ac_status); }; then
  22298. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22299. + test $ac_status = 0; }; then
  22300. # Now try to grab the symbols.
  22301. nlist=conftest.nm
  22302. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  22303. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  22304. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  22305. ac_status=$?
  22306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22307. - (exit $ac_status); } && test -s "$nlist"; then
  22308. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22309. + test $ac_status = 0; } && test -s "$nlist"; then
  22310. # Try sorting and uniquifying the output.
  22311. if sort "$nlist" | uniq > "$nlist"T; then
  22312. mv -f "$nlist"T "$nlist"
  22313. @@ -6425,53 +5792,55 @@
  22314. fi
  22315. # Make sure that we snagged all the symbols we need.
  22316. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  22317. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  22318. - cat <<EOF > conftest.$ac_ext
  22319. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  22320. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  22321. + cat <<_LT_EOF > conftest.$ac_ext
  22322. #ifdef __cplusplus
  22323. extern "C" {
  22324. #endif
  22325. -EOF
  22326. +_LT_EOF
  22327. # Now generate the symbol file.
  22328. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  22329. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  22330. - cat <<EOF >> conftest.$ac_ext
  22331. -#if defined (__STDC__) && __STDC__
  22332. -# define lt_ptr_t void *
  22333. -#else
  22334. -# define lt_ptr_t char *
  22335. -# define const
  22336. -#endif
  22337. + cat <<_LT_EOF >> conftest.$ac_ext
  22338. -/* The mapping between symbol names and symbols. */
  22339. +/* The mapping between symbol names and symbols. */
  22340. const struct {
  22341. const char *name;
  22342. - lt_ptr_t address;
  22343. + void *address;
  22344. }
  22345. -lt_preloaded_symbols[] =
  22346. +lt__PROGRAM__LTX_preloaded_symbols[] =
  22347. {
  22348. -EOF
  22349. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  22350. - cat <<\EOF >> conftest.$ac_ext
  22351. - {0, (lt_ptr_t) 0}
  22352. + { "@PROGRAM@", (void *) 0 },
  22353. +_LT_EOF
  22354. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  22355. + cat <<\_LT_EOF >> conftest.$ac_ext
  22356. + {0, (void *) 0}
  22357. };
  22358. +/* This works around a problem in FreeBSD linker */
  22359. +#ifdef FREEBSD_WORKAROUND
  22360. +static const void *lt_preloaded_setup() {
  22361. + return lt__PROGRAM__LTX_preloaded_symbols;
  22362. +}
  22363. +#endif
  22364. +
  22365. #ifdef __cplusplus
  22366. }
  22367. #endif
  22368. -EOF
  22369. +_LT_EOF
  22370. # Now try linking the two files.
  22371. mv conftest.$ac_objext conftstm.$ac_objext
  22372. lt_save_LIBS="$LIBS"
  22373. lt_save_CFLAGS="$CFLAGS"
  22374. LIBS="conftstm.$ac_objext"
  22375. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  22376. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22377. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22378. (eval $ac_link) 2>&5
  22379. ac_status=$?
  22380. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22381. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  22382. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22383. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  22384. pipe_works=yes
  22385. fi
  22386. LIBS="$lt_save_LIBS"
  22387. @@ -6489,7 +5858,7 @@
  22388. echo "$progname: failed program was:" >&5
  22389. cat conftest.$ac_ext >&5
  22390. fi
  22391. - rm -f conftest* conftst*
  22392. + rm -rf conftest* conftst*
  22393. # Do not use the global_symbol_pipe unless it works.
  22394. if test "$pipe_works" = yes; then
  22395. @@ -6505,11152 +5874,3297 @@
  22396. lt_cv_sys_global_symbol_to_cdecl=
  22397. fi
  22398. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  22399. - { echo "$as_me:$LINENO: result: failed" >&5
  22400. -echo "${ECHO_T}failed" >&6; }
  22401. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  22402. +$as_echo "failed" >&6; }
  22403. else
  22404. - { echo "$as_me:$LINENO: result: ok" >&5
  22405. -echo "${ECHO_T}ok" >&6; }
  22406. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  22407. +$as_echo "ok" >&6; }
  22408. fi
  22409. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  22410. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  22411. -if test "${lt_cv_objdir+set}" = set; then
  22412. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22413. -else
  22414. - rm -f .libs 2>/dev/null
  22415. -mkdir .libs 2>/dev/null
  22416. -if test -d .libs; then
  22417. - lt_cv_objdir=.libs
  22418. -else
  22419. - # MS-DOS does not allow filenames that begin with a dot.
  22420. - lt_cv_objdir=_libs
  22421. -fi
  22422. -rmdir .libs 2>/dev/null
  22423. -fi
  22424. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  22425. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  22426. -objdir=$lt_cv_objdir
  22427. -case $host_os in
  22428. -aix3*)
  22429. - # AIX sometimes has problems with the GCC collect2 program. For some
  22430. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  22431. - # vanish in a puff of smoke.
  22432. - if test "X${COLLECT_NAMES+set}" != Xset; then
  22433. - COLLECT_NAMES=
  22434. - export COLLECT_NAMES
  22435. - fi
  22436. - ;;
  22437. -esac
  22438. -# Sed substitution that helps us do robust quoting. It backslashifies
  22439. -# metacharacters that are still active within double-quoted strings.
  22440. -Xsed='sed -e 1s/^X//'
  22441. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  22442. -# Same as above, but do not quote variable references.
  22443. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  22444. -# Sed substitution to delay expansion of an escaped shell variable in a
  22445. -# double_quote_subst'ed string.
  22446. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  22447. -# Sed substitution to avoid accidental globbing in evaled expressions
  22448. -no_glob_subst='s/\*/\\\*/g'
  22449. -# Constants:
  22450. -rm="rm -f"
  22451. -# Global variables:
  22452. -default_ofile=libtool
  22453. -can_build_shared=yes
  22454. -# All known linkers require a `.a' archive for static linking (except MSVC,
  22455. -# which needs '.lib').
  22456. -libext=a
  22457. -ltmain="$ac_aux_dir/ltmain.sh"
  22458. -ofile="$default_ofile"
  22459. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  22460. -if test -n "$ac_tool_prefix"; then
  22461. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22462. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  22463. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22464. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22465. -if test "${ac_cv_prog_AR+set}" = set; then
  22466. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22467. -else
  22468. - if test -n "$AR"; then
  22469. - ac_cv_prog_AR="$AR" # Let the user override the test.
  22470. -else
  22471. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22472. -for as_dir in $PATH
  22473. -do
  22474. - IFS=$as_save_IFS
  22475. - test -z "$as_dir" && as_dir=.
  22476. - for ac_exec_ext in '' $ac_executable_extensions; do
  22477. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22478. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  22479. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22480. - break 2
  22481. - fi
  22482. -done
  22483. -done
  22484. -IFS=$as_save_IFS
  22485. -fi
  22486. -fi
  22487. -AR=$ac_cv_prog_AR
  22488. -if test -n "$AR"; then
  22489. - { echo "$as_me:$LINENO: result: $AR" >&5
  22490. -echo "${ECHO_T}$AR" >&6; }
  22491. -else
  22492. - { echo "$as_me:$LINENO: result: no" >&5
  22493. -echo "${ECHO_T}no" >&6; }
  22494. -fi
  22495. -fi
  22496. -if test -z "$ac_cv_prog_AR"; then
  22497. - ac_ct_AR=$AR
  22498. - # Extract the first word of "ar", so it can be a program name with args.
  22499. -set dummy ar; ac_word=$2
  22500. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22501. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22502. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  22503. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22504. -else
  22505. - if test -n "$ac_ct_AR"; then
  22506. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22507. -else
  22508. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22509. -for as_dir in $PATH
  22510. -do
  22511. - IFS=$as_save_IFS
  22512. - test -z "$as_dir" && as_dir=.
  22513. - for ac_exec_ext in '' $ac_executable_extensions; do
  22514. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22515. - ac_cv_prog_ac_ct_AR="ar"
  22516. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22517. - break 2
  22518. - fi
  22519. -done
  22520. -done
  22521. -IFS=$as_save_IFS
  22522. -fi
  22523. -fi
  22524. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22525. -if test -n "$ac_ct_AR"; then
  22526. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  22527. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  22528. -else
  22529. - { echo "$as_me:$LINENO: result: no" >&5
  22530. -echo "${ECHO_T}no" >&6; }
  22531. -fi
  22532. - if test "x$ac_ct_AR" = x; then
  22533. - AR="false"
  22534. - else
  22535. - case $cross_compiling:$ac_tool_warned in
  22536. -yes:)
  22537. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22538. -whose name does not start with the host triplet. If you think this
  22539. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22540. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22541. -whose name does not start with the host triplet. If you think this
  22542. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22543. -ac_tool_warned=yes ;;
  22544. -esac
  22545. - AR=$ac_ct_AR
  22546. - fi
  22547. -else
  22548. - AR="$ac_cv_prog_AR"
  22549. -fi
  22550. -if test -n "$ac_tool_prefix"; then
  22551. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22552. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22553. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22554. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22555. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  22556. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22557. -else
  22558. - if test -n "$RANLIB"; then
  22559. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22560. -else
  22561. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22562. -for as_dir in $PATH
  22563. -do
  22564. - IFS=$as_save_IFS
  22565. - test -z "$as_dir" && as_dir=.
  22566. - for ac_exec_ext in '' $ac_executable_extensions; do
  22567. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22568. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22569. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22570. - break 2
  22571. - fi
  22572. -done
  22573. -done
  22574. -IFS=$as_save_IFS
  22575. -fi
  22576. -fi
  22577. -RANLIB=$ac_cv_prog_RANLIB
  22578. -if test -n "$RANLIB"; then
  22579. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  22580. -echo "${ECHO_T}$RANLIB" >&6; }
  22581. -else
  22582. - { echo "$as_me:$LINENO: result: no" >&5
  22583. -echo "${ECHO_T}no" >&6; }
  22584. -fi
  22585. +# Check whether --enable-libtool-lock was given.
  22586. +if test "${enable_libtool_lock+set}" = set; then :
  22587. + enableval=$enable_libtool_lock;
  22588. fi
  22589. -if test -z "$ac_cv_prog_RANLIB"; then
  22590. - ac_ct_RANLIB=$RANLIB
  22591. - # Extract the first word of "ranlib", so it can be a program name with args.
  22592. -set dummy ranlib; ac_word=$2
  22593. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22594. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22595. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  22596. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22597. -else
  22598. - if test -n "$ac_ct_RANLIB"; then
  22599. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  22600. -else
  22601. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22602. +
  22603. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  22604. +
  22605. +# Some flags need to be propagated to the compiler or linker for good
  22606. +# libtool support.
  22607. +case $host in
  22608. +ia64-*-hpux*)
  22609. + # Find out which ABI we are using.
  22610. + echo 'int i;' > conftest.$ac_ext
  22611. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22612. + (eval $ac_compile) 2>&5
  22613. + ac_status=$?
  22614. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22615. + test $ac_status = 0; }; then
  22616. + case `/usr/bin/file conftest.$ac_objext` in
  22617. + *ELF-32*)
  22618. + HPUX_IA64_MODE="32"
  22619. + ;;
  22620. + *ELF-64*)
  22621. + HPUX_IA64_MODE="64"
  22622. + ;;
  22623. + esac
  22624. + fi
  22625. + rm -rf conftest*
  22626. + ;;
  22627. +*-*-irix6*)
  22628. + # Find out which ABI we are using.
  22629. + echo '#line 5937 "configure"' > conftest.$ac_ext
  22630. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22631. + (eval $ac_compile) 2>&5
  22632. + ac_status=$?
  22633. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22634. + test $ac_status = 0; }; then
  22635. + if test "$lt_cv_prog_gnu_ld" = yes; then
  22636. + case `/usr/bin/file conftest.$ac_objext` in
  22637. + *32-bit*)
  22638. + LD="${LD-ld} -melf32bsmip"
  22639. + ;;
  22640. + *N32*)
  22641. + LD="${LD-ld} -melf32bmipn32"
  22642. + ;;
  22643. + *64-bit*)
  22644. + LD="${LD-ld} -melf64bmip"
  22645. + ;;
  22646. + esac
  22647. + else
  22648. + case `/usr/bin/file conftest.$ac_objext` in
  22649. + *32-bit*)
  22650. + LD="${LD-ld} -32"
  22651. + ;;
  22652. + *N32*)
  22653. + LD="${LD-ld} -n32"
  22654. + ;;
  22655. + *64-bit*)
  22656. + LD="${LD-ld} -64"
  22657. + ;;
  22658. + esac
  22659. + fi
  22660. + fi
  22661. + rm -rf conftest*
  22662. + ;;
  22663. +
  22664. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  22665. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  22666. + # Find out which ABI we are using.
  22667. + echo 'int i;' > conftest.$ac_ext
  22668. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22669. + (eval $ac_compile) 2>&5
  22670. + ac_status=$?
  22671. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22672. + test $ac_status = 0; }; then
  22673. + case `/usr/bin/file conftest.o` in
  22674. + *32-bit*)
  22675. + case $host in
  22676. + x86_64-*kfreebsd*-gnu)
  22677. + LD="${LD-ld} -m elf_i386_fbsd"
  22678. + ;;
  22679. + x86_64-*linux*)
  22680. + LD="${LD-ld} -m elf_i386"
  22681. + ;;
  22682. + ppc64-*linux*|powerpc64-*linux*)
  22683. + LD="${LD-ld} -m elf32ppclinux"
  22684. + ;;
  22685. + s390x-*linux*)
  22686. + LD="${LD-ld} -m elf_s390"
  22687. + ;;
  22688. + sparc64-*linux*)
  22689. + LD="${LD-ld} -m elf32_sparc"
  22690. + ;;
  22691. + esac
  22692. + ;;
  22693. + *64-bit*)
  22694. + case $host in
  22695. + x86_64-*kfreebsd*-gnu)
  22696. + LD="${LD-ld} -m elf_x86_64_fbsd"
  22697. + ;;
  22698. + x86_64-*linux*)
  22699. + LD="${LD-ld} -m elf_x86_64"
  22700. + ;;
  22701. + ppc*-*linux*|powerpc*-*linux*)
  22702. + LD="${LD-ld} -m elf64ppc"
  22703. + ;;
  22704. + s390*-*linux*|s390*-*tpf*)
  22705. + LD="${LD-ld} -m elf64_s390"
  22706. + ;;
  22707. + sparc*-*linux*)
  22708. + LD="${LD-ld} -m elf64_sparc"
  22709. + ;;
  22710. + esac
  22711. + ;;
  22712. + esac
  22713. + fi
  22714. + rm -rf conftest*
  22715. + ;;
  22716. +
  22717. +*-*-sco3.2v5*)
  22718. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  22719. + SAVE_CFLAGS="$CFLAGS"
  22720. + CFLAGS="$CFLAGS -belf"
  22721. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  22722. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  22723. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  22724. + $as_echo_n "(cached) " >&6
  22725. +else
  22726. + ac_ext=c
  22727. +ac_cpp='$CPP $CPPFLAGS'
  22728. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22729. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22730. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22731. +
  22732. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22733. +/* end confdefs.h. */
  22734. +
  22735. +int
  22736. +main ()
  22737. +{
  22738. +
  22739. + ;
  22740. + return 0;
  22741. +}
  22742. +_ACEOF
  22743. +if ac_fn_c_try_link "$LINENO"; then :
  22744. + lt_cv_cc_needs_belf=yes
  22745. +else
  22746. + lt_cv_cc_needs_belf=no
  22747. +fi
  22748. +rm -f core conftest.err conftest.$ac_objext \
  22749. + conftest$ac_exeext conftest.$ac_ext
  22750. + ac_ext=c
  22751. +ac_cpp='$CPP $CPPFLAGS'
  22752. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22753. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22754. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22755. +
  22756. +fi
  22757. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  22758. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  22759. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  22760. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  22761. + CFLAGS="$SAVE_CFLAGS"
  22762. + fi
  22763. + ;;
  22764. +sparc*-*solaris*)
  22765. + # Find out which ABI we are using.
  22766. + echo 'int i;' > conftest.$ac_ext
  22767. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22768. + (eval $ac_compile) 2>&5
  22769. + ac_status=$?
  22770. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22771. + test $ac_status = 0; }; then
  22772. + case `/usr/bin/file conftest.o` in
  22773. + *64-bit*)
  22774. + case $lt_cv_prog_gnu_ld in
  22775. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  22776. + *)
  22777. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  22778. + LD="${LD-ld} -64"
  22779. + fi
  22780. + ;;
  22781. + esac
  22782. + ;;
  22783. + esac
  22784. + fi
  22785. + rm -rf conftest*
  22786. + ;;
  22787. +esac
  22788. +
  22789. +need_locks="$enable_libtool_lock"
  22790. +
  22791. +
  22792. + case $host_os in
  22793. + rhapsody* | darwin*)
  22794. + if test -n "$ac_tool_prefix"; then
  22795. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  22796. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  22797. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22798. +$as_echo_n "checking for $ac_word... " >&6; }
  22799. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  22800. + $as_echo_n "(cached) " >&6
  22801. +else
  22802. + if test -n "$DSYMUTIL"; then
  22803. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  22804. +else
  22805. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22806. for as_dir in $PATH
  22807. do
  22808. IFS=$as_save_IFS
  22809. test -z "$as_dir" && as_dir=.
  22810. - for ac_exec_ext in '' $ac_executable_extensions; do
  22811. + for ac_exec_ext in '' $ac_executable_extensions; do
  22812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22813. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  22814. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22815. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  22816. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22817. break 2
  22818. fi
  22819. done
  22820. + done
  22821. +IFS=$as_save_IFS
  22822. +
  22823. +fi
  22824. +fi
  22825. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  22826. +if test -n "$DSYMUTIL"; then
  22827. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  22828. +$as_echo "$DSYMUTIL" >&6; }
  22829. +else
  22830. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22831. +$as_echo "no" >&6; }
  22832. +fi
  22833. +
  22834. +
  22835. +fi
  22836. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  22837. + ac_ct_DSYMUTIL=$DSYMUTIL
  22838. + # Extract the first word of "dsymutil", so it can be a program name with args.
  22839. +set dummy dsymutil; ac_word=$2
  22840. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22841. +$as_echo_n "checking for $ac_word... " >&6; }
  22842. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  22843. + $as_echo_n "(cached) " >&6
  22844. +else
  22845. + if test -n "$ac_ct_DSYMUTIL"; then
  22846. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  22847. +else
  22848. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22849. +for as_dir in $PATH
  22850. +do
  22851. + IFS=$as_save_IFS
  22852. + test -z "$as_dir" && as_dir=.
  22853. + for ac_exec_ext in '' $ac_executable_extensions; do
  22854. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22855. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  22856. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22857. + break 2
  22858. + fi
  22859. done
  22860. + done
  22861. IFS=$as_save_IFS
  22862. fi
  22863. fi
  22864. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22865. -if test -n "$ac_ct_RANLIB"; then
  22866. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  22867. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  22868. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  22869. +if test -n "$ac_ct_DSYMUTIL"; then
  22870. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  22871. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  22872. else
  22873. - { echo "$as_me:$LINENO: result: no" >&5
  22874. -echo "${ECHO_T}no" >&6; }
  22875. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22876. +$as_echo "no" >&6; }
  22877. fi
  22878. - if test "x$ac_ct_RANLIB" = x; then
  22879. - RANLIB=":"
  22880. + if test "x$ac_ct_DSYMUTIL" = x; then
  22881. + DSYMUTIL=":"
  22882. else
  22883. case $cross_compiling:$ac_tool_warned in
  22884. yes:)
  22885. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  22886. -whose name does not start with the host triplet. If you think this
  22887. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  22888. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  22889. -whose name does not start with the host triplet. If you think this
  22890. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  22891. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22892. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22893. ac_tool_warned=yes ;;
  22894. esac
  22895. - RANLIB=$ac_ct_RANLIB
  22896. + DSYMUTIL=$ac_ct_DSYMUTIL
  22897. fi
  22898. else
  22899. - RANLIB="$ac_cv_prog_RANLIB"
  22900. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  22901. fi
  22902. -if test -n "$ac_tool_prefix"; then
  22903. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22904. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  22905. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22906. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22907. -if test "${ac_cv_prog_STRIP+set}" = set; then
  22908. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22909. + if test -n "$ac_tool_prefix"; then
  22910. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  22911. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  22912. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22913. +$as_echo_n "checking for $ac_word... " >&6; }
  22914. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  22915. + $as_echo_n "(cached) " >&6
  22916. else
  22917. - if test -n "$STRIP"; then
  22918. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22919. + if test -n "$NMEDIT"; then
  22920. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  22921. else
  22922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22923. for as_dir in $PATH
  22924. do
  22925. IFS=$as_save_IFS
  22926. test -z "$as_dir" && as_dir=.
  22927. - for ac_exec_ext in '' $ac_executable_extensions; do
  22928. + for ac_exec_ext in '' $ac_executable_extensions; do
  22929. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22930. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22931. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22932. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  22933. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22934. break 2
  22935. fi
  22936. done
  22937. -done
  22938. + done
  22939. IFS=$as_save_IFS
  22940. fi
  22941. fi
  22942. -STRIP=$ac_cv_prog_STRIP
  22943. -if test -n "$STRIP"; then
  22944. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  22945. -echo "${ECHO_T}$STRIP" >&6; }
  22946. +NMEDIT=$ac_cv_prog_NMEDIT
  22947. +if test -n "$NMEDIT"; then
  22948. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  22949. +$as_echo "$NMEDIT" >&6; }
  22950. else
  22951. - { echo "$as_me:$LINENO: result: no" >&5
  22952. -echo "${ECHO_T}no" >&6; }
  22953. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22954. +$as_echo "no" >&6; }
  22955. fi
  22956. fi
  22957. -if test -z "$ac_cv_prog_STRIP"; then
  22958. - ac_ct_STRIP=$STRIP
  22959. - # Extract the first word of "strip", so it can be a program name with args.
  22960. -set dummy strip; ac_word=$2
  22961. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  22962. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22963. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  22964. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22965. +if test -z "$ac_cv_prog_NMEDIT"; then
  22966. + ac_ct_NMEDIT=$NMEDIT
  22967. + # Extract the first word of "nmedit", so it can be a program name with args.
  22968. +set dummy nmedit; ac_word=$2
  22969. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22970. +$as_echo_n "checking for $ac_word... " >&6; }
  22971. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  22972. + $as_echo_n "(cached) " >&6
  22973. else
  22974. - if test -n "$ac_ct_STRIP"; then
  22975. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22976. + if test -n "$ac_ct_NMEDIT"; then
  22977. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  22978. else
  22979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22980. for as_dir in $PATH
  22981. do
  22982. IFS=$as_save_IFS
  22983. test -z "$as_dir" && as_dir=.
  22984. - for ac_exec_ext in '' $ac_executable_extensions; do
  22985. + for ac_exec_ext in '' $ac_executable_extensions; do
  22986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22987. - ac_cv_prog_ac_ct_STRIP="strip"
  22988. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22989. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  22990. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22991. break 2
  22992. fi
  22993. done
  22994. -done
  22995. + done
  22996. IFS=$as_save_IFS
  22997. fi
  22998. fi
  22999. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23000. -if test -n "$ac_ct_STRIP"; then
  23001. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  23002. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  23003. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  23004. +if test -n "$ac_ct_NMEDIT"; then
  23005. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  23006. +$as_echo "$ac_ct_NMEDIT" >&6; }
  23007. else
  23008. - { echo "$as_me:$LINENO: result: no" >&5
  23009. -echo "${ECHO_T}no" >&6; }
  23010. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23011. +$as_echo "no" >&6; }
  23012. fi
  23013. - if test "x$ac_ct_STRIP" = x; then
  23014. - STRIP=":"
  23015. + if test "x$ac_ct_NMEDIT" = x; then
  23016. + NMEDIT=":"
  23017. else
  23018. case $cross_compiling:$ac_tool_warned in
  23019. yes:)
  23020. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  23021. -whose name does not start with the host triplet. If you think this
  23022. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  23023. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  23024. -whose name does not start with the host triplet. If you think this
  23025. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  23026. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23027. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23028. ac_tool_warned=yes ;;
  23029. esac
  23030. - STRIP=$ac_ct_STRIP
  23031. + NMEDIT=$ac_ct_NMEDIT
  23032. fi
  23033. else
  23034. - STRIP="$ac_cv_prog_STRIP"
  23035. + NMEDIT="$ac_cv_prog_NMEDIT"
  23036. fi
  23037. + if test -n "$ac_tool_prefix"; then
  23038. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  23039. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  23040. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23041. +$as_echo_n "checking for $ac_word... " >&6; }
  23042. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  23043. + $as_echo_n "(cached) " >&6
  23044. +else
  23045. + if test -n "$LIPO"; then
  23046. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  23047. +else
  23048. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23049. +for as_dir in $PATH
  23050. +do
  23051. + IFS=$as_save_IFS
  23052. + test -z "$as_dir" && as_dir=.
  23053. + for ac_exec_ext in '' $ac_executable_extensions; do
  23054. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23055. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  23056. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23057. + break 2
  23058. + fi
  23059. +done
  23060. + done
  23061. +IFS=$as_save_IFS
  23062. -old_CC="$CC"
  23063. -old_CFLAGS="$CFLAGS"
  23064. -
  23065. -# Set sane defaults for various variables
  23066. -test -z "$AR" && AR=ar
  23067. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  23068. -test -z "$AS" && AS=as
  23069. -test -z "$CC" && CC=cc
  23070. -test -z "$LTCC" && LTCC=$CC
  23071. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  23072. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  23073. -test -z "$LD" && LD=ld
  23074. -test -z "$LN_S" && LN_S="ln -s"
  23075. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  23076. -test -z "$NM" && NM=nm
  23077. -test -z "$SED" && SED=sed
  23078. -test -z "$OBJDUMP" && OBJDUMP=objdump
  23079. -test -z "$RANLIB" && RANLIB=:
  23080. -test -z "$STRIP" && STRIP=:
  23081. -test -z "$ac_objext" && ac_objext=o
  23082. +fi
  23083. +fi
  23084. +LIPO=$ac_cv_prog_LIPO
  23085. +if test -n "$LIPO"; then
  23086. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  23087. +$as_echo "$LIPO" >&6; }
  23088. +else
  23089. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23090. +$as_echo "no" >&6; }
  23091. +fi
  23092. -# Determine commands to create old-style static archives.
  23093. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  23094. -old_postinstall_cmds='chmod 644 $oldlib'
  23095. -old_postuninstall_cmds=
  23096. -if test -n "$RANLIB"; then
  23097. - case $host_os in
  23098. - openbsd*)
  23099. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23100. - ;;
  23101. - *)
  23102. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23103. - ;;
  23104. - esac
  23105. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23106. fi
  23107. -
  23108. -for cc_temp in $compiler""; do
  23109. - case $cc_temp in
  23110. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23111. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23112. - \-*) ;;
  23113. - *) break;;
  23114. - esac
  23115. +if test -z "$ac_cv_prog_LIPO"; then
  23116. + ac_ct_LIPO=$LIPO
  23117. + # Extract the first word of "lipo", so it can be a program name with args.
  23118. +set dummy lipo; ac_word=$2
  23119. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23120. +$as_echo_n "checking for $ac_word... " >&6; }
  23121. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  23122. + $as_echo_n "(cached) " >&6
  23123. +else
  23124. + if test -n "$ac_ct_LIPO"; then
  23125. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  23126. +else
  23127. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23128. +for as_dir in $PATH
  23129. +do
  23130. + IFS=$as_save_IFS
  23131. + test -z "$as_dir" && as_dir=.
  23132. + for ac_exec_ext in '' $ac_executable_extensions; do
  23133. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23134. + ac_cv_prog_ac_ct_LIPO="lipo"
  23135. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23136. + break 2
  23137. + fi
  23138. done
  23139. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  23140. -
  23141. + done
  23142. +IFS=$as_save_IFS
  23143. -# Only perform the check for file, if the check method requires it
  23144. -case $deplibs_check_method in
  23145. -file_magic*)
  23146. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  23147. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  23148. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  23149. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23150. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23151. +fi
  23152. +fi
  23153. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  23154. +if test -n "$ac_ct_LIPO"; then
  23155. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  23156. +$as_echo "$ac_ct_LIPO" >&6; }
  23157. else
  23158. - case $MAGIC_CMD in
  23159. -[\\/*] | ?:[\\/]*)
  23160. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23161. - ;;
  23162. -*)
  23163. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23164. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23165. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23166. - for ac_dir in $ac_dummy; do
  23167. - IFS="$lt_save_ifs"
  23168. - test -z "$ac_dir" && ac_dir=.
  23169. - if test -f $ac_dir/${ac_tool_prefix}file; then
  23170. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  23171. - if test -n "$file_magic_test_file"; then
  23172. - case $deplibs_check_method in
  23173. - "file_magic "*)
  23174. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23175. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23176. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23177. - $EGREP "$file_magic_regex" > /dev/null; then
  23178. - :
  23179. - else
  23180. - cat <<EOF 1>&2
  23181. -
  23182. -*** Warning: the command libtool uses to detect shared libraries,
  23183. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23184. -*** The result is that libtool may fail to recognize shared libraries
  23185. -*** as such. This will affect the creation of libtool libraries that
  23186. -*** depend on shared libraries, but programs linked with such libtool
  23187. -*** libraries will work regardless of this problem. Nevertheless, you
  23188. -*** may want to report the problem to your system manager and/or to
  23189. -*** bug-libtool@gnu.org
  23190. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23191. +$as_echo "no" >&6; }
  23192. +fi
  23193. -EOF
  23194. - fi ;;
  23195. - esac
  23196. - fi
  23197. - break
  23198. - fi
  23199. - done
  23200. - IFS="$lt_save_ifs"
  23201. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23202. - ;;
  23203. + if test "x$ac_ct_LIPO" = x; then
  23204. + LIPO=":"
  23205. + else
  23206. + case $cross_compiling:$ac_tool_warned in
  23207. +yes:)
  23208. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23209. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23210. +ac_tool_warned=yes ;;
  23211. esac
  23212. + LIPO=$ac_ct_LIPO
  23213. + fi
  23214. +else
  23215. + LIPO="$ac_cv_prog_LIPO"
  23216. fi
  23217. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23218. -if test -n "$MAGIC_CMD"; then
  23219. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23220. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  23221. + if test -n "$ac_tool_prefix"; then
  23222. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  23223. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  23224. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23225. +$as_echo_n "checking for $ac_word... " >&6; }
  23226. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  23227. + $as_echo_n "(cached) " >&6
  23228. else
  23229. - { echo "$as_me:$LINENO: result: no" >&5
  23230. -echo "${ECHO_T}no" >&6; }
  23231. -fi
  23232. + if test -n "$OTOOL"; then
  23233. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  23234. +else
  23235. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23236. +for as_dir in $PATH
  23237. +do
  23238. + IFS=$as_save_IFS
  23239. + test -z "$as_dir" && as_dir=.
  23240. + for ac_exec_ext in '' $ac_executable_extensions; do
  23241. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23242. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  23243. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23244. + break 2
  23245. + fi
  23246. +done
  23247. + done
  23248. +IFS=$as_save_IFS
  23249. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  23250. - if test -n "$ac_tool_prefix"; then
  23251. - { echo "$as_me:$LINENO: checking for file" >&5
  23252. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  23253. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23254. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23255. +fi
  23256. +fi
  23257. +OTOOL=$ac_cv_prog_OTOOL
  23258. +if test -n "$OTOOL"; then
  23259. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  23260. +$as_echo "$OTOOL" >&6; }
  23261. else
  23262. - case $MAGIC_CMD in
  23263. -[\\/*] | ?:[\\/]*)
  23264. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23265. - ;;
  23266. -*)
  23267. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23268. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23269. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23270. - for ac_dir in $ac_dummy; do
  23271. - IFS="$lt_save_ifs"
  23272. - test -z "$ac_dir" && ac_dir=.
  23273. - if test -f $ac_dir/file; then
  23274. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  23275. - if test -n "$file_magic_test_file"; then
  23276. - case $deplibs_check_method in
  23277. - "file_magic "*)
  23278. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  23279. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23280. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23281. - $EGREP "$file_magic_regex" > /dev/null; then
  23282. - :
  23283. - else
  23284. - cat <<EOF 1>&2
  23285. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23286. +$as_echo "no" >&6; }
  23287. +fi
  23288. -*** Warning: the command libtool uses to detect shared libraries,
  23289. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23290. -*** The result is that libtool may fail to recognize shared libraries
  23291. -*** as such. This will affect the creation of libtool libraries that
  23292. -*** depend on shared libraries, but programs linked with such libtool
  23293. -*** libraries will work regardless of this problem. Nevertheless, you
  23294. -*** may want to report the problem to your system manager and/or to
  23295. -*** bug-libtool@gnu.org
  23296. -EOF
  23297. - fi ;;
  23298. - esac
  23299. - fi
  23300. - break
  23301. - fi
  23302. - done
  23303. - IFS="$lt_save_ifs"
  23304. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23305. - ;;
  23306. -esac
  23307. fi
  23308. +if test -z "$ac_cv_prog_OTOOL"; then
  23309. + ac_ct_OTOOL=$OTOOL
  23310. + # Extract the first word of "otool", so it can be a program name with args.
  23311. +set dummy otool; ac_word=$2
  23312. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23313. +$as_echo_n "checking for $ac_word... " >&6; }
  23314. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  23315. + $as_echo_n "(cached) " >&6
  23316. +else
  23317. + if test -n "$ac_ct_OTOOL"; then
  23318. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  23319. +else
  23320. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23321. +for as_dir in $PATH
  23322. +do
  23323. + IFS=$as_save_IFS
  23324. + test -z "$as_dir" && as_dir=.
  23325. + for ac_exec_ext in '' $ac_executable_extensions; do
  23326. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23327. + ac_cv_prog_ac_ct_OTOOL="otool"
  23328. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23329. + break 2
  23330. + fi
  23331. +done
  23332. + done
  23333. +IFS=$as_save_IFS
  23334. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23335. -if test -n "$MAGIC_CMD"; then
  23336. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23337. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  23338. +fi
  23339. +fi
  23340. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  23341. +if test -n "$ac_ct_OTOOL"; then
  23342. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  23343. +$as_echo "$ac_ct_OTOOL" >&6; }
  23344. else
  23345. - { echo "$as_me:$LINENO: result: no" >&5
  23346. -echo "${ECHO_T}no" >&6; }
  23347. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23348. +$as_echo "no" >&6; }
  23349. fi
  23350. + if test "x$ac_ct_OTOOL" = x; then
  23351. + OTOOL=":"
  23352. else
  23353. - MAGIC_CMD=:
  23354. + case $cross_compiling:$ac_tool_warned in
  23355. +yes:)
  23356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23357. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23358. +ac_tool_warned=yes ;;
  23359. +esac
  23360. + OTOOL=$ac_ct_OTOOL
  23361. fi
  23362. +else
  23363. + OTOOL="$ac_cv_prog_OTOOL"
  23364. fi
  23365. + if test -n "$ac_tool_prefix"; then
  23366. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  23367. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  23368. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23369. +$as_echo_n "checking for $ac_word... " >&6; }
  23370. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  23371. + $as_echo_n "(cached) " >&6
  23372. +else
  23373. + if test -n "$OTOOL64"; then
  23374. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  23375. +else
  23376. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23377. +for as_dir in $PATH
  23378. +do
  23379. + IFS=$as_save_IFS
  23380. + test -z "$as_dir" && as_dir=.
  23381. + for ac_exec_ext in '' $ac_executable_extensions; do
  23382. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23383. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  23384. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23385. + break 2
  23386. fi
  23387. - ;;
  23388. -esac
  23389. -
  23390. -enable_dlopen=no
  23391. -enable_win32_dll=no
  23392. +done
  23393. + done
  23394. +IFS=$as_save_IFS
  23395. -# Check whether --enable-libtool-lock was given.
  23396. -if test "${enable_libtool_lock+set}" = set; then
  23397. - enableval=$enable_libtool_lock;
  23398. +fi
  23399. +fi
  23400. +OTOOL64=$ac_cv_prog_OTOOL64
  23401. +if test -n "$OTOOL64"; then
  23402. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  23403. +$as_echo "$OTOOL64" >&6; }
  23404. +else
  23405. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23406. +$as_echo "no" >&6; }
  23407. fi
  23408. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  23409. +fi
  23410. +if test -z "$ac_cv_prog_OTOOL64"; then
  23411. + ac_ct_OTOOL64=$OTOOL64
  23412. + # Extract the first word of "otool64", so it can be a program name with args.
  23413. +set dummy otool64; ac_word=$2
  23414. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23415. +$as_echo_n "checking for $ac_word... " >&6; }
  23416. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  23417. + $as_echo_n "(cached) " >&6
  23418. +else
  23419. + if test -n "$ac_ct_OTOOL64"; then
  23420. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  23421. +else
  23422. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23423. +for as_dir in $PATH
  23424. +do
  23425. + IFS=$as_save_IFS
  23426. + test -z "$as_dir" && as_dir=.
  23427. + for ac_exec_ext in '' $ac_executable_extensions; do
  23428. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23429. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  23430. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23431. + break 2
  23432. + fi
  23433. +done
  23434. + done
  23435. +IFS=$as_save_IFS
  23436. -# Check whether --with-pic was given.
  23437. -if test "${with_pic+set}" = set; then
  23438. - withval=$with_pic; pic_mode="$withval"
  23439. +fi
  23440. +fi
  23441. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  23442. +if test -n "$ac_ct_OTOOL64"; then
  23443. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  23444. +$as_echo "$ac_ct_OTOOL64" >&6; }
  23445. else
  23446. - pic_mode=default
  23447. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23448. +$as_echo "no" >&6; }
  23449. fi
  23450. -test -z "$pic_mode" && pic_mode=default
  23451. + if test "x$ac_ct_OTOOL64" = x; then
  23452. + OTOOL64=":"
  23453. + else
  23454. + case $cross_compiling:$ac_tool_warned in
  23455. +yes:)
  23456. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23457. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23458. +ac_tool_warned=yes ;;
  23459. +esac
  23460. + OTOOL64=$ac_ct_OTOOL64
  23461. + fi
  23462. +else
  23463. + OTOOL64="$ac_cv_prog_OTOOL64"
  23464. +fi
  23465. -# Use C for the default configuration in the libtool script
  23466. -tagname=
  23467. -lt_save_CC="$CC"
  23468. -ac_ext=c
  23469. -ac_cpp='$CPP $CPPFLAGS'
  23470. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23471. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23472. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23473. -# Source file extension for C test sources.
  23474. -ac_ext=c
  23475. -# Object file extension for compiled C test sources.
  23476. -objext=o
  23477. -objext=$objext
  23478. -# Code to be used in simple compile tests
  23479. -lt_simple_compile_test_code="int some_variable = 0;\n"
  23480. -# Code to be used in simple link tests
  23481. -lt_simple_link_test_code='int main(){return(0);}\n'
  23482. -# If no C compiler was specified, use CC.
  23483. -LTCC=${LTCC-"$CC"}
  23484. -# If no C compiler flags were specified, use CFLAGS.
  23485. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23486. -# Allow CC to be a program name with arguments.
  23487. -compiler=$CC
  23488. -# save warnings/boilerplate of simple test code
  23489. -ac_outfile=conftest.$ac_objext
  23490. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  23491. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23492. -_lt_compiler_boilerplate=`cat conftest.err`
  23493. -$rm conftest*
  23494. -ac_outfile=conftest.$ac_objext
  23495. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  23496. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  23497. -_lt_linker_boilerplate=`cat conftest.err`
  23498. -$rm conftest*
  23499. -lt_prog_compiler_no_builtin_flag=
  23500. -if test "$GCC" = yes; then
  23501. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  23502. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  23503. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  23504. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  23505. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23506. -else
  23507. - lt_cv_prog_compiler_rtti_exceptions=no
  23508. - ac_outfile=conftest.$ac_objext
  23509. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23510. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  23511. - # Insert the option either (1) after the last *FLAGS variable, or
  23512. - # (2) before a word containing "conftest.", or (3) at the end.
  23513. - # Note that $ac_compile itself does not contain backslashes and begins
  23514. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  23515. - # The option is referenced via a variable to avoid confusing sed.
  23516. - lt_compile=`echo "$ac_compile" | $SED \
  23517. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23518. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23519. - -e 's:$: $lt_compiler_flag:'`
  23520. - (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
  23521. - (eval "$lt_compile" 2>conftest.err)
  23522. - ac_status=$?
  23523. - cat conftest.err >&5
  23524. - echo "$as_me:7149: \$? = $ac_status" >&5
  23525. - if (exit $ac_status) && test -s "$ac_outfile"; then
  23526. - # The compiler can only warn and ignore the option if not recognized
  23527. - # So say no if there are warnings other than the usual output.
  23528. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23529. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23530. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23531. - lt_cv_prog_compiler_rtti_exceptions=yes
  23532. - fi
  23533. - fi
  23534. - $rm conftest*
  23535. -fi
  23536. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  23537. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  23538. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  23539. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  23540. -else
  23541. - :
  23542. -fi
  23543. -fi
  23544. -lt_prog_compiler_wl=
  23545. -lt_prog_compiler_pic=
  23546. -lt_prog_compiler_static=
  23547. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  23548. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  23549. - if test "$GCC" = yes; then
  23550. - lt_prog_compiler_wl='-Wl,'
  23551. - lt_prog_compiler_static='-static'
  23552. - case $host_os in
  23553. - aix*)
  23554. - # All AIX code is PIC.
  23555. - if test "$host_cpu" = ia64; then
  23556. - # AIX 5 now supports IA64 processor
  23557. - lt_prog_compiler_static='-Bstatic'
  23558. +
  23559. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  23560. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  23561. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  23562. + $as_echo_n "(cached) " >&6
  23563. +else
  23564. + lt_cv_apple_cc_single_mod=no
  23565. + if test -z "${LT_MULTI_MODULE}"; then
  23566. + # By default we will add the -single_module flag. You can override
  23567. + # by either setting the environment variable LT_MULTI_MODULE
  23568. + # non-empty at configure time, or by adding -multi_module to the
  23569. + # link flags.
  23570. + rm -rf libconftest.dylib*
  23571. + echo "int foo(void){return 1;}" > conftest.c
  23572. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  23573. +-dynamiclib -Wl,-single_module conftest.c" >&5
  23574. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  23575. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  23576. + _lt_result=$?
  23577. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  23578. + lt_cv_apple_cc_single_mod=yes
  23579. + else
  23580. + cat conftest.err >&5
  23581. + fi
  23582. + rm -rf libconftest.dylib*
  23583. + rm -f conftest.*
  23584. fi
  23585. - ;;
  23586. +fi
  23587. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  23588. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  23589. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  23590. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  23591. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  23592. + $as_echo_n "(cached) " >&6
  23593. +else
  23594. + lt_cv_ld_exported_symbols_list=no
  23595. + save_LDFLAGS=$LDFLAGS
  23596. + echo "_main" > conftest.sym
  23597. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  23598. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23599. +/* end confdefs.h. */
  23600. - amigaos*)
  23601. - # FIXME: we need at least 68020 code to build shared libraries, but
  23602. - # adding the `-m68020' flag to GCC prevents building anything better,
  23603. - # like `-m68040'.
  23604. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  23605. - ;;
  23606. +int
  23607. +main ()
  23608. +{
  23609. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  23610. - # PIC is the default for these OSes.
  23611. - ;;
  23612. + ;
  23613. + return 0;
  23614. +}
  23615. +_ACEOF
  23616. +if ac_fn_c_try_link "$LINENO"; then :
  23617. + lt_cv_ld_exported_symbols_list=yes
  23618. +else
  23619. + lt_cv_ld_exported_symbols_list=no
  23620. +fi
  23621. +rm -f core conftest.err conftest.$ac_objext \
  23622. + conftest$ac_exeext conftest.$ac_ext
  23623. + LDFLAGS="$save_LDFLAGS"
  23624. - mingw* | pw32* | os2*)
  23625. - # This hack is so that the source file can tell whether it is being
  23626. - # built for inclusion in a dll (and should export symbols for example).
  23627. - lt_prog_compiler_pic='-DDLL_EXPORT'
  23628. - ;;
  23629. +fi
  23630. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  23631. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  23632. + case $host_os in
  23633. + rhapsody* | darwin1.[012])
  23634. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  23635. + darwin1.*)
  23636. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  23637. + darwin*) # darwin 5.x on
  23638. + # if running on 10.5 or later, the deployment target defaults
  23639. + # to the OS version, if on x86, and 10.4, the deployment
  23640. + # target defaults to 10.4. Don't you love it?
  23641. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  23642. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  23643. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  23644. + 10.[012]*)
  23645. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  23646. + 10.*)
  23647. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  23648. + esac
  23649. + ;;
  23650. + esac
  23651. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  23652. + _lt_dar_single_mod='$single_module'
  23653. + fi
  23654. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  23655. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  23656. + else
  23657. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  23658. + fi
  23659. + if test "$DSYMUTIL" != ":"; then
  23660. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  23661. + else
  23662. + _lt_dsymutil=
  23663. + fi
  23664. + ;;
  23665. + esac
  23666. - darwin* | rhapsody*)
  23667. - # PIC is the default on this platform
  23668. - # Common symbols not allowed in MH_DYLIB files
  23669. - lt_prog_compiler_pic='-fno-common'
  23670. - ;;
  23671. - interix3*)
  23672. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  23673. - # Instead, we relocate shared libraries at runtime.
  23674. - ;;
  23675. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  23676. +$as_echo_n "checking for ANSI C header files... " >&6; }
  23677. +if test "${ac_cv_header_stdc+set}" = set; then :
  23678. + $as_echo_n "(cached) " >&6
  23679. +else
  23680. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23681. +/* end confdefs.h. */
  23682. +#include <stdlib.h>
  23683. +#include <stdarg.h>
  23684. +#include <string.h>
  23685. +#include <float.h>
  23686. - msdosdjgpp*)
  23687. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  23688. - # on systems that don't support them.
  23689. - lt_prog_compiler_can_build_shared=no
  23690. - enable_shared=no
  23691. - ;;
  23692. +int
  23693. +main ()
  23694. +{
  23695. - sysv4*MP*)
  23696. - if test -d /usr/nec; then
  23697. - lt_prog_compiler_pic=-Kconform_pic
  23698. - fi
  23699. - ;;
  23700. + ;
  23701. + return 0;
  23702. +}
  23703. +_ACEOF
  23704. +if ac_fn_c_try_compile "$LINENO"; then :
  23705. + ac_cv_header_stdc=yes
  23706. +else
  23707. + ac_cv_header_stdc=no
  23708. +fi
  23709. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23710. - hpux*)
  23711. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23712. - # not for PA HP-UX.
  23713. - case $host_cpu in
  23714. - hppa*64*|ia64*)
  23715. - # +Z the default
  23716. - ;;
  23717. - *)
  23718. - lt_prog_compiler_pic='-fPIC'
  23719. - ;;
  23720. - esac
  23721. - ;;
  23722. +if test $ac_cv_header_stdc = yes; then
  23723. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23724. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23725. +/* end confdefs.h. */
  23726. +#include <string.h>
  23727. - *)
  23728. - lt_prog_compiler_pic='-fPIC'
  23729. - ;;
  23730. - esac
  23731. - else
  23732. - # PORTME Check for flag to pass linker flags through the system compiler.
  23733. - case $host_os in
  23734. - aix*)
  23735. - lt_prog_compiler_wl='-Wl,'
  23736. - if test "$host_cpu" = ia64; then
  23737. - # AIX 5 now supports IA64 processor
  23738. - lt_prog_compiler_static='-Bstatic'
  23739. - else
  23740. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  23741. - fi
  23742. - ;;
  23743. - darwin*)
  23744. - # PIC is the default on this platform
  23745. - # Common symbols not allowed in MH_DYLIB files
  23746. - case $cc_basename in
  23747. - xlc*)
  23748. - lt_prog_compiler_pic='-qnocommon'
  23749. - lt_prog_compiler_wl='-Wl,'
  23750. - ;;
  23751. - esac
  23752. - ;;
  23753. +_ACEOF
  23754. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23755. + $EGREP "memchr" >/dev/null 2>&1; then :
  23756. - mingw* | pw32* | os2*)
  23757. - # This hack is so that the source file can tell whether it is being
  23758. - # built for inclusion in a dll (and should export symbols for example).
  23759. - lt_prog_compiler_pic='-DDLL_EXPORT'
  23760. - ;;
  23761. +else
  23762. + ac_cv_header_stdc=no
  23763. +fi
  23764. +rm -f conftest*
  23765. - hpux9* | hpux10* | hpux11*)
  23766. - lt_prog_compiler_wl='-Wl,'
  23767. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23768. - # not for PA HP-UX.
  23769. - case $host_cpu in
  23770. - hppa*64*|ia64*)
  23771. - # +Z the default
  23772. - ;;
  23773. - *)
  23774. - lt_prog_compiler_pic='+Z'
  23775. - ;;
  23776. - esac
  23777. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  23778. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  23779. - ;;
  23780. +fi
  23781. - irix5* | irix6* | nonstopux*)
  23782. - lt_prog_compiler_wl='-Wl,'
  23783. - # PIC (with -KPIC) is the default.
  23784. - lt_prog_compiler_static='-non_shared'
  23785. - ;;
  23786. +if test $ac_cv_header_stdc = yes; then
  23787. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23788. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23789. +/* end confdefs.h. */
  23790. +#include <stdlib.h>
  23791. - newsos6)
  23792. - lt_prog_compiler_pic='-KPIC'
  23793. - lt_prog_compiler_static='-Bstatic'
  23794. - ;;
  23795. +_ACEOF
  23796. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23797. + $EGREP "free" >/dev/null 2>&1; then :
  23798. - linux* | k*bsd*-gnu)
  23799. - case $cc_basename in
  23800. - icc* | ecc*)
  23801. - lt_prog_compiler_wl='-Wl,'
  23802. - lt_prog_compiler_pic='-KPIC'
  23803. - lt_prog_compiler_static='-static'
  23804. - ;;
  23805. - pgcc* | pgf77* | pgf90* | pgf95*)
  23806. - # Portland Group compilers (*not* the Pentium gcc compiler,
  23807. - # which looks to be a dead project)
  23808. - lt_prog_compiler_wl='-Wl,'
  23809. - lt_prog_compiler_pic='-fpic'
  23810. - lt_prog_compiler_static='-Bstatic'
  23811. - ;;
  23812. - ccc*)
  23813. - lt_prog_compiler_wl='-Wl,'
  23814. - # All Alpha code is PIC.
  23815. - lt_prog_compiler_static='-non_shared'
  23816. - ;;
  23817. - esac
  23818. - ;;
  23819. +else
  23820. + ac_cv_header_stdc=no
  23821. +fi
  23822. +rm -f conftest*
  23823. - osf3* | osf4* | osf5*)
  23824. - lt_prog_compiler_wl='-Wl,'
  23825. - # All OSF/1 code is PIC.
  23826. - lt_prog_compiler_static='-non_shared'
  23827. - ;;
  23828. +fi
  23829. - solaris*)
  23830. - lt_prog_compiler_pic='-KPIC'
  23831. - lt_prog_compiler_static='-Bstatic'
  23832. - case $cc_basename in
  23833. - f77* | f90* | f95*)
  23834. - lt_prog_compiler_wl='-Qoption ld ';;
  23835. - *)
  23836. - lt_prog_compiler_wl='-Wl,';;
  23837. - esac
  23838. - ;;
  23839. +if test $ac_cv_header_stdc = yes; then
  23840. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23841. + if test "$cross_compiling" = yes; then :
  23842. + :
  23843. +else
  23844. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23845. +/* end confdefs.h. */
  23846. +#include <ctype.h>
  23847. +#include <stdlib.h>
  23848. +#if ((' ' & 0x0FF) == 0x020)
  23849. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23850. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23851. +#else
  23852. +# define ISLOWER(c) \
  23853. + (('a' <= (c) && (c) <= 'i') \
  23854. + || ('j' <= (c) && (c) <= 'r') \
  23855. + || ('s' <= (c) && (c) <= 'z'))
  23856. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23857. +#endif
  23858. - sunos4*)
  23859. - lt_prog_compiler_wl='-Qoption ld '
  23860. - lt_prog_compiler_pic='-PIC'
  23861. - lt_prog_compiler_static='-Bstatic'
  23862. - ;;
  23863. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23864. +int
  23865. +main ()
  23866. +{
  23867. + int i;
  23868. + for (i = 0; i < 256; i++)
  23869. + if (XOR (islower (i), ISLOWER (i))
  23870. + || toupper (i) != TOUPPER (i))
  23871. + return 2;
  23872. + return 0;
  23873. +}
  23874. +_ACEOF
  23875. +if ac_fn_c_try_run "$LINENO"; then :
  23876. - sysv4 | sysv4.2uw2* | sysv4.3*)
  23877. - lt_prog_compiler_wl='-Wl,'
  23878. - lt_prog_compiler_pic='-KPIC'
  23879. - lt_prog_compiler_static='-Bstatic'
  23880. - ;;
  23881. +else
  23882. + ac_cv_header_stdc=no
  23883. +fi
  23884. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23885. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  23886. +fi
  23887. - sysv4*MP*)
  23888. - if test -d /usr/nec ;then
  23889. - lt_prog_compiler_pic='-Kconform_pic'
  23890. - lt_prog_compiler_static='-Bstatic'
  23891. - fi
  23892. - ;;
  23893. +fi
  23894. +fi
  23895. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  23896. +$as_echo "$ac_cv_header_stdc" >&6; }
  23897. +if test $ac_cv_header_stdc = yes; then
  23898. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23899. - lt_prog_compiler_wl='-Wl,'
  23900. - lt_prog_compiler_pic='-KPIC'
  23901. - lt_prog_compiler_static='-Bstatic'
  23902. - ;;
  23903. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  23904. - unicos*)
  23905. - lt_prog_compiler_wl='-Wl,'
  23906. - lt_prog_compiler_can_build_shared=no
  23907. - ;;
  23908. +fi
  23909. - uts4*)
  23910. - lt_prog_compiler_pic='-pic'
  23911. - lt_prog_compiler_static='-Bstatic'
  23912. - ;;
  23913. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  23914. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  23915. + inttypes.h stdint.h unistd.h
  23916. +do :
  23917. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23918. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  23919. +"
  23920. +eval as_val=\$$as_ac_Header
  23921. + if test "x$as_val" = x""yes; then :
  23922. + cat >>confdefs.h <<_ACEOF
  23923. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23924. +_ACEOF
  23925. - *)
  23926. - lt_prog_compiler_can_build_shared=no
  23927. - ;;
  23928. - esac
  23929. - fi
  23930. +fi
  23931. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  23932. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  23933. +done
  23934. -#
  23935. -# Check to make sure the PIC flag actually works.
  23936. -#
  23937. -if test -n "$lt_prog_compiler_pic"; then
  23938. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  23939. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  23940. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  23941. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23942. -else
  23943. - lt_prog_compiler_pic_works=no
  23944. - ac_outfile=conftest.$ac_objext
  23945. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23946. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  23947. - # Insert the option either (1) after the last *FLAGS variable, or
  23948. - # (2) before a word containing "conftest.", or (3) at the end.
  23949. - # Note that $ac_compile itself does not contain backslashes and begins
  23950. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  23951. - # The option is referenced via a variable to avoid confusing sed.
  23952. - lt_compile=`echo "$ac_compile" | $SED \
  23953. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23954. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23955. - -e 's:$: $lt_compiler_flag:'`
  23956. - (eval echo "\"\$as_me:7413: $lt_compile\"" >&5)
  23957. - (eval "$lt_compile" 2>conftest.err)
  23958. - ac_status=$?
  23959. - cat conftest.err >&5
  23960. - echo "$as_me:7417: \$? = $ac_status" >&5
  23961. - if (exit $ac_status) && test -s "$ac_outfile"; then
  23962. - # The compiler can only warn and ignore the option if not recognized
  23963. - # So say no if there are warnings other than the usual output.
  23964. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23965. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23966. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23967. - lt_prog_compiler_pic_works=yes
  23968. - fi
  23969. - fi
  23970. - $rm conftest*
  23971. +for ac_header in dlfcn.h
  23972. +do :
  23973. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  23974. +"
  23975. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  23976. + cat >>confdefs.h <<_ACEOF
  23977. +#define HAVE_DLFCN_H 1
  23978. +_ACEOF
  23979. fi
  23980. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  23981. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  23982. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  23983. - case $lt_prog_compiler_pic in
  23984. - "" | " "*) ;;
  23985. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  23986. - esac
  23987. -else
  23988. - lt_prog_compiler_pic=
  23989. - lt_prog_compiler_can_build_shared=no
  23990. -fi
  23991. +done
  23992. -fi
  23993. -case $host_os in
  23994. - # For platforms which do not support PIC, -DPIC is meaningless:
  23995. - *djgpp*)
  23996. - lt_prog_compiler_pic=
  23997. - ;;
  23998. - *)
  23999. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  24000. - ;;
  24001. -esac
  24002. -#
  24003. -# Check to make sure the static flag actually works.
  24004. -#
  24005. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  24006. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24007. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  24008. -if test "${lt_prog_compiler_static_works+set}" = set; then
  24009. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24010. -else
  24011. - lt_prog_compiler_static_works=no
  24012. - save_LDFLAGS="$LDFLAGS"
  24013. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24014. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  24015. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24016. - # The linker can only warn and ignore the option if not recognized
  24017. - # So say no if there are warnings
  24018. - if test -s conftest.err; then
  24019. - # Append any errors to the config.log.
  24020. - cat conftest.err 1>&5
  24021. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24022. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24023. - if diff conftest.exp conftest.er2 >/dev/null; then
  24024. - lt_prog_compiler_static_works=yes
  24025. - fi
  24026. - else
  24027. - lt_prog_compiler_static_works=yes
  24028. - fi
  24029. - fi
  24030. - $rm conftest*
  24031. - LDFLAGS="$save_LDFLAGS"
  24032. -fi
  24033. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  24034. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  24035. +# Set options
  24036. -if test x"$lt_prog_compiler_static_works" = xyes; then
  24037. - :
  24038. -else
  24039. - lt_prog_compiler_static=
  24040. -fi
  24041. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24042. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  24043. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  24044. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24045. -else
  24046. - lt_cv_prog_compiler_c_o=no
  24047. - $rm -r conftest 2>/dev/null
  24048. - mkdir conftest
  24049. - cd conftest
  24050. - mkdir out
  24051. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24052. + enable_dlopen=no
  24053. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  24054. - # Insert the option either (1) after the last *FLAGS variable, or
  24055. - # (2) before a word containing "conftest.", or (3) at the end.
  24056. - # Note that $ac_compile itself does not contain backslashes and begins
  24057. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24058. - lt_compile=`echo "$ac_compile" | $SED \
  24059. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24060. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24061. - -e 's:$: $lt_compiler_flag:'`
  24062. - (eval echo "\"\$as_me:7517: $lt_compile\"" >&5)
  24063. - (eval "$lt_compile" 2>out/conftest.err)
  24064. - ac_status=$?
  24065. - cat out/conftest.err >&5
  24066. - echo "$as_me:7521: \$? = $ac_status" >&5
  24067. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24068. - then
  24069. - # The compiler can only warn and ignore the option if not recognized
  24070. - # So say no if there are warnings
  24071. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24072. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24073. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24074. - lt_cv_prog_compiler_c_o=yes
  24075. - fi
  24076. - fi
  24077. - chmod u+w . 2>&5
  24078. - $rm conftest*
  24079. - # SGI C++ compiler will create directory out/ii_files/ for
  24080. - # template instantiation
  24081. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24082. - $rm out/* && rmdir out
  24083. - cd ..
  24084. - rmdir conftest
  24085. - $rm conftest*
  24086. -fi
  24087. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  24088. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  24089. + enable_win32_dll=no
  24090. -hard_links="nottested"
  24091. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  24092. - # do not overwrite the value of need_locks provided by the user
  24093. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24094. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  24095. - hard_links=yes
  24096. - $rm conftest*
  24097. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24098. - touch conftest.a
  24099. - ln conftest.a conftest.b 2>&5 || hard_links=no
  24100. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24101. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  24102. -echo "${ECHO_T}$hard_links" >&6; }
  24103. - if test "$hard_links" = no; then
  24104. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24105. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24106. - need_locks=warn
  24107. - fi
  24108. + # Check whether --enable-shared was given.
  24109. +if test "${enable_shared+set}" = set; then :
  24110. + enableval=$enable_shared; p=${PACKAGE-default}
  24111. + case $enableval in
  24112. + yes) enable_shared=yes ;;
  24113. + no) enable_shared=no ;;
  24114. + *)
  24115. + enable_shared=no
  24116. + # Look at the argument we got. We use all the common list separators.
  24117. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24118. + for pkg in $enableval; do
  24119. + IFS="$lt_save_ifs"
  24120. + if test "X$pkg" = "X$p"; then
  24121. + enable_shared=yes
  24122. + fi
  24123. + done
  24124. + IFS="$lt_save_ifs"
  24125. + ;;
  24126. + esac
  24127. else
  24128. - need_locks=no
  24129. + enable_shared=yes
  24130. fi
  24131. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24132. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24133. -
  24134. - runpath_var=
  24135. - allow_undefined_flag=
  24136. - enable_shared_with_static_runtimes=no
  24137. - archive_cmds=
  24138. - archive_expsym_cmds=
  24139. - old_archive_From_new_cmds=
  24140. - old_archive_from_expsyms_cmds=
  24141. - export_dynamic_flag_spec=
  24142. - whole_archive_flag_spec=
  24143. - thread_safe_flag_spec=
  24144. - hardcode_libdir_flag_spec=
  24145. - hardcode_libdir_flag_spec_ld=
  24146. - hardcode_libdir_separator=
  24147. - hardcode_direct=no
  24148. - hardcode_minus_L=no
  24149. - hardcode_shlibpath_var=unsupported
  24150. - link_all_deplibs=unknown
  24151. - hardcode_automatic=no
  24152. - module_cmds=
  24153. - module_expsym_cmds=
  24154. - always_export_symbols=no
  24155. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24156. - # include_expsyms should be a list of space-separated symbols to be *always*
  24157. - # included in the symbol list
  24158. - include_expsyms=
  24159. - # exclude_expsyms can be an extended regexp of symbols to exclude
  24160. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  24161. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  24162. - # as well as any symbol that contains `d'.
  24163. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  24164. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  24165. - # platforms (ab)use it in PIC code, but their linkers get confused if
  24166. - # the symbol is explicitly referenced. Since portable code cannot
  24167. - # rely on this symbol name, it's probably fine to never include it in
  24168. - # preloaded symbol tables.
  24169. - extract_expsyms_cmds=
  24170. - # Just being paranoid about ensuring that cc_basename is set.
  24171. - for cc_temp in $compiler""; do
  24172. - case $cc_temp in
  24173. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24174. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24175. - \-*) ;;
  24176. - *) break;;
  24177. - esac
  24178. -done
  24179. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  24180. - case $host_os in
  24181. - cygwin* | mingw* | pw32*)
  24182. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  24183. - # When not using gcc, we currently assume that we are using
  24184. - # Microsoft Visual C++.
  24185. - if test "$GCC" != yes; then
  24186. - with_gnu_ld=no
  24187. - fi
  24188. - ;;
  24189. - interix*)
  24190. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  24191. - with_gnu_ld=yes
  24192. - ;;
  24193. - openbsd*)
  24194. - with_gnu_ld=no
  24195. - ;;
  24196. - esac
  24197. - ld_shlibs=yes
  24198. - if test "$with_gnu_ld" = yes; then
  24199. - # If archive_cmds runs LD, not CC, wlarc should be empty
  24200. - wlarc='${wl}'
  24201. - # Set some defaults for GNU ld with shared library support. These
  24202. - # are reset later if shared libraries are not supported. Putting them
  24203. - # here allows them to be overridden if necessary.
  24204. - runpath_var=LD_RUN_PATH
  24205. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  24206. - export_dynamic_flag_spec='${wl}--export-dynamic'
  24207. - # ancient GNU ld didn't support --whole-archive et. al.
  24208. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  24209. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24210. - else
  24211. - whole_archive_flag_spec=
  24212. - fi
  24213. - supports_anon_versioning=no
  24214. - case `$LD -v 2>/dev/null` in
  24215. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  24216. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  24217. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  24218. - *\ 2.11.*) ;; # other 2.11 versions
  24219. - *) supports_anon_versioning=yes ;;
  24220. - esac
  24221. - # See if GNU ld supports shared libraries.
  24222. - case $host_os in
  24223. - aix3* | aix4* | aix5*)
  24224. - # On AIX/PPC, the GNU linker is very broken
  24225. - if test "$host_cpu" != ia64; then
  24226. - ld_shlibs=no
  24227. - cat <<EOF 1>&2
  24228. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  24229. -*** to be unable to reliably create shared libraries on AIX.
  24230. -*** Therefore, libtool is disabling shared libraries support. If you
  24231. -*** really care for shared libraries, you may want to modify your PATH
  24232. -*** so that a non-GNU linker is found, and then restart.
  24233. -EOF
  24234. - fi
  24235. - ;;
  24236. - amigaos*)
  24237. - 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)'
  24238. - hardcode_libdir_flag_spec='-L$libdir'
  24239. - hardcode_minus_L=yes
  24240. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  24241. - # that the semantics of dynamic libraries on AmigaOS, at least up
  24242. - # to version 4, is to share data among multiple programs linked
  24243. - # with the same dynamic library. Since this doesn't match the
  24244. - # behavior of shared libraries on other platforms, we can't use
  24245. - # them.
  24246. - ld_shlibs=no
  24247. + # Check whether --enable-static was given.
  24248. +if test "${enable_static+set}" = set; then :
  24249. + enableval=$enable_static; p=${PACKAGE-default}
  24250. + case $enableval in
  24251. + yes) enable_static=yes ;;
  24252. + no) enable_static=no ;;
  24253. + *)
  24254. + enable_static=no
  24255. + # Look at the argument we got. We use all the common list separators.
  24256. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24257. + for pkg in $enableval; do
  24258. + IFS="$lt_save_ifs"
  24259. + if test "X$pkg" = "X$p"; then
  24260. + enable_static=yes
  24261. + fi
  24262. + done
  24263. + IFS="$lt_save_ifs"
  24264. ;;
  24265. + esac
  24266. +else
  24267. + enable_static=yes
  24268. +fi
  24269. - beos*)
  24270. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24271. - allow_undefined_flag=unsupported
  24272. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  24273. - # support --undefined. This deserves some investigation. FIXME
  24274. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24275. - else
  24276. - ld_shlibs=no
  24277. - fi
  24278. - ;;
  24279. - cygwin* | mingw* | pw32*)
  24280. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  24281. - # as there is no search path for DLLs.
  24282. - hardcode_libdir_flag_spec='-L$libdir'
  24283. - allow_undefined_flag=unsupported
  24284. - always_export_symbols=no
  24285. - enable_shared_with_static_runtimes=yes
  24286. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  24287. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  24288. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24289. - # If the export-symbols file already is a .def file (1st line
  24290. - # is EXPORTS), use it as is; otherwise, prepend...
  24291. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  24292. - cp $export_symbols $output_objdir/$soname.def;
  24293. - else
  24294. - echo EXPORTS > $output_objdir/$soname.def;
  24295. - cat $export_symbols >> $output_objdir/$soname.def;
  24296. - fi~
  24297. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  24298. - else
  24299. - ld_shlibs=no
  24300. - fi
  24301. - ;;
  24302. - interix3*)
  24303. - hardcode_direct=no
  24304. - hardcode_shlibpath_var=no
  24305. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24306. - export_dynamic_flag_spec='${wl}-E'
  24307. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  24308. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  24309. - # default) and relocated if they conflict, which is a slow very memory
  24310. - # consuming and fragmenting process. To avoid this, we pick a random,
  24311. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  24312. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  24313. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  24314. - 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'
  24315. - ;;
  24316. - linux* | k*bsd*-gnu)
  24317. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24318. - tmp_addflag=
  24319. - case $cc_basename,$host_cpu in
  24320. - pgcc*) # Portland Group C compiler
  24321. - 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'
  24322. - tmp_addflag=' $pic_flag'
  24323. - ;;
  24324. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  24325. - 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'
  24326. - tmp_addflag=' $pic_flag -Mnomain' ;;
  24327. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  24328. - tmp_addflag=' -i_dynamic' ;;
  24329. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  24330. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  24331. - ifc* | ifort*) # Intel Fortran compiler
  24332. - tmp_addflag=' -nofor_main' ;;
  24333. - esac
  24334. - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24335. - if test $supports_anon_versioning = yes; then
  24336. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  24337. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  24338. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  24339. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  24340. - fi
  24341. - link_all_deplibs=no
  24342. - else
  24343. - ld_shlibs=no
  24344. - fi
  24345. - ;;
  24346. - netbsd* | netbsdelf*-gnu)
  24347. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24348. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  24349. - wlarc=
  24350. - else
  24351. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24352. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24353. - fi
  24354. - ;;
  24355. - solaris*)
  24356. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  24357. - ld_shlibs=no
  24358. - cat <<EOF 1>&2
  24359. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  24360. -*** create shared libraries on Solaris systems. Therefore, libtool
  24361. -*** is disabling shared libraries support. We urge you to upgrade GNU
  24362. -*** binutils to release 2.9.1 or newer. Another option is to modify
  24363. -*** your PATH or compiler configuration so that the native linker is
  24364. -*** used, and then restart.
  24365. -EOF
  24366. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24367. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24368. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24369. - else
  24370. - ld_shlibs=no
  24371. - fi
  24372. - ;;
  24373. +# Check whether --with-pic was given.
  24374. +if test "${with_pic+set}" = set; then :
  24375. + withval=$with_pic; pic_mode="$withval"
  24376. +else
  24377. + pic_mode=default
  24378. +fi
  24379. +
  24380. +
  24381. +test -z "$pic_mode" && pic_mode=default
  24382. +
  24383. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  24384. - case `$LD -v 2>&1` in
  24385. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  24386. - ld_shlibs=no
  24387. - cat <<_LT_EOF 1>&2
  24388. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  24389. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  24390. -*** is disabling shared libraries support. We urge you to upgrade GNU
  24391. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  24392. -*** your PATH or compiler configuration so that the native linker is
  24393. -*** used, and then restart.
  24394. -_LT_EOF
  24395. - ;;
  24396. - *)
  24397. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24398. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  24399. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  24400. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  24401. - else
  24402. - ld_shlibs=no
  24403. - fi
  24404. - ;;
  24405. - esac
  24406. - ;;
  24407. - sunos4*)
  24408. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24409. - wlarc=
  24410. - hardcode_direct=yes
  24411. - hardcode_shlibpath_var=no
  24412. - ;;
  24413. +
  24414. + # Check whether --enable-fast-install was given.
  24415. +if test "${enable_fast_install+set}" = set; then :
  24416. + enableval=$enable_fast_install; p=${PACKAGE-default}
  24417. + case $enableval in
  24418. + yes) enable_fast_install=yes ;;
  24419. + no) enable_fast_install=no ;;
  24420. *)
  24421. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24422. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24423. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24424. - else
  24425. - ld_shlibs=no
  24426. - fi
  24427. + enable_fast_install=no
  24428. + # Look at the argument we got. We use all the common list separators.
  24429. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24430. + for pkg in $enableval; do
  24431. + IFS="$lt_save_ifs"
  24432. + if test "X$pkg" = "X$p"; then
  24433. + enable_fast_install=yes
  24434. + fi
  24435. + done
  24436. + IFS="$lt_save_ifs"
  24437. ;;
  24438. esac
  24439. +else
  24440. + enable_fast_install=yes
  24441. +fi
  24442. - if test "$ld_shlibs" = no; then
  24443. - runpath_var=
  24444. - hardcode_libdir_flag_spec=
  24445. - export_dynamic_flag_spec=
  24446. - whole_archive_flag_spec=
  24447. - fi
  24448. - else
  24449. - # PORTME fill in a description of your system's linker (not GNU ld)
  24450. - case $host_os in
  24451. - aix3*)
  24452. - allow_undefined_flag=unsupported
  24453. - always_export_symbols=yes
  24454. - 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'
  24455. - # Note: this linker hardcodes the directories in LIBPATH if there
  24456. - # are no directories specified by -L.
  24457. - hardcode_minus_L=yes
  24458. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  24459. - # Neither direct hardcoding nor static linking is supported with a
  24460. - # broken collect2.
  24461. - hardcode_direct=unsupported
  24462. - fi
  24463. - ;;
  24464. - aix4* | aix5*)
  24465. - if test "$host_cpu" = ia64; then
  24466. - # On IA64, the linker does run time linking by default, so we don't
  24467. - # have to do anything special.
  24468. - aix_use_runtimelinking=no
  24469. - exp_sym_flag='-Bexport'
  24470. - no_entry_flag=""
  24471. - else
  24472. - # If we're using GNU nm, then we don't want the "-C" option.
  24473. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  24474. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  24475. - 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'
  24476. - else
  24477. - 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'
  24478. - fi
  24479. - aix_use_runtimelinking=no
  24480. - # Test if we are trying to use run time linking or normal
  24481. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  24482. - # need to do runtime linking.
  24483. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  24484. - for ld_flag in $LDFLAGS; do
  24485. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  24486. - aix_use_runtimelinking=yes
  24487. - break
  24488. - fi
  24489. - done
  24490. - ;;
  24491. - esac
  24492. - exp_sym_flag='-bexport'
  24493. - no_entry_flag='-bnoentry'
  24494. - fi
  24495. - # When large executables or shared objects are built, AIX ld can
  24496. - # have problems creating the table of contents. If linking a library
  24497. - # or program results in "error TOC overflow" add -mminimal-toc to
  24498. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  24499. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  24500. - archive_cmds=''
  24501. - hardcode_direct=yes
  24502. - hardcode_libdir_separator=':'
  24503. - link_all_deplibs=yes
  24504. - if test "$GCC" = yes; then
  24505. - case $host_os in aix4.[012]|aix4.[012].*)
  24506. - # We only want to do this on AIX 4.2 and lower, the check
  24507. - # below for broken collect2 doesn't work under 4.3+
  24508. - collect2name=`${CC} -print-prog-name=collect2`
  24509. - if test -f "$collect2name" && \
  24510. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  24511. - then
  24512. - # We have reworked collect2
  24513. - hardcode_direct=yes
  24514. - else
  24515. - # We have old collect2
  24516. - hardcode_direct=unsupported
  24517. - # It fails to find uninstalled libraries when the uninstalled
  24518. - # path is not listed in the libpath. Setting hardcode_minus_L
  24519. - # to unsupported forces relinking
  24520. - hardcode_minus_L=yes
  24521. - hardcode_libdir_flag_spec='-L$libdir'
  24522. - hardcode_libdir_separator=
  24523. - fi
  24524. - ;;
  24525. - esac
  24526. - shared_flag='-shared'
  24527. - if test "$aix_use_runtimelinking" = yes; then
  24528. - shared_flag="$shared_flag "'${wl}-G'
  24529. - fi
  24530. - else
  24531. - # not using gcc
  24532. - if test "$host_cpu" = ia64; then
  24533. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  24534. - # chokes on -Wl,-G. The following line is correct:
  24535. - shared_flag='-G'
  24536. - else
  24537. - if test "$aix_use_runtimelinking" = yes; then
  24538. - shared_flag='${wl}-G'
  24539. - else
  24540. - shared_flag='${wl}-bM:SRE'
  24541. - fi
  24542. - fi
  24543. - fi
  24544. - # It seems that -bexpall does not export symbols beginning with
  24545. - # underscore (_), so it is better to generate a list of symbols to export.
  24546. - always_export_symbols=yes
  24547. - if test "$aix_use_runtimelinking" = yes; then
  24548. - # Warning - without using the other runtime loading flags (-brtl),
  24549. - # -berok will link without error, but may produce a broken library.
  24550. - allow_undefined_flag='-berok'
  24551. - # Determine the default libpath from the value encoded in an empty executable.
  24552. - cat >conftest.$ac_ext <<_ACEOF
  24553. -/* confdefs.h. */
  24554. -_ACEOF
  24555. -cat confdefs.h >>conftest.$ac_ext
  24556. -cat >>conftest.$ac_ext <<_ACEOF
  24557. -/* end confdefs.h. */
  24558. -int
  24559. -main ()
  24560. -{
  24561. - ;
  24562. - return 0;
  24563. -}
  24564. -_ACEOF
  24565. -rm -f conftest.$ac_objext conftest$ac_exeext
  24566. -if { (ac_try="$ac_link"
  24567. -case "(($ac_try" in
  24568. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24569. - *) ac_try_echo=$ac_try;;
  24570. -esac
  24571. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24572. - (eval "$ac_link") 2>conftest.er1
  24573. - ac_status=$?
  24574. - grep -v '^ *+' conftest.er1 >conftest.err
  24575. - rm -f conftest.er1
  24576. - cat conftest.err >&5
  24577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24578. - (exit $ac_status); } && {
  24579. - test -z "$ac_c_werror_flag" ||
  24580. - test ! -s conftest.err
  24581. - } && test -s conftest$ac_exeext &&
  24582. - $as_test_x conftest$ac_exeext; then
  24583. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24584. -}'`
  24585. -# Check for a 64-bit object if we didn't find anything.
  24586. -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; }
  24587. -}'`; fi
  24588. -else
  24589. - echo "$as_me: failed program was:" >&5
  24590. -sed 's/^/| /' conftest.$ac_ext >&5
  24591. +# This can be used to rebuild libtool when needed
  24592. +LIBTOOL_DEPS="$ltmain"
  24593. +# Always use our own libtool.
  24594. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  24595. -fi
  24596. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24597. - conftest$ac_exeext conftest.$ac_ext
  24598. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24599. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  24600. - 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  24601. - else
  24602. - if test "$host_cpu" = ia64; then
  24603. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  24604. - allow_undefined_flag="-z nodefs"
  24605. - 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"
  24606. - else
  24607. - # Determine the default libpath from the value encoded in an empty executable.
  24608. - cat >conftest.$ac_ext <<_ACEOF
  24609. -/* confdefs.h. */
  24610. -_ACEOF
  24611. -cat confdefs.h >>conftest.$ac_ext
  24612. -cat >>conftest.$ac_ext <<_ACEOF
  24613. -/* end confdefs.h. */
  24614. -int
  24615. -main ()
  24616. -{
  24617. - ;
  24618. - return 0;
  24619. -}
  24620. -_ACEOF
  24621. -rm -f conftest.$ac_objext conftest$ac_exeext
  24622. -if { (ac_try="$ac_link"
  24623. -case "(($ac_try" in
  24624. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24625. - *) ac_try_echo=$ac_try;;
  24626. -esac
  24627. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24628. - (eval "$ac_link") 2>conftest.er1
  24629. - ac_status=$?
  24630. - grep -v '^ *+' conftest.er1 >conftest.err
  24631. - rm -f conftest.er1
  24632. - cat conftest.err >&5
  24633. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24634. - (exit $ac_status); } && {
  24635. - test -z "$ac_c_werror_flag" ||
  24636. - test ! -s conftest.err
  24637. - } && test -s conftest$ac_exeext &&
  24638. - $as_test_x conftest$ac_exeext; then
  24639. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24640. -}'`
  24641. -# Check for a 64-bit object if we didn't find anything.
  24642. -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; }
  24643. -}'`; fi
  24644. -else
  24645. - echo "$as_me: failed program was:" >&5
  24646. -sed 's/^/| /' conftest.$ac_ext >&5
  24647. -fi
  24648. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24649. - conftest$ac_exeext conftest.$ac_ext
  24650. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24651. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  24652. - # Warning - without using the other run time loading flags,
  24653. - # -berok will link without error, but may produce a broken library.
  24654. - no_undefined_flag=' ${wl}-bernotok'
  24655. - allow_undefined_flag=' ${wl}-berok'
  24656. - # Exported symbols can be pulled into shared objects from archives
  24657. - whole_archive_flag_spec='$convenience'
  24658. - archive_cmds_need_lc=yes
  24659. - # This is similar to how AIX traditionally builds its shared libraries.
  24660. - 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'
  24661. - fi
  24662. - fi
  24663. - ;;
  24664. - amigaos*)
  24665. - 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)'
  24666. - hardcode_libdir_flag_spec='-L$libdir'
  24667. - hardcode_minus_L=yes
  24668. - # see comment about different semantics on the GNU ld section
  24669. - ld_shlibs=no
  24670. - ;;
  24671. - bsdi[45]*)
  24672. - export_dynamic_flag_spec=-rdynamic
  24673. - ;;
  24674. - cygwin* | mingw* | pw32*)
  24675. - # When not using gcc, we currently assume that we are using
  24676. - # Microsoft Visual C++.
  24677. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  24678. - # no search path for DLLs.
  24679. - hardcode_libdir_flag_spec=' '
  24680. - allow_undefined_flag=unsupported
  24681. - # Tell ltmain to make .lib files, not .a files.
  24682. - libext=lib
  24683. - # Tell ltmain to make .dll files, not .so files.
  24684. - shrext_cmds=".dll"
  24685. - # FIXME: Setting linknames here is a bad hack.
  24686. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  24687. - # The linker will automatically build a .lib file if we build a DLL.
  24688. - old_archive_From_new_cmds='true'
  24689. - # FIXME: Should let the user specify the lib program.
  24690. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  24691. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  24692. - enable_shared_with_static_runtimes=yes
  24693. - ;;
  24694. - darwin* | rhapsody*)
  24695. - case $host_os in
  24696. - rhapsody* | darwin1.[012])
  24697. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  24698. - ;;
  24699. - *) # Darwin 1.3 on
  24700. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  24701. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24702. - else
  24703. - case ${MACOSX_DEPLOYMENT_TARGET} in
  24704. - 10.[012])
  24705. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24706. - ;;
  24707. - 10.*)
  24708. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  24709. - ;;
  24710. - esac
  24711. - fi
  24712. - ;;
  24713. - esac
  24714. - archive_cmds_need_lc=no
  24715. - hardcode_direct=no
  24716. - hardcode_automatic=yes
  24717. - hardcode_shlibpath_var=unsupported
  24718. - whole_archive_flag_spec=''
  24719. - link_all_deplibs=yes
  24720. - if test "$GCC" = yes ; then
  24721. - output_verbose_link_cmd='echo'
  24722. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  24723. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24724. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24725. - 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}'
  24726. - 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}'
  24727. - else
  24728. - case $cc_basename in
  24729. - xlc*)
  24730. - output_verbose_link_cmd='echo'
  24731. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  24732. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24733. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24734. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24735. - 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}'
  24736. - ;;
  24737. - *)
  24738. - ld_shlibs=no
  24739. - ;;
  24740. - esac
  24741. - fi
  24742. - ;;
  24743. - dgux*)
  24744. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24745. - hardcode_libdir_flag_spec='-L$libdir'
  24746. - hardcode_shlibpath_var=no
  24747. - ;;
  24748. - freebsd1*)
  24749. - ld_shlibs=no
  24750. - ;;
  24751. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  24752. - # support. Future versions do this automatically, but an explicit c++rt0.o
  24753. - # does not break anything, and helps significantly (at the cost of a little
  24754. - # extra space).
  24755. - freebsd2.2*)
  24756. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  24757. - hardcode_libdir_flag_spec='-R$libdir'
  24758. - hardcode_direct=yes
  24759. - hardcode_shlibpath_var=no
  24760. - ;;
  24761. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  24762. - freebsd2*)
  24763. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24764. - hardcode_direct=yes
  24765. - hardcode_minus_L=yes
  24766. - hardcode_shlibpath_var=no
  24767. - ;;
  24768. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  24769. - freebsd* | dragonfly*)
  24770. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  24771. - hardcode_libdir_flag_spec='-R$libdir'
  24772. - hardcode_direct=yes
  24773. - hardcode_shlibpath_var=no
  24774. - ;;
  24775. - hpux9*)
  24776. - if test "$GCC" = yes; then
  24777. - 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'
  24778. - else
  24779. - 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'
  24780. - fi
  24781. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24782. - hardcode_libdir_separator=:
  24783. - hardcode_direct=yes
  24784. - # hardcode_minus_L: Not really in the search PATH,
  24785. - # but as the default location of the library.
  24786. - hardcode_minus_L=yes
  24787. - export_dynamic_flag_spec='${wl}-E'
  24788. - ;;
  24789. - hpux10*)
  24790. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24791. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24792. - else
  24793. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  24794. - fi
  24795. - if test "$with_gnu_ld" = no; then
  24796. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24797. - hardcode_libdir_separator=:
  24798. - hardcode_direct=yes
  24799. - export_dynamic_flag_spec='${wl}-E'
  24800. - # hardcode_minus_L: Not really in the search PATH,
  24801. - # but as the default location of the library.
  24802. - hardcode_minus_L=yes
  24803. - fi
  24804. - ;;
  24805. - hpux11*)
  24806. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24807. - case $host_cpu in
  24808. - hppa*64*)
  24809. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24810. - ;;
  24811. - ia64*)
  24812. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  24813. - ;;
  24814. - *)
  24815. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24816. - ;;
  24817. - esac
  24818. - else
  24819. - case $host_cpu in
  24820. - hppa*64*)
  24821. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24822. - ;;
  24823. - ia64*)
  24824. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  24825. - ;;
  24826. - *)
  24827. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24828. - ;;
  24829. - esac
  24830. - fi
  24831. - if test "$with_gnu_ld" = no; then
  24832. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24833. - hardcode_libdir_separator=:
  24834. +test -z "$LN_S" && LN_S="ln -s"
  24835. - case $host_cpu in
  24836. - hppa*64*|ia64*)
  24837. - hardcode_libdir_flag_spec_ld='+b $libdir'
  24838. - hardcode_direct=no
  24839. - hardcode_shlibpath_var=no
  24840. - ;;
  24841. - *)
  24842. - hardcode_direct=yes
  24843. - export_dynamic_flag_spec='${wl}-E'
  24844. - # hardcode_minus_L: Not really in the search PATH,
  24845. - # but as the default location of the library.
  24846. - hardcode_minus_L=yes
  24847. - ;;
  24848. - esac
  24849. - fi
  24850. - ;;
  24851. - irix5* | irix6* | nonstopux*)
  24852. - if test "$GCC" = yes; then
  24853. - 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'
  24854. - else
  24855. - 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'
  24856. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  24857. - fi
  24858. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24859. - hardcode_libdir_separator=:
  24860. - link_all_deplibs=yes
  24861. - ;;
  24862. - netbsd* | netbsdelf*-gnu)
  24863. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24864. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  24865. - else
  24866. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  24867. - fi
  24868. - hardcode_libdir_flag_spec='-R$libdir'
  24869. - hardcode_direct=yes
  24870. - hardcode_shlibpath_var=no
  24871. - ;;
  24872. - newsos6)
  24873. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24874. - hardcode_direct=yes
  24875. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24876. - hardcode_libdir_separator=:
  24877. - hardcode_shlibpath_var=no
  24878. - ;;
  24879. - openbsd*)
  24880. - hardcode_direct=yes
  24881. - hardcode_shlibpath_var=no
  24882. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24883. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24884. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  24885. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24886. - export_dynamic_flag_spec='${wl}-E'
  24887. - else
  24888. - case $host_os in
  24889. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  24890. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24891. - hardcode_libdir_flag_spec='-R$libdir'
  24892. - ;;
  24893. - *)
  24894. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24895. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24896. - ;;
  24897. - esac
  24898. - fi
  24899. - ;;
  24900. - os2*)
  24901. - hardcode_libdir_flag_spec='-L$libdir'
  24902. - hardcode_minus_L=yes
  24903. - allow_undefined_flag=unsupported
  24904. - 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'
  24905. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  24906. - ;;
  24907. - osf3*)
  24908. - if test "$GCC" = yes; then
  24909. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  24910. - 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'
  24911. - else
  24912. - allow_undefined_flag=' -expect_unresolved \*'
  24913. - 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'
  24914. - fi
  24915. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24916. - hardcode_libdir_separator=:
  24917. - ;;
  24918. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  24919. - if test "$GCC" = yes; then
  24920. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  24921. - 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'
  24922. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24923. - else
  24924. - allow_undefined_flag=' -expect_unresolved \*'
  24925. - 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'
  24926. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  24927. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  24928. - # Both c and cxx compiler support -rpath directly
  24929. - hardcode_libdir_flag_spec='-rpath $libdir'
  24930. - fi
  24931. - hardcode_libdir_separator=:
  24932. - ;;
  24933. - solaris*)
  24934. - no_undefined_flag=' -z text'
  24935. - if test "$GCC" = yes; then
  24936. - wlarc='${wl}'
  24937. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24938. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24939. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  24940. - else
  24941. - wlarc=''
  24942. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24943. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24944. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  24945. - fi
  24946. - hardcode_libdir_flag_spec='-R$libdir'
  24947. - hardcode_shlibpath_var=no
  24948. - case $host_os in
  24949. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  24950. - *)
  24951. - # The compiler driver will combine linker options so we
  24952. - # cannot just pass the convience library names through
  24953. - # without $wl, iff we do not link with $LD.
  24954. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  24955. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  24956. - case $wlarc in
  24957. - '')
  24958. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  24959. - *)
  24960. - whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  24961. - esac ;;
  24962. - esac
  24963. - link_all_deplibs=yes
  24964. - ;;
  24965. - sunos4*)
  24966. - if test "x$host_vendor" = xsequent; then
  24967. - # Use $CC to link under sequent, because it throws in some extra .o
  24968. - # files that make .init and .fini sections work.
  24969. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  24970. - else
  24971. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  24972. - fi
  24973. - hardcode_libdir_flag_spec='-L$libdir'
  24974. - hardcode_direct=yes
  24975. - hardcode_minus_L=yes
  24976. - hardcode_shlibpath_var=no
  24977. - ;;
  24978. - sysv4)
  24979. - case $host_vendor in
  24980. - sni)
  24981. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24982. - hardcode_direct=yes # is this really true???
  24983. - ;;
  24984. - siemens)
  24985. - ## LD is ld it makes a PLAMLIB
  24986. - ## CC just makes a GrossModule.
  24987. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  24988. - reload_cmds='$CC -r -o $output$reload_objs'
  24989. - hardcode_direct=no
  24990. - ;;
  24991. - motorola)
  24992. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24993. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  24994. - ;;
  24995. - esac
  24996. - runpath_var='LD_RUN_PATH'
  24997. - hardcode_shlibpath_var=no
  24998. - ;;
  24999. - sysv4.3*)
  25000. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25001. - hardcode_shlibpath_var=no
  25002. - export_dynamic_flag_spec='-Bexport'
  25003. - ;;
  25004. +if test -n "${ZSH_VERSION+set}" ; then
  25005. + setopt NO_GLOB_SUBST
  25006. +fi
  25007. - sysv4*MP*)
  25008. - if test -d /usr/nec; then
  25009. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25010. - hardcode_shlibpath_var=no
  25011. - runpath_var=LD_RUN_PATH
  25012. - hardcode_runpath_var=yes
  25013. - ld_shlibs=yes
  25014. - fi
  25015. - ;;
  25016. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  25017. +$as_echo_n "checking for objdir... " >&6; }
  25018. +if test "${lt_cv_objdir+set}" = set; then :
  25019. + $as_echo_n "(cached) " >&6
  25020. +else
  25021. + rm -f .libs 2>/dev/null
  25022. +mkdir .libs 2>/dev/null
  25023. +if test -d .libs; then
  25024. + lt_cv_objdir=.libs
  25025. +else
  25026. + # MS-DOS does not allow filenames that begin with a dot.
  25027. + lt_cv_objdir=_libs
  25028. +fi
  25029. +rmdir .libs 2>/dev/null
  25030. +fi
  25031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  25032. +$as_echo "$lt_cv_objdir" >&6; }
  25033. +objdir=$lt_cv_objdir
  25034. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  25035. - no_undefined_flag='${wl}-z,text'
  25036. - archive_cmds_need_lc=no
  25037. - hardcode_shlibpath_var=no
  25038. - runpath_var='LD_RUN_PATH'
  25039. - if test "$GCC" = yes; then
  25040. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25041. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25042. - else
  25043. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25044. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  25045. - fi
  25046. - ;;
  25047. - sysv5* | sco3.2v5* | sco5v6*)
  25048. - # Note: We can NOT use -z defs as we might desire, because we do not
  25049. - # link with -lc, and that would cause any symbols used from libc to
  25050. - # always be unresolved, which means just about no library would
  25051. - # ever link correctly. If we're not using GNU ld we use -z text
  25052. - # though, which does catch some bad symbols but isn't as heavy-handed
  25053. - # as -z defs.
  25054. - no_undefined_flag='${wl}-z,text'
  25055. - allow_undefined_flag='${wl}-z,nodefs'
  25056. - archive_cmds_need_lc=no
  25057. - hardcode_shlibpath_var=no
  25058. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  25059. - hardcode_libdir_separator=':'
  25060. - link_all_deplibs=yes
  25061. - export_dynamic_flag_spec='${wl}-Bexport'
  25062. - runpath_var='LD_RUN_PATH'
  25063. - if test "$GCC" = yes; then
  25064. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25065. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25066. - else
  25067. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25068. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  25069. - fi
  25070. - ;;
  25071. - uts4*)
  25072. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  25073. - hardcode_libdir_flag_spec='-L$libdir'
  25074. - hardcode_shlibpath_var=no
  25075. - ;;
  25076. +cat >>confdefs.h <<_ACEOF
  25077. +#define LT_OBJDIR "$lt_cv_objdir/"
  25078. +_ACEOF
  25079. - *)
  25080. - ld_shlibs=no
  25081. - ;;
  25082. - esac
  25083. - fi
  25084. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  25085. -echo "${ECHO_T}$ld_shlibs" >&6; }
  25086. -test "$ld_shlibs" = no && can_build_shared=no
  25087. -#
  25088. -# Do we need to explicitly link libc?
  25089. -#
  25090. -case "x$archive_cmds_need_lc" in
  25091. -x|xyes)
  25092. - # Assume -lc should be added
  25093. - archive_cmds_need_lc=yes
  25094. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  25095. - case $archive_cmds in
  25096. - *'~'*)
  25097. - # FIXME: we may have to deal with multi-command sequences.
  25098. - ;;
  25099. - '$CC '*)
  25100. - # Test whether the compiler implicitly links with -lc since on some
  25101. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  25102. - # to ld, don't add -lc before -lgcc.
  25103. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  25104. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  25105. - $rm conftest*
  25106. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25107. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25108. - (eval $ac_compile) 2>&5
  25109. - ac_status=$?
  25110. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25111. - (exit $ac_status); } 2>conftest.err; then
  25112. - soname=conftest
  25113. - lib=conftest
  25114. - libobjs=conftest.$ac_objext
  25115. - deplibs=
  25116. - wl=$lt_prog_compiler_wl
  25117. - pic_flag=$lt_prog_compiler_pic
  25118. - compiler_flags=-v
  25119. - linker_flags=-v
  25120. - verstring=
  25121. - output_objdir=.
  25122. - libname=conftest
  25123. - lt_save_allow_undefined_flag=$allow_undefined_flag
  25124. - allow_undefined_flag=
  25125. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  25126. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  25127. - ac_status=$?
  25128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25129. - (exit $ac_status); }
  25130. - then
  25131. - archive_cmds_need_lc=no
  25132. - else
  25133. - archive_cmds_need_lc=yes
  25134. - fi
  25135. - allow_undefined_flag=$lt_save_allow_undefined_flag
  25136. - else
  25137. - cat conftest.err 1>&5
  25138. - fi
  25139. - $rm conftest*
  25140. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  25141. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  25142. - ;;
  25143. - esac
  25144. - fi
  25145. - ;;
  25146. -esac
  25147. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  25148. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  25149. -library_names_spec=
  25150. -libname_spec='lib$name'
  25151. -soname_spec=
  25152. -shrext_cmds=".so"
  25153. -postinstall_cmds=
  25154. -postuninstall_cmds=
  25155. -finish_cmds=
  25156. -finish_eval=
  25157. -shlibpath_var=
  25158. -shlibpath_overrides_runpath=unknown
  25159. -version_type=none
  25160. -dynamic_linker="$host_os ld.so"
  25161. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  25162. -if test "$GCC" = yes; then
  25163. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25164. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  25165. - # if the path contains ";" then we assume it to be the separator
  25166. - # otherwise default to the standard path separator (i.e. ":") - it is
  25167. - # assumed that no part of a normal pathname contains ";" but that should
  25168. - # okay in the real world where ";" in dirpaths is itself problematic.
  25169. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25170. - else
  25171. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25172. - fi
  25173. -else
  25174. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  25175. -fi
  25176. -need_lib_prefix=unknown
  25177. -hardcode_into_libs=no
  25178. -# when you set need_version to no, make sure it does not cause -set_version
  25179. -# flags to be left without arguments
  25180. -need_version=unknown
  25181. -case $host_os in
  25182. -aix3*)
  25183. - version_type=linux
  25184. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  25185. - shlibpath_var=LIBPATH
  25186. - # AIX 3 has no versioning support, so we append a major version to the name.
  25187. - soname_spec='${libname}${release}${shared_ext}$major'
  25188. - ;;
  25189. -aix4* | aix5*)
  25190. - version_type=linux
  25191. - need_lib_prefix=no
  25192. - need_version=no
  25193. - hardcode_into_libs=yes
  25194. - if test "$host_cpu" = ia64; then
  25195. - # AIX 5 supports IA64
  25196. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  25197. - shlibpath_var=LD_LIBRARY_PATH
  25198. - else
  25199. - # With GCC up to 2.95.x, collect2 would create an import file
  25200. - # for dependence libraries. The import file would start with
  25201. - # the line `#! .'. This would cause the generated library to
  25202. - # depend on `.', always an invalid library. This was fixed in
  25203. - # development snapshots of GCC prior to 3.0.
  25204. - case $host_os in
  25205. - aix4 | aix4.[01] | aix4.[01].*)
  25206. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  25207. - echo ' yes '
  25208. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  25209. - :
  25210. - else
  25211. - can_build_shared=no
  25212. - fi
  25213. - ;;
  25214. - esac
  25215. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  25216. - # soname into executable. Probably we can add versioning support to
  25217. - # collect2, so additional links can be useful in future.
  25218. - if test "$aix_use_runtimelinking" = yes; then
  25219. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  25220. - # instead of lib<name>.a to let people know that these are not
  25221. - # typical AIX shared libraries.
  25222. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25223. - else
  25224. - # We preserve .a as extension for shared libraries through AIX4.2
  25225. - # and later when we are not doing run time linking.
  25226. - library_names_spec='${libname}${release}.a $libname.a'
  25227. - soname_spec='${libname}${release}${shared_ext}$major'
  25228. - fi
  25229. - shlibpath_var=LIBPATH
  25230. - fi
  25231. - ;;
  25232. -amigaos*)
  25233. - library_names_spec='$libname.ixlibrary $libname.a'
  25234. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  25235. - 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'
  25236. - ;;
  25237. -beos*)
  25238. - library_names_spec='${libname}${shared_ext}'
  25239. - dynamic_linker="$host_os ld.so"
  25240. - shlibpath_var=LIBRARY_PATH
  25241. - ;;
  25242. -bsdi[45]*)
  25243. - version_type=linux
  25244. - need_version=no
  25245. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25246. - soname_spec='${libname}${release}${shared_ext}$major'
  25247. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  25248. - shlibpath_var=LD_LIBRARY_PATH
  25249. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  25250. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  25251. - # the default ld.so.conf also contains /usr/contrib/lib and
  25252. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  25253. - # libtool to hard-code these into programs
  25254. - ;;
  25255. -cygwin* | mingw* | pw32*)
  25256. - version_type=windows
  25257. - shrext_cmds=".dll"
  25258. - need_version=no
  25259. - need_lib_prefix=no
  25260. - case $GCC,$host_os in
  25261. - yes,cygwin* | yes,mingw* | yes,pw32*)
  25262. - library_names_spec='$libname.dll.a'
  25263. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  25264. - postinstall_cmds='base_file=`basename \${file}`~
  25265. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  25266. - dldir=$destdir/`dirname \$dlpath`~
  25267. - test -d \$dldir || mkdir -p \$dldir~
  25268. - $install_prog $dir/$dlname \$dldir/$dlname~
  25269. - chmod a+x \$dldir/$dlname'
  25270. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  25271. - dlpath=$dir/\$dldll~
  25272. - $rm \$dlpath'
  25273. - shlibpath_overrides_runpath=yes
  25274. - case $host_os in
  25275. - cygwin*)
  25276. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  25277. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25278. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  25279. - ;;
  25280. - mingw*)
  25281. - # MinGW DLLs use traditional 'lib' prefix
  25282. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25283. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  25284. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  25285. - # It is most probably a Windows format PATH printed by
  25286. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  25287. - # path with ; separators, and with drive letters. We can handle the
  25288. - # drive letters (cygwin fileutils understands them), so leave them,
  25289. - # especially as we might pass files found there to a mingw objdump,
  25290. - # which wouldn't understand a cygwinified path. Ahh.
  25291. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  25292. - else
  25293. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  25294. - fi
  25295. - ;;
  25296. - pw32*)
  25297. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  25298. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  25299. - ;;
  25300. - esac
  25301. - ;;
  25302. -
  25303. - *)
  25304. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  25305. - ;;
  25306. - esac
  25307. - dynamic_linker='Win32 ld.exe'
  25308. - # FIXME: first we should search . and the directory the executable is in
  25309. - shlibpath_var=PATH
  25310. - ;;
  25311. -darwin* | rhapsody*)
  25312. - dynamic_linker="$host_os dyld"
  25313. - version_type=darwin
  25314. - need_lib_prefix=no
  25315. - need_version=no
  25316. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  25317. - soname_spec='${libname}${release}${major}$shared_ext'
  25318. - shlibpath_overrides_runpath=yes
  25319. - shlibpath_var=DYLD_LIBRARY_PATH
  25320. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  25321. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  25322. - if test "$GCC" = yes; then
  25323. - 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"`
  25324. - else
  25325. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  25326. +case $host_os in
  25327. +aix3*)
  25328. + # AIX sometimes has problems with the GCC collect2 program. For some
  25329. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  25330. + # vanish in a puff of smoke.
  25331. + if test "X${COLLECT_NAMES+set}" != Xset; then
  25332. + COLLECT_NAMES=
  25333. + export COLLECT_NAMES
  25334. fi
  25335. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  25336. ;;
  25337. +esac
  25338. -dgux*)
  25339. - version_type=linux
  25340. - need_lib_prefix=no
  25341. - need_version=no
  25342. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  25343. - soname_spec='${libname}${release}${shared_ext}$major'
  25344. - shlibpath_var=LD_LIBRARY_PATH
  25345. - ;;
  25346. +# Sed substitution that helps us do robust quoting. It backslashifies
  25347. +# metacharacters that are still active within double-quoted strings.
  25348. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  25349. -freebsd1*)
  25350. - dynamic_linker=no
  25351. - ;;
  25352. +# Same as above, but do not quote variable references.
  25353. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  25354. -freebsd* | dragonfly*)
  25355. - # DragonFly does not have aout. When/if they implement a new
  25356. - # versioning mechanism, adjust this.
  25357. - if test -x /usr/bin/objformat; then
  25358. - objformat=`/usr/bin/objformat`
  25359. - else
  25360. - case $host_os in
  25361. - freebsd[123]*) objformat=aout ;;
  25362. - *) objformat=elf ;;
  25363. - esac
  25364. - fi
  25365. - version_type=freebsd-$objformat
  25366. - case $version_type in
  25367. - freebsd-elf*)
  25368. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25369. - need_version=no
  25370. - need_lib_prefix=no
  25371. - ;;
  25372. - freebsd-*)
  25373. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  25374. - need_version=yes
  25375. - ;;
  25376. - esac
  25377. - shlibpath_var=LD_LIBRARY_PATH
  25378. - case $host_os in
  25379. - freebsd2*)
  25380. - shlibpath_overrides_runpath=yes
  25381. - ;;
  25382. - freebsd3.[01]* | freebsdelf3.[01]*)
  25383. - shlibpath_overrides_runpath=yes
  25384. - hardcode_into_libs=yes
  25385. - ;;
  25386. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  25387. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  25388. - shlibpath_overrides_runpath=no
  25389. - hardcode_into_libs=yes
  25390. - ;;
  25391. - freebsd*) # from 4.6 on
  25392. - shlibpath_overrides_runpath=yes
  25393. - hardcode_into_libs=yes
  25394. - ;;
  25395. - esac
  25396. - ;;
  25397. +# Sed substitution to delay expansion of an escaped shell variable in a
  25398. +# double_quote_subst'ed string.
  25399. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  25400. -gnu*)
  25401. - version_type=linux
  25402. - need_lib_prefix=no
  25403. - need_version=no
  25404. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  25405. - soname_spec='${libname}${release}${shared_ext}$major'
  25406. - shlibpath_var=LD_LIBRARY_PATH
  25407. - hardcode_into_libs=yes
  25408. - ;;
  25409. +# Sed substitution to delay expansion of an escaped single quote.
  25410. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  25411. -hpux9* | hpux10* | hpux11*)
  25412. - # Give a soname corresponding to the major version so that dld.sl refuses to
  25413. - # link against other versions.
  25414. - version_type=sunos
  25415. - need_lib_prefix=no
  25416. - need_version=no
  25417. - case $host_cpu in
  25418. - ia64*)
  25419. - shrext_cmds='.so'
  25420. - hardcode_into_libs=yes
  25421. - dynamic_linker="$host_os dld.so"
  25422. - shlibpath_var=LD_LIBRARY_PATH
  25423. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25424. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25425. - soname_spec='${libname}${release}${shared_ext}$major'
  25426. - if test "X$HPUX_IA64_MODE" = X32; then
  25427. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  25428. - else
  25429. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  25430. - fi
  25431. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25432. - ;;
  25433. - hppa*64*)
  25434. - shrext_cmds='.sl'
  25435. - hardcode_into_libs=yes
  25436. - dynamic_linker="$host_os dld.sl"
  25437. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  25438. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25439. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25440. - soname_spec='${libname}${release}${shared_ext}$major'
  25441. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  25442. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25443. - ;;
  25444. - *)
  25445. - shrext_cmds='.sl'
  25446. - dynamic_linker="$host_os dld.sl"
  25447. - shlibpath_var=SHLIB_PATH
  25448. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  25449. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25450. - soname_spec='${libname}${release}${shared_ext}$major'
  25451. - ;;
  25452. - esac
  25453. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  25454. - postinstall_cmds='chmod 555 $lib'
  25455. - ;;
  25456. +# Sed substitution to avoid accidental globbing in evaled expressions
  25457. +no_glob_subst='s/\*/\\\*/g'
  25458. -interix3*)
  25459. - version_type=linux
  25460. - need_lib_prefix=no
  25461. - need_version=no
  25462. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25463. - soname_spec='${libname}${release}${shared_ext}$major'
  25464. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  25465. - shlibpath_var=LD_LIBRARY_PATH
  25466. - shlibpath_overrides_runpath=no
  25467. - hardcode_into_libs=yes
  25468. - ;;
  25469. +# Global variables:
  25470. +ofile=libtool
  25471. +can_build_shared=yes
  25472. -irix5* | irix6* | nonstopux*)
  25473. - case $host_os in
  25474. - nonstopux*) version_type=nonstopux ;;
  25475. - *)
  25476. - if test "$lt_cv_prog_gnu_ld" = yes; then
  25477. - version_type=linux
  25478. - else
  25479. - version_type=irix
  25480. - fi ;;
  25481. - esac
  25482. - need_lib_prefix=no
  25483. - need_version=no
  25484. - soname_spec='${libname}${release}${shared_ext}$major'
  25485. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  25486. - case $host_os in
  25487. - irix5* | nonstopux*)
  25488. - libsuff= shlibsuff=
  25489. - ;;
  25490. - *)
  25491. - case $LD in # libtool.m4 will add one of these switches to LD
  25492. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  25493. - libsuff= shlibsuff= libmagic=32-bit;;
  25494. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  25495. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  25496. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  25497. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  25498. - *) libsuff= shlibsuff= libmagic=never-match;;
  25499. - esac
  25500. - ;;
  25501. - esac
  25502. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  25503. - shlibpath_overrides_runpath=no
  25504. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  25505. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  25506. - hardcode_into_libs=yes
  25507. - ;;
  25508. +# All known linkers require a `.a' archive for static linking (except MSVC,
  25509. +# which needs '.lib').
  25510. +libext=a
  25511. -# No shared lib support for Linux oldld, aout, or coff.
  25512. -linux*oldld* | linux*aout* | linux*coff*)
  25513. - dynamic_linker=no
  25514. - ;;
  25515. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  25516. -# This must be Linux ELF.
  25517. -linux* | k*bsd*-gnu)
  25518. - version_type=linux
  25519. - need_lib_prefix=no
  25520. - need_version=no
  25521. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25522. - soname_spec='${libname}${release}${shared_ext}$major'
  25523. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  25524. - shlibpath_var=LD_LIBRARY_PATH
  25525. - shlibpath_overrides_runpath=no
  25526. - # This implies no fast_install, which is unacceptable.
  25527. - # Some rework will be needed to allow for fast_install
  25528. - # before this can be enabled.
  25529. - hardcode_into_libs=yes
  25530. +old_CC="$CC"
  25531. +old_CFLAGS="$CFLAGS"
  25532. - # Append ld.so.conf contents to the search path
  25533. - if test -f /etc/ld.so.conf; then
  25534. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  25535. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  25536. - fi
  25537. +# Set sane defaults for various variables
  25538. +test -z "$CC" && CC=cc
  25539. +test -z "$LTCC" && LTCC=$CC
  25540. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  25541. +test -z "$LD" && LD=ld
  25542. +test -z "$ac_objext" && ac_objext=o
  25543. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  25544. - # powerpc, because MkLinux only supported shared libraries with the
  25545. - # GNU dynamic linker. Since this was broken with cross compilers,
  25546. - # most powerpc-linux boxes support dynamic linking these days and
  25547. - # people can always --disable-shared, the test was removed, and we
  25548. - # assume the GNU/Linux dynamic linker is in use.
  25549. - dynamic_linker='GNU/Linux ld.so'
  25550. - ;;
  25551. +for cc_temp in $compiler""; do
  25552. + case $cc_temp in
  25553. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25554. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25555. + \-*) ;;
  25556. + *) break;;
  25557. + esac
  25558. +done
  25559. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25560. -netbsdelf*-gnu)
  25561. - version_type=linux
  25562. - need_lib_prefix=no
  25563. - need_version=no
  25564. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25565. - soname_spec='${libname}${release}${shared_ext}$major'
  25566. - shlibpath_var=LD_LIBRARY_PATH
  25567. - shlibpath_overrides_runpath=no
  25568. - hardcode_into_libs=yes
  25569. - dynamic_linker='NetBSD ld.elf_so'
  25570. - ;;
  25571. -netbsd*)
  25572. - version_type=sunos
  25573. - need_lib_prefix=no
  25574. - need_version=no
  25575. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25576. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25577. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25578. - dynamic_linker='NetBSD (a.out) ld.so'
  25579. - else
  25580. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25581. - soname_spec='${libname}${release}${shared_ext}$major'
  25582. - dynamic_linker='NetBSD ld.elf_so'
  25583. - fi
  25584. - shlibpath_var=LD_LIBRARY_PATH
  25585. - shlibpath_overrides_runpath=yes
  25586. - hardcode_into_libs=yes
  25587. +# Only perform the check for file, if the check method requires it
  25588. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  25589. +case $deplibs_check_method in
  25590. +file_magic*)
  25591. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  25592. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  25593. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  25594. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  25595. + $as_echo_n "(cached) " >&6
  25596. +else
  25597. + case $MAGIC_CMD in
  25598. +[\\/*] | ?:[\\/]*)
  25599. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25600. ;;
  25601. +*)
  25602. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  25603. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25604. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25605. + for ac_dir in $ac_dummy; do
  25606. + IFS="$lt_save_ifs"
  25607. + test -z "$ac_dir" && ac_dir=.
  25608. + if test -f $ac_dir/${ac_tool_prefix}file; then
  25609. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  25610. + if test -n "$file_magic_test_file"; then
  25611. + case $deplibs_check_method in
  25612. + "file_magic "*)
  25613. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25614. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25615. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25616. + $EGREP "$file_magic_regex" > /dev/null; then
  25617. + :
  25618. + else
  25619. + cat <<_LT_EOF 1>&2
  25620. -newsos6)
  25621. - version_type=linux
  25622. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25623. - shlibpath_var=LD_LIBRARY_PATH
  25624. - shlibpath_overrides_runpath=yes
  25625. - ;;
  25626. +*** Warning: the command libtool uses to detect shared libraries,
  25627. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  25628. +*** The result is that libtool may fail to recognize shared libraries
  25629. +*** as such. This will affect the creation of libtool libraries that
  25630. +*** depend on shared libraries, but programs linked with such libtool
  25631. +*** libraries will work regardless of this problem. Nevertheless, you
  25632. +*** may want to report the problem to your system manager and/or to
  25633. +*** bug-libtool@gnu.org
  25634. -nto-qnx*)
  25635. - version_type=linux
  25636. - need_lib_prefix=no
  25637. - need_version=no
  25638. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25639. - soname_spec='${libname}${release}${shared_ext}$major'
  25640. - shlibpath_var=LD_LIBRARY_PATH
  25641. - shlibpath_overrides_runpath=yes
  25642. +_LT_EOF
  25643. + fi ;;
  25644. + esac
  25645. + fi
  25646. + break
  25647. + fi
  25648. + done
  25649. + IFS="$lt_save_ifs"
  25650. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  25651. ;;
  25652. +esac
  25653. +fi
  25654. -openbsd*)
  25655. - version_type=sunos
  25656. - sys_lib_dlsearch_path_spec="/usr/lib"
  25657. - need_lib_prefix=no
  25658. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  25659. - case $host_os in
  25660. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  25661. - *) need_version=no ;;
  25662. - esac
  25663. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25664. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25665. - shlibpath_var=LD_LIBRARY_PATH
  25666. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25667. - case $host_os in
  25668. - openbsd2.[89] | openbsd2.[89].*)
  25669. - shlibpath_overrides_runpath=no
  25670. - ;;
  25671. - *)
  25672. - shlibpath_overrides_runpath=yes
  25673. - ;;
  25674. - esac
  25675. - else
  25676. - shlibpath_overrides_runpath=yes
  25677. - fi
  25678. - ;;
  25679. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25680. +if test -n "$MAGIC_CMD"; then
  25681. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  25682. +$as_echo "$MAGIC_CMD" >&6; }
  25683. +else
  25684. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25685. +$as_echo "no" >&6; }
  25686. +fi
  25687. -os2*)
  25688. - libname_spec='$name'
  25689. - shrext_cmds=".dll"
  25690. - need_lib_prefix=no
  25691. - library_names_spec='$libname${shared_ext} $libname.a'
  25692. - dynamic_linker='OS/2 ld.exe'
  25693. - shlibpath_var=LIBPATH
  25694. - ;;
  25695. -osf3* | osf4* | osf5*)
  25696. - version_type=osf
  25697. - need_lib_prefix=no
  25698. - need_version=no
  25699. - soname_spec='${libname}${release}${shared_ext}$major'
  25700. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25701. - shlibpath_var=LD_LIBRARY_PATH
  25702. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  25703. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  25704. - ;;
  25705. -solaris*)
  25706. - version_type=linux
  25707. - need_lib_prefix=no
  25708. - need_version=no
  25709. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25710. - soname_spec='${libname}${release}${shared_ext}$major'
  25711. - shlibpath_var=LD_LIBRARY_PATH
  25712. - shlibpath_overrides_runpath=yes
  25713. - hardcode_into_libs=yes
  25714. - # ldd complains unless libraries are executable
  25715. - postinstall_cmds='chmod +x $lib'
  25716. - ;;
  25717. -sunos4*)
  25718. - version_type=sunos
  25719. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25720. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  25721. - shlibpath_var=LD_LIBRARY_PATH
  25722. - shlibpath_overrides_runpath=yes
  25723. - if test "$with_gnu_ld" = yes; then
  25724. - need_lib_prefix=no
  25725. - fi
  25726. - need_version=yes
  25727. - ;;
  25728. -sysv4 | sysv4.3*)
  25729. - version_type=linux
  25730. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25731. - soname_spec='${libname}${release}${shared_ext}$major'
  25732. - shlibpath_var=LD_LIBRARY_PATH
  25733. - case $host_vendor in
  25734. - sni)
  25735. - shlibpath_overrides_runpath=no
  25736. - need_lib_prefix=no
  25737. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  25738. - runpath_var=LD_RUN_PATH
  25739. - ;;
  25740. - siemens)
  25741. - need_lib_prefix=no
  25742. - ;;
  25743. - motorola)
  25744. - need_lib_prefix=no
  25745. - need_version=no
  25746. - shlibpath_overrides_runpath=no
  25747. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  25748. - ;;
  25749. - esac
  25750. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  25751. + if test -n "$ac_tool_prefix"; then
  25752. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  25753. +$as_echo_n "checking for file... " >&6; }
  25754. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  25755. + $as_echo_n "(cached) " >&6
  25756. +else
  25757. + case $MAGIC_CMD in
  25758. +[\\/*] | ?:[\\/]*)
  25759. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25760. ;;
  25761. +*)
  25762. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  25763. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25764. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25765. + for ac_dir in $ac_dummy; do
  25766. + IFS="$lt_save_ifs"
  25767. + test -z "$ac_dir" && ac_dir=.
  25768. + if test -f $ac_dir/file; then
  25769. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  25770. + if test -n "$file_magic_test_file"; then
  25771. + case $deplibs_check_method in
  25772. + "file_magic "*)
  25773. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25774. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25775. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25776. + $EGREP "$file_magic_regex" > /dev/null; then
  25777. + :
  25778. + else
  25779. + cat <<_LT_EOF 1>&2
  25780. -sysv4*MP*)
  25781. - if test -d /usr/nec ;then
  25782. - version_type=linux
  25783. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  25784. - soname_spec='$libname${shared_ext}.$major'
  25785. - shlibpath_var=LD_LIBRARY_PATH
  25786. - fi
  25787. +*** Warning: the command libtool uses to detect shared libraries,
  25788. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  25789. +*** The result is that libtool may fail to recognize shared libraries
  25790. +*** as such. This will affect the creation of libtool libraries that
  25791. +*** depend on shared libraries, but programs linked with such libtool
  25792. +*** libraries will work regardless of this problem. Nevertheless, you
  25793. +*** may want to report the problem to your system manager and/or to
  25794. +*** bug-libtool@gnu.org
  25795. +
  25796. +_LT_EOF
  25797. + fi ;;
  25798. + esac
  25799. + fi
  25800. + break
  25801. + fi
  25802. + done
  25803. + IFS="$lt_save_ifs"
  25804. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  25805. ;;
  25806. +esac
  25807. +fi
  25808. +
  25809. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25810. +if test -n "$MAGIC_CMD"; then
  25811. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  25812. +$as_echo "$MAGIC_CMD" >&6; }
  25813. +else
  25814. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25815. +$as_echo "no" >&6; }
  25816. +fi
  25817. +
  25818. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  25819. - version_type=freebsd-elf
  25820. - need_lib_prefix=no
  25821. - need_version=no
  25822. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25823. - soname_spec='${libname}${release}${shared_ext}$major'
  25824. - shlibpath_var=LD_LIBRARY_PATH
  25825. - hardcode_into_libs=yes
  25826. - if test "$with_gnu_ld" = yes; then
  25827. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  25828. - shlibpath_overrides_runpath=no
  25829. else
  25830. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  25831. - shlibpath_overrides_runpath=yes
  25832. - case $host_os in
  25833. - sco3.2v5*)
  25834. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  25835. - ;;
  25836. - esac
  25837. + MAGIC_CMD=:
  25838. fi
  25839. - sys_lib_dlsearch_path_spec='/usr/lib'
  25840. - ;;
  25841. +fi
  25842. -uts4*)
  25843. - version_type=linux
  25844. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25845. - soname_spec='${libname}${release}${shared_ext}$major'
  25846. - shlibpath_var=LD_LIBRARY_PATH
  25847. + fi
  25848. ;;
  25849. +esac
  25850. -*)
  25851. - dynamic_linker=no
  25852. - ;;
  25853. -esac
  25854. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  25855. -echo "${ECHO_T}$dynamic_linker" >&6; }
  25856. -test "$dynamic_linker" = no && can_build_shared=no
  25857. +# Use C for the default configuration in the libtool script
  25858. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  25859. -if test "$GCC" = yes; then
  25860. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  25861. -fi
  25862. +lt_save_CC="$CC"
  25863. +ac_ext=c
  25864. +ac_cpp='$CPP $CPPFLAGS'
  25865. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25866. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25867. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25868. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  25869. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  25870. -hardcode_action=
  25871. -if test -n "$hardcode_libdir_flag_spec" || \
  25872. - test -n "$runpath_var" || \
  25873. - test "X$hardcode_automatic" = "Xyes" ; then
  25874. - # We can hardcode non-existant directories.
  25875. - if test "$hardcode_direct" != no &&
  25876. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  25877. - # have to relink, otherwise we might link with an installed library
  25878. - # when we should be linking with a yet-to-be-installed one
  25879. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  25880. - test "$hardcode_minus_L" != no; then
  25881. - # Linking always hardcodes the temporary library directory.
  25882. - hardcode_action=relink
  25883. - else
  25884. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  25885. - hardcode_action=immediate
  25886. - fi
  25887. -else
  25888. - # We cannot hardcode anything, or else we can only hardcode existing
  25889. - # directories.
  25890. - hardcode_action=unsupported
  25891. -fi
  25892. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  25893. -echo "${ECHO_T}$hardcode_action" >&6; }
  25894. +# Source file extension for C test sources.
  25895. +ac_ext=c
  25896. -if test "$hardcode_action" = relink; then
  25897. - # Fast installation is not supported
  25898. - enable_fast_install=no
  25899. -elif test "$shlibpath_overrides_runpath" = yes ||
  25900. - test "$enable_shared" = no; then
  25901. - # Fast installation is not necessary
  25902. - enable_fast_install=needless
  25903. -fi
  25904. +# Object file extension for compiled C test sources.
  25905. +objext=o
  25906. +objext=$objext
  25907. -striplib=
  25908. -old_striplib=
  25909. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  25910. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  25911. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  25912. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  25913. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  25914. - { echo "$as_me:$LINENO: result: yes" >&5
  25915. -echo "${ECHO_T}yes" >&6; }
  25916. -else
  25917. -# FIXME - insert some real tests, host_os isn't really good enough
  25918. - case $host_os in
  25919. - darwin*)
  25920. - if test -n "$STRIP" ; then
  25921. - striplib="$STRIP -x"
  25922. - { echo "$as_me:$LINENO: result: yes" >&5
  25923. -echo "${ECHO_T}yes" >&6; }
  25924. - else
  25925. - { echo "$as_me:$LINENO: result: no" >&5
  25926. -echo "${ECHO_T}no" >&6; }
  25927. -fi
  25928. - ;;
  25929. - *)
  25930. - { echo "$as_me:$LINENO: result: no" >&5
  25931. -echo "${ECHO_T}no" >&6; }
  25932. - ;;
  25933. - esac
  25934. -fi
  25935. +# Code to be used in simple compile tests
  25936. +lt_simple_compile_test_code="int some_variable = 0;"
  25937. -if test "x$enable_dlopen" != xyes; then
  25938. - enable_dlopen=unknown
  25939. - enable_dlopen_self=unknown
  25940. - enable_dlopen_self_static=unknown
  25941. -else
  25942. - lt_cv_dlopen=no
  25943. - lt_cv_dlopen_libs=
  25944. +# Code to be used in simple link tests
  25945. +lt_simple_link_test_code='int main(){return(0);}'
  25946. - case $host_os in
  25947. - beos*)
  25948. - lt_cv_dlopen="load_add_on"
  25949. - lt_cv_dlopen_libs=
  25950. - lt_cv_dlopen_self=yes
  25951. - ;;
  25952. - mingw* | pw32*)
  25953. - lt_cv_dlopen="LoadLibrary"
  25954. - lt_cv_dlopen_libs=
  25955. - ;;
  25956. - cygwin*)
  25957. - lt_cv_dlopen="dlopen"
  25958. - lt_cv_dlopen_libs=
  25959. - ;;
  25960. - darwin*)
  25961. - # if libdl is installed we need to link against it
  25962. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  25963. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  25964. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  25965. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25966. -else
  25967. - ac_check_lib_save_LIBS=$LIBS
  25968. -LIBS="-ldl $LIBS"
  25969. -cat >conftest.$ac_ext <<_ACEOF
  25970. -/* confdefs.h. */
  25971. -_ACEOF
  25972. -cat confdefs.h >>conftest.$ac_ext
  25973. -cat >>conftest.$ac_ext <<_ACEOF
  25974. -/* end confdefs.h. */
  25975. -/* Override any GCC internal prototype to avoid an error.
  25976. - Use char because int might match the return type of a GCC
  25977. - builtin and then its argument prototype would still apply. */
  25978. -#ifdef __cplusplus
  25979. -extern "C"
  25980. -#endif
  25981. -char dlopen ();
  25982. -int
  25983. -main ()
  25984. -{
  25985. -return dlopen ();
  25986. - ;
  25987. - return 0;
  25988. -}
  25989. -_ACEOF
  25990. -rm -f conftest.$ac_objext conftest$ac_exeext
  25991. -if { (ac_try="$ac_link"
  25992. -case "(($ac_try" in
  25993. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25994. - *) ac_try_echo=$ac_try;;
  25995. -esac
  25996. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25997. - (eval "$ac_link") 2>conftest.er1
  25998. - ac_status=$?
  25999. - grep -v '^ *+' conftest.er1 >conftest.err
  26000. - rm -f conftest.er1
  26001. - cat conftest.err >&5
  26002. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26003. - (exit $ac_status); } && {
  26004. - test -z "$ac_c_werror_flag" ||
  26005. - test ! -s conftest.err
  26006. - } && test -s conftest$ac_exeext &&
  26007. - $as_test_x conftest$ac_exeext; then
  26008. - ac_cv_lib_dl_dlopen=yes
  26009. -else
  26010. - echo "$as_me: failed program was:" >&5
  26011. -sed 's/^/| /' conftest.$ac_ext >&5
  26012. - ac_cv_lib_dl_dlopen=no
  26013. -fi
  26014. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26015. - conftest$ac_exeext conftest.$ac_ext
  26016. -LIBS=$ac_check_lib_save_LIBS
  26017. -fi
  26018. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26019. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  26020. -if test $ac_cv_lib_dl_dlopen = yes; then
  26021. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26022. -else
  26023. +# If no C compiler was specified, use CC.
  26024. +LTCC=${LTCC-"$CC"}
  26025. - lt_cv_dlopen="dyld"
  26026. - lt_cv_dlopen_libs=
  26027. - lt_cv_dlopen_self=yes
  26028. +# If no C compiler flags were specified, use CFLAGS.
  26029. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26030. -fi
  26031. +# Allow CC to be a program name with arguments.
  26032. +compiler=$CC
  26033. - ;;
  26034. +# Save the default compiler, since it gets overwritten when the other
  26035. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  26036. +compiler_DEFAULT=$CC
  26037. - *)
  26038. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  26039. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  26040. -if test "${ac_cv_func_shl_load+set}" = set; then
  26041. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26042. -else
  26043. - cat >conftest.$ac_ext <<_ACEOF
  26044. -/* confdefs.h. */
  26045. -_ACEOF
  26046. -cat confdefs.h >>conftest.$ac_ext
  26047. -cat >>conftest.$ac_ext <<_ACEOF
  26048. -/* end confdefs.h. */
  26049. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  26050. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26051. -#define shl_load innocuous_shl_load
  26052. +# save warnings/boilerplate of simple test code
  26053. +ac_outfile=conftest.$ac_objext
  26054. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  26055. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26056. +_lt_compiler_boilerplate=`cat conftest.err`
  26057. +$RM conftest*
  26058. -/* System header to define __stub macros and hopefully few prototypes,
  26059. - which can conflict with char shl_load (); below.
  26060. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26061. - <limits.h> exists even on freestanding compilers. */
  26062. +ac_outfile=conftest.$ac_objext
  26063. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  26064. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26065. +_lt_linker_boilerplate=`cat conftest.err`
  26066. +$RM -r conftest*
  26067. -#ifdef __STDC__
  26068. -# include <limits.h>
  26069. -#else
  26070. -# include <assert.h>
  26071. -#endif
  26072. -#undef shl_load
  26073. +if test -n "$compiler"; then
  26074. -/* Override any GCC internal prototype to avoid an error.
  26075. - Use char because int might match the return type of a GCC
  26076. - builtin and then its argument prototype would still apply. */
  26077. -#ifdef __cplusplus
  26078. -extern "C"
  26079. -#endif
  26080. -char shl_load ();
  26081. -/* The GNU C library defines this for functions which it implements
  26082. - to always fail with ENOSYS. Some functions are actually named
  26083. - something starting with __ and the normal name is an alias. */
  26084. -#if defined __stub_shl_load || defined __stub___shl_load
  26085. -choke me
  26086. -#endif
  26087. +lt_prog_compiler_no_builtin_flag=
  26088. -int
  26089. -main ()
  26090. -{
  26091. -return shl_load ();
  26092. - ;
  26093. - return 0;
  26094. -}
  26095. -_ACEOF
  26096. -rm -f conftest.$ac_objext conftest$ac_exeext
  26097. -if { (ac_try="$ac_link"
  26098. -case "(($ac_try" in
  26099. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26100. - *) ac_try_echo=$ac_try;;
  26101. -esac
  26102. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26103. - (eval "$ac_link") 2>conftest.er1
  26104. - ac_status=$?
  26105. - grep -v '^ *+' conftest.er1 >conftest.err
  26106. - rm -f conftest.er1
  26107. - cat conftest.err >&5
  26108. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26109. - (exit $ac_status); } && {
  26110. - test -z "$ac_c_werror_flag" ||
  26111. - test ! -s conftest.err
  26112. - } && test -s conftest$ac_exeext &&
  26113. - $as_test_x conftest$ac_exeext; then
  26114. - ac_cv_func_shl_load=yes
  26115. -else
  26116. - echo "$as_me: failed program was:" >&5
  26117. -sed 's/^/| /' conftest.$ac_ext >&5
  26118. +if test "$GCC" = yes; then
  26119. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  26120. - ac_cv_func_shl_load=no
  26121. -fi
  26122. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  26123. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  26124. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  26125. + $as_echo_n "(cached) " >&6
  26126. +else
  26127. + lt_cv_prog_compiler_rtti_exceptions=no
  26128. + ac_outfile=conftest.$ac_objext
  26129. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26130. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  26131. + # Insert the option either (1) after the last *FLAGS variable, or
  26132. + # (2) before a word containing "conftest.", or (3) at the end.
  26133. + # Note that $ac_compile itself does not contain backslashes and begins
  26134. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  26135. + # The option is referenced via a variable to avoid confusing sed.
  26136. + lt_compile=`echo "$ac_compile" | $SED \
  26137. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26138. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26139. + -e 's:$: $lt_compiler_flag:'`
  26140. + (eval echo "\"\$as_me:7326: $lt_compile\"" >&5)
  26141. + (eval "$lt_compile" 2>conftest.err)
  26142. + ac_status=$?
  26143. + cat conftest.err >&5
  26144. + echo "$as_me:7330: \$? = $ac_status" >&5
  26145. + if (exit $ac_status) && test -s "$ac_outfile"; then
  26146. + # The compiler can only warn and ignore the option if not recognized
  26147. + # So say no if there are warnings other than the usual output.
  26148. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26149. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26150. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26151. + lt_cv_prog_compiler_rtti_exceptions=yes
  26152. + fi
  26153. + fi
  26154. + $RM conftest*
  26155. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26156. - conftest$ac_exeext conftest.$ac_ext
  26157. fi
  26158. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  26159. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  26160. -if test $ac_cv_func_shl_load = yes; then
  26161. - lt_cv_dlopen="shl_load"
  26162. -else
  26163. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  26164. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  26165. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  26166. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26167. -else
  26168. - ac_check_lib_save_LIBS=$LIBS
  26169. -LIBS="-ldld $LIBS"
  26170. -cat >conftest.$ac_ext <<_ACEOF
  26171. -/* confdefs.h. */
  26172. -_ACEOF
  26173. -cat confdefs.h >>conftest.$ac_ext
  26174. -cat >>conftest.$ac_ext <<_ACEOF
  26175. -/* end confdefs.h. */
  26176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  26177. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  26178. -/* Override any GCC internal prototype to avoid an error.
  26179. - Use char because int might match the return type of a GCC
  26180. - builtin and then its argument prototype would still apply. */
  26181. -#ifdef __cplusplus
  26182. -extern "C"
  26183. -#endif
  26184. -char shl_load ();
  26185. -int
  26186. -main ()
  26187. -{
  26188. -return shl_load ();
  26189. - ;
  26190. - return 0;
  26191. -}
  26192. -_ACEOF
  26193. -rm -f conftest.$ac_objext conftest$ac_exeext
  26194. -if { (ac_try="$ac_link"
  26195. -case "(($ac_try" in
  26196. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26197. - *) ac_try_echo=$ac_try;;
  26198. -esac
  26199. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26200. - (eval "$ac_link") 2>conftest.er1
  26201. - ac_status=$?
  26202. - grep -v '^ *+' conftest.er1 >conftest.err
  26203. - rm -f conftest.er1
  26204. - cat conftest.err >&5
  26205. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26206. - (exit $ac_status); } && {
  26207. - test -z "$ac_c_werror_flag" ||
  26208. - test ! -s conftest.err
  26209. - } && test -s conftest$ac_exeext &&
  26210. - $as_test_x conftest$ac_exeext; then
  26211. - ac_cv_lib_dld_shl_load=yes
  26212. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  26213. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  26214. else
  26215. - echo "$as_me: failed program was:" >&5
  26216. -sed 's/^/| /' conftest.$ac_ext >&5
  26217. -
  26218. - ac_cv_lib_dld_shl_load=no
  26219. + :
  26220. fi
  26221. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26222. - conftest$ac_exeext conftest.$ac_ext
  26223. -LIBS=$ac_check_lib_save_LIBS
  26224. fi
  26225. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  26226. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  26227. -if test $ac_cv_lib_dld_shl_load = yes; then
  26228. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  26229. -else
  26230. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  26231. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  26232. -if test "${ac_cv_func_dlopen+set}" = set; then
  26233. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26234. -else
  26235. - cat >conftest.$ac_ext <<_ACEOF
  26236. -/* confdefs.h. */
  26237. -_ACEOF
  26238. -cat confdefs.h >>conftest.$ac_ext
  26239. -cat >>conftest.$ac_ext <<_ACEOF
  26240. -/* end confdefs.h. */
  26241. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  26242. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  26243. -#define dlopen innocuous_dlopen
  26244. -/* System header to define __stub macros and hopefully few prototypes,
  26245. - which can conflict with char dlopen (); below.
  26246. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  26247. - <limits.h> exists even on freestanding compilers. */
  26248. -#ifdef __STDC__
  26249. -# include <limits.h>
  26250. -#else
  26251. -# include <assert.h>
  26252. -#endif
  26253. -#undef dlopen
  26254. -/* Override any GCC internal prototype to avoid an error.
  26255. - Use char because int might match the return type of a GCC
  26256. - builtin and then its argument prototype would still apply. */
  26257. -#ifdef __cplusplus
  26258. -extern "C"
  26259. -#endif
  26260. -char dlopen ();
  26261. -/* The GNU C library defines this for functions which it implements
  26262. - to always fail with ENOSYS. Some functions are actually named
  26263. - something starting with __ and the normal name is an alias. */
  26264. -#if defined __stub_dlopen || defined __stub___dlopen
  26265. -choke me
  26266. -#endif
  26267. -
  26268. -int
  26269. -main ()
  26270. -{
  26271. -return dlopen ();
  26272. - ;
  26273. - return 0;
  26274. -}
  26275. -_ACEOF
  26276. -rm -f conftest.$ac_objext conftest$ac_exeext
  26277. -if { (ac_try="$ac_link"
  26278. -case "(($ac_try" in
  26279. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26280. - *) ac_try_echo=$ac_try;;
  26281. -esac
  26282. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26283. - (eval "$ac_link") 2>conftest.er1
  26284. - ac_status=$?
  26285. - grep -v '^ *+' conftest.er1 >conftest.err
  26286. - rm -f conftest.er1
  26287. - cat conftest.err >&5
  26288. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26289. - (exit $ac_status); } && {
  26290. - test -z "$ac_c_werror_flag" ||
  26291. - test ! -s conftest.err
  26292. - } && test -s conftest$ac_exeext &&
  26293. - $as_test_x conftest$ac_exeext; then
  26294. - ac_cv_func_dlopen=yes
  26295. -else
  26296. - echo "$as_me: failed program was:" >&5
  26297. -sed 's/^/| /' conftest.$ac_ext >&5
  26298. -
  26299. - ac_cv_func_dlopen=no
  26300. -fi
  26301. -
  26302. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26303. - conftest$ac_exeext conftest.$ac_ext
  26304. -fi
  26305. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  26306. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  26307. -if test $ac_cv_func_dlopen = yes; then
  26308. - lt_cv_dlopen="dlopen"
  26309. -else
  26310. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  26311. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  26312. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  26313. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26314. -else
  26315. - ac_check_lib_save_LIBS=$LIBS
  26316. -LIBS="-ldl $LIBS"
  26317. -cat >conftest.$ac_ext <<_ACEOF
  26318. -/* confdefs.h. */
  26319. -_ACEOF
  26320. -cat confdefs.h >>conftest.$ac_ext
  26321. -cat >>conftest.$ac_ext <<_ACEOF
  26322. -/* end confdefs.h. */
  26323. -
  26324. -/* Override any GCC internal prototype to avoid an error.
  26325. - Use char because int might match the return type of a GCC
  26326. - builtin and then its argument prototype would still apply. */
  26327. -#ifdef __cplusplus
  26328. -extern "C"
  26329. -#endif
  26330. -char dlopen ();
  26331. -int
  26332. -main ()
  26333. -{
  26334. -return dlopen ();
  26335. - ;
  26336. - return 0;
  26337. -}
  26338. -_ACEOF
  26339. -rm -f conftest.$ac_objext conftest$ac_exeext
  26340. -if { (ac_try="$ac_link"
  26341. -case "(($ac_try" in
  26342. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26343. - *) ac_try_echo=$ac_try;;
  26344. -esac
  26345. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26346. - (eval "$ac_link") 2>conftest.er1
  26347. - ac_status=$?
  26348. - grep -v '^ *+' conftest.er1 >conftest.err
  26349. - rm -f conftest.er1
  26350. - cat conftest.err >&5
  26351. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26352. - (exit $ac_status); } && {
  26353. - test -z "$ac_c_werror_flag" ||
  26354. - test ! -s conftest.err
  26355. - } && test -s conftest$ac_exeext &&
  26356. - $as_test_x conftest$ac_exeext; then
  26357. - ac_cv_lib_dl_dlopen=yes
  26358. -else
  26359. - echo "$as_me: failed program was:" >&5
  26360. -sed 's/^/| /' conftest.$ac_ext >&5
  26361. -
  26362. - ac_cv_lib_dl_dlopen=no
  26363. -fi
  26364. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26365. - conftest$ac_exeext conftest.$ac_ext
  26366. -LIBS=$ac_check_lib_save_LIBS
  26367. -fi
  26368. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  26369. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  26370. -if test $ac_cv_lib_dl_dlopen = yes; then
  26371. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  26372. -else
  26373. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  26374. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  26375. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  26376. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26377. -else
  26378. - ac_check_lib_save_LIBS=$LIBS
  26379. -LIBS="-lsvld $LIBS"
  26380. -cat >conftest.$ac_ext <<_ACEOF
  26381. -/* confdefs.h. */
  26382. -_ACEOF
  26383. -cat confdefs.h >>conftest.$ac_ext
  26384. -cat >>conftest.$ac_ext <<_ACEOF
  26385. -/* end confdefs.h. */
  26386. -
  26387. -/* Override any GCC internal prototype to avoid an error.
  26388. - Use char because int might match the return type of a GCC
  26389. - builtin and then its argument prototype would still apply. */
  26390. -#ifdef __cplusplus
  26391. -extern "C"
  26392. -#endif
  26393. -char dlopen ();
  26394. -int
  26395. -main ()
  26396. -{
  26397. -return dlopen ();
  26398. - ;
  26399. - return 0;
  26400. -}
  26401. -_ACEOF
  26402. -rm -f conftest.$ac_objext conftest$ac_exeext
  26403. -if { (ac_try="$ac_link"
  26404. -case "(($ac_try" in
  26405. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26406. - *) ac_try_echo=$ac_try;;
  26407. -esac
  26408. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26409. - (eval "$ac_link") 2>conftest.er1
  26410. - ac_status=$?
  26411. - grep -v '^ *+' conftest.er1 >conftest.err
  26412. - rm -f conftest.er1
  26413. - cat conftest.err >&5
  26414. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26415. - (exit $ac_status); } && {
  26416. - test -z "$ac_c_werror_flag" ||
  26417. - test ! -s conftest.err
  26418. - } && test -s conftest$ac_exeext &&
  26419. - $as_test_x conftest$ac_exeext; then
  26420. - ac_cv_lib_svld_dlopen=yes
  26421. -else
  26422. - echo "$as_me: failed program was:" >&5
  26423. -sed 's/^/| /' conftest.$ac_ext >&5
  26424. -
  26425. - ac_cv_lib_svld_dlopen=no
  26426. -fi
  26427. -
  26428. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26429. - conftest$ac_exeext conftest.$ac_ext
  26430. -LIBS=$ac_check_lib_save_LIBS
  26431. -fi
  26432. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  26433. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  26434. -if test $ac_cv_lib_svld_dlopen = yes; then
  26435. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  26436. -else
  26437. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  26438. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  26439. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  26440. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26441. -else
  26442. - ac_check_lib_save_LIBS=$LIBS
  26443. -LIBS="-ldld $LIBS"
  26444. -cat >conftest.$ac_ext <<_ACEOF
  26445. -/* confdefs.h. */
  26446. -_ACEOF
  26447. -cat confdefs.h >>conftest.$ac_ext
  26448. -cat >>conftest.$ac_ext <<_ACEOF
  26449. -/* end confdefs.h. */
  26450. -
  26451. -/* Override any GCC internal prototype to avoid an error.
  26452. - Use char because int might match the return type of a GCC
  26453. - builtin and then its argument prototype would still apply. */
  26454. -#ifdef __cplusplus
  26455. -extern "C"
  26456. -#endif
  26457. -char dld_link ();
  26458. -int
  26459. -main ()
  26460. -{
  26461. -return dld_link ();
  26462. - ;
  26463. - return 0;
  26464. -}
  26465. -_ACEOF
  26466. -rm -f conftest.$ac_objext conftest$ac_exeext
  26467. -if { (ac_try="$ac_link"
  26468. -case "(($ac_try" in
  26469. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26470. - *) ac_try_echo=$ac_try;;
  26471. -esac
  26472. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26473. - (eval "$ac_link") 2>conftest.er1
  26474. - ac_status=$?
  26475. - grep -v '^ *+' conftest.er1 >conftest.err
  26476. - rm -f conftest.er1
  26477. - cat conftest.err >&5
  26478. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26479. - (exit $ac_status); } && {
  26480. - test -z "$ac_c_werror_flag" ||
  26481. - test ! -s conftest.err
  26482. - } && test -s conftest$ac_exeext &&
  26483. - $as_test_x conftest$ac_exeext; then
  26484. - ac_cv_lib_dld_dld_link=yes
  26485. -else
  26486. - echo "$as_me: failed program was:" >&5
  26487. -sed 's/^/| /' conftest.$ac_ext >&5
  26488. - ac_cv_lib_dld_dld_link=no
  26489. -fi
  26490. + lt_prog_compiler_wl=
  26491. +lt_prog_compiler_pic=
  26492. +lt_prog_compiler_static=
  26493. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26494. - conftest$ac_exeext conftest.$ac_ext
  26495. -LIBS=$ac_check_lib_save_LIBS
  26496. -fi
  26497. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  26498. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  26499. -if test $ac_cv_lib_dld_dld_link = yes; then
  26500. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  26501. -fi
  26502. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  26503. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  26504. + if test "$GCC" = yes; then
  26505. + lt_prog_compiler_wl='-Wl,'
  26506. + lt_prog_compiler_static='-static'
  26507. -fi
  26508. + case $host_os in
  26509. + aix*)
  26510. + # All AIX code is PIC.
  26511. + if test "$host_cpu" = ia64; then
  26512. + # AIX 5 now supports IA64 processor
  26513. + lt_prog_compiler_static='-Bstatic'
  26514. + fi
  26515. + ;;
  26516. + amigaos*)
  26517. + case $host_cpu in
  26518. + powerpc)
  26519. + # see comment about AmigaOS4 .so support
  26520. + lt_prog_compiler_pic='-fPIC'
  26521. + ;;
  26522. + m68k)
  26523. + # FIXME: we need at least 68020 code to build shared libraries, but
  26524. + # adding the `-m68020' flag to GCC prevents building anything better,
  26525. + # like `-m68040'.
  26526. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  26527. + ;;
  26528. + esac
  26529. + ;;
  26530. -fi
  26531. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26532. + # PIC is the default for these OSes.
  26533. + ;;
  26534. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  26535. + # This hack is so that the source file can tell whether it is being
  26536. + # built for inclusion in a dll (and should export symbols for example).
  26537. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  26538. + # (--disable-auto-import) libraries
  26539. + lt_prog_compiler_pic='-DDLL_EXPORT'
  26540. + ;;
  26541. -fi
  26542. + darwin* | rhapsody*)
  26543. + # PIC is the default on this platform
  26544. + # Common symbols not allowed in MH_DYLIB files
  26545. + lt_prog_compiler_pic='-fno-common'
  26546. + ;;
  26547. + hpux*)
  26548. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  26549. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  26550. + # sets the default TLS model and affects inlining.
  26551. + case $host_cpu in
  26552. + hppa*64*)
  26553. + # +Z the default
  26554. + ;;
  26555. + *)
  26556. + lt_prog_compiler_pic='-fPIC'
  26557. + ;;
  26558. + esac
  26559. + ;;
  26560. -fi
  26561. + interix[3-9]*)
  26562. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  26563. + # Instead, we relocate shared libraries at runtime.
  26564. + ;;
  26565. + msdosdjgpp*)
  26566. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  26567. + # on systems that don't support them.
  26568. + lt_prog_compiler_can_build_shared=no
  26569. + enable_shared=no
  26570. + ;;
  26571. -fi
  26572. + *nto* | *qnx*)
  26573. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  26574. + # it will coredump.
  26575. + lt_prog_compiler_pic='-fPIC -shared'
  26576. + ;;
  26577. - ;;
  26578. - esac
  26579. + sysv4*MP*)
  26580. + if test -d /usr/nec; then
  26581. + lt_prog_compiler_pic=-Kconform_pic
  26582. + fi
  26583. + ;;
  26584. - if test "x$lt_cv_dlopen" != xno; then
  26585. - enable_dlopen=yes
  26586. + *)
  26587. + lt_prog_compiler_pic='-fPIC'
  26588. + ;;
  26589. + esac
  26590. else
  26591. - enable_dlopen=no
  26592. - fi
  26593. + # PORTME Check for flag to pass linker flags through the system compiler.
  26594. + case $host_os in
  26595. + aix*)
  26596. + lt_prog_compiler_wl='-Wl,'
  26597. + if test "$host_cpu" = ia64; then
  26598. + # AIX 5 now supports IA64 processor
  26599. + lt_prog_compiler_static='-Bstatic'
  26600. + else
  26601. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  26602. + fi
  26603. + ;;
  26604. - case $lt_cv_dlopen in
  26605. - dlopen)
  26606. - save_CPPFLAGS="$CPPFLAGS"
  26607. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  26608. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  26609. + # This hack is so that the source file can tell whether it is being
  26610. + # built for inclusion in a dll (and should export symbols for example).
  26611. + lt_prog_compiler_pic='-DDLL_EXPORT'
  26612. + ;;
  26613. - save_LDFLAGS="$LDFLAGS"
  26614. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  26615. + hpux9* | hpux10* | hpux11*)
  26616. + lt_prog_compiler_wl='-Wl,'
  26617. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26618. + # not for PA HP-UX.
  26619. + case $host_cpu in
  26620. + hppa*64*|ia64*)
  26621. + # +Z the default
  26622. + ;;
  26623. + *)
  26624. + lt_prog_compiler_pic='+Z'
  26625. + ;;
  26626. + esac
  26627. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  26628. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  26629. + ;;
  26630. - save_LIBS="$LIBS"
  26631. - LIBS="$lt_cv_dlopen_libs $LIBS"
  26632. + irix5* | irix6* | nonstopux*)
  26633. + lt_prog_compiler_wl='-Wl,'
  26634. + # PIC (with -KPIC) is the default.
  26635. + lt_prog_compiler_static='-non_shared'
  26636. + ;;
  26637. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  26638. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  26639. -if test "${lt_cv_dlopen_self+set}" = set; then
  26640. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26641. -else
  26642. - if test "$cross_compiling" = yes; then :
  26643. - lt_cv_dlopen_self=cross
  26644. -else
  26645. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26646. - lt_status=$lt_dlunknown
  26647. - cat > conftest.$ac_ext <<EOF
  26648. -#line 9814 "configure"
  26649. -#include "confdefs.h"
  26650. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  26651. + case $cc_basename in
  26652. + # old Intel for x86_64 which still supported -KPIC.
  26653. + ecc*)
  26654. + lt_prog_compiler_wl='-Wl,'
  26655. + lt_prog_compiler_pic='-KPIC'
  26656. + lt_prog_compiler_static='-static'
  26657. + ;;
  26658. + # icc used to be incompatible with GCC.
  26659. + # ICC 10 doesn't accept -KPIC any more.
  26660. + icc* | ifort*)
  26661. + lt_prog_compiler_wl='-Wl,'
  26662. + lt_prog_compiler_pic='-fPIC'
  26663. + lt_prog_compiler_static='-static'
  26664. + ;;
  26665. + # Lahey Fortran 8.1.
  26666. + lf95*)
  26667. + lt_prog_compiler_wl='-Wl,'
  26668. + lt_prog_compiler_pic='--shared'
  26669. + lt_prog_compiler_static='--static'
  26670. + ;;
  26671. + pgcc* | pgf77* | pgf90* | pgf95*)
  26672. + # Portland Group compilers (*not* the Pentium gcc compiler,
  26673. + # which looks to be a dead project)
  26674. + lt_prog_compiler_wl='-Wl,'
  26675. + lt_prog_compiler_pic='-fpic'
  26676. + lt_prog_compiler_static='-Bstatic'
  26677. + ;;
  26678. + ccc*)
  26679. + lt_prog_compiler_wl='-Wl,'
  26680. + # All Alpha code is PIC.
  26681. + lt_prog_compiler_static='-non_shared'
  26682. + ;;
  26683. + xl*)
  26684. + # IBM XL C 8.0/Fortran 10.1 on PPC
  26685. + lt_prog_compiler_wl='-Wl,'
  26686. + lt_prog_compiler_pic='-qpic'
  26687. + lt_prog_compiler_static='-qstaticlink'
  26688. + ;;
  26689. + *)
  26690. + case `$CC -V 2>&1 | sed 5q` in
  26691. + *Sun\ C*)
  26692. + # Sun C 5.9
  26693. + lt_prog_compiler_pic='-KPIC'
  26694. + lt_prog_compiler_static='-Bstatic'
  26695. + lt_prog_compiler_wl='-Wl,'
  26696. + ;;
  26697. + *Sun\ F*)
  26698. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  26699. + lt_prog_compiler_pic='-KPIC'
  26700. + lt_prog_compiler_static='-Bstatic'
  26701. + lt_prog_compiler_wl=''
  26702. + ;;
  26703. + esac
  26704. + ;;
  26705. + esac
  26706. + ;;
  26707. -#if HAVE_DLFCN_H
  26708. -#include <dlfcn.h>
  26709. -#endif
  26710. + newsos6)
  26711. + lt_prog_compiler_pic='-KPIC'
  26712. + lt_prog_compiler_static='-Bstatic'
  26713. + ;;
  26714. -#include <stdio.h>
  26715. + *nto* | *qnx*)
  26716. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  26717. + # it will coredump.
  26718. + lt_prog_compiler_pic='-fPIC -shared'
  26719. + ;;
  26720. -#ifdef RTLD_GLOBAL
  26721. -# define LT_DLGLOBAL RTLD_GLOBAL
  26722. -#else
  26723. -# ifdef DL_GLOBAL
  26724. -# define LT_DLGLOBAL DL_GLOBAL
  26725. -# else
  26726. -# define LT_DLGLOBAL 0
  26727. -# endif
  26728. -#endif
  26729. + osf3* | osf4* | osf5*)
  26730. + lt_prog_compiler_wl='-Wl,'
  26731. + # All OSF/1 code is PIC.
  26732. + lt_prog_compiler_static='-non_shared'
  26733. + ;;
  26734. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26735. - find out it does not work in some platform. */
  26736. -#ifndef LT_DLLAZY_OR_NOW
  26737. -# ifdef RTLD_LAZY
  26738. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26739. -# else
  26740. -# ifdef DL_LAZY
  26741. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26742. -# else
  26743. -# ifdef RTLD_NOW
  26744. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26745. -# else
  26746. -# ifdef DL_NOW
  26747. -# define LT_DLLAZY_OR_NOW DL_NOW
  26748. -# else
  26749. -# define LT_DLLAZY_OR_NOW 0
  26750. -# endif
  26751. -# endif
  26752. -# endif
  26753. -# endif
  26754. -#endif
  26755. + rdos*)
  26756. + lt_prog_compiler_static='-non_shared'
  26757. + ;;
  26758. -#ifdef __cplusplus
  26759. -extern "C" void exit (int);
  26760. -#endif
  26761. + solaris*)
  26762. + lt_prog_compiler_pic='-KPIC'
  26763. + lt_prog_compiler_static='-Bstatic'
  26764. + case $cc_basename in
  26765. + f77* | f90* | f95*)
  26766. + lt_prog_compiler_wl='-Qoption ld ';;
  26767. + *)
  26768. + lt_prog_compiler_wl='-Wl,';;
  26769. + esac
  26770. + ;;
  26771. -void fnord() { int i=42;}
  26772. -int main ()
  26773. -{
  26774. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26775. - int status = $lt_dlunknown;
  26776. + sunos4*)
  26777. + lt_prog_compiler_wl='-Qoption ld '
  26778. + lt_prog_compiler_pic='-PIC'
  26779. + lt_prog_compiler_static='-Bstatic'
  26780. + ;;
  26781. - if (self)
  26782. - {
  26783. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26784. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26785. - /* dlclose (self); */
  26786. - }
  26787. - else
  26788. - puts (dlerror ());
  26789. + sysv4 | sysv4.2uw2* | sysv4.3*)
  26790. + lt_prog_compiler_wl='-Wl,'
  26791. + lt_prog_compiler_pic='-KPIC'
  26792. + lt_prog_compiler_static='-Bstatic'
  26793. + ;;
  26794. - exit (status);
  26795. -}
  26796. -EOF
  26797. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26798. - (eval $ac_link) 2>&5
  26799. - ac_status=$?
  26800. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26801. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26802. - (./conftest; exit; ) >&5 2>/dev/null
  26803. - lt_status=$?
  26804. - case x$lt_status in
  26805. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  26806. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  26807. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  26808. + sysv4*MP*)
  26809. + if test -d /usr/nec ;then
  26810. + lt_prog_compiler_pic='-Kconform_pic'
  26811. + lt_prog_compiler_static='-Bstatic'
  26812. + fi
  26813. + ;;
  26814. +
  26815. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  26816. + lt_prog_compiler_wl='-Wl,'
  26817. + lt_prog_compiler_pic='-KPIC'
  26818. + lt_prog_compiler_static='-Bstatic'
  26819. + ;;
  26820. +
  26821. + unicos*)
  26822. + lt_prog_compiler_wl='-Wl,'
  26823. + lt_prog_compiler_can_build_shared=no
  26824. + ;;
  26825. +
  26826. + uts4*)
  26827. + lt_prog_compiler_pic='-pic'
  26828. + lt_prog_compiler_static='-Bstatic'
  26829. + ;;
  26830. +
  26831. + *)
  26832. + lt_prog_compiler_can_build_shared=no
  26833. + ;;
  26834. esac
  26835. - else :
  26836. - # compilation failed
  26837. - lt_cv_dlopen_self=no
  26838. fi
  26839. -fi
  26840. -rm -fr conftest*
  26841. +case $host_os in
  26842. + # For platforms which do not support PIC, -DPIC is meaningless:
  26843. + *djgpp*)
  26844. + lt_prog_compiler_pic=
  26845. + ;;
  26846. + *)
  26847. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  26848. + ;;
  26849. +esac
  26850. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  26851. +$as_echo "$lt_prog_compiler_pic" >&6; }
  26852. +
  26853. +
  26854. +
  26855. +
  26856. +
  26857. +
  26858. +#
  26859. +# Check to make sure the PIC flag actually works.
  26860. +#
  26861. +if test -n "$lt_prog_compiler_pic"; then
  26862. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  26863. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  26864. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  26865. + $as_echo_n "(cached) " >&6
  26866. +else
  26867. + lt_cv_prog_compiler_pic_works=no
  26868. + ac_outfile=conftest.$ac_objext
  26869. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26870. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  26871. + # Insert the option either (1) after the last *FLAGS variable, or
  26872. + # (2) before a word containing "conftest.", or (3) at the end.
  26873. + # Note that $ac_compile itself does not contain backslashes and begins
  26874. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  26875. + # The option is referenced via a variable to avoid confusing sed.
  26876. + lt_compile=`echo "$ac_compile" | $SED \
  26877. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26878. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26879. + -e 's:$: $lt_compiler_flag:'`
  26880. + (eval echo "\"\$as_me:7665: $lt_compile\"" >&5)
  26881. + (eval "$lt_compile" 2>conftest.err)
  26882. + ac_status=$?
  26883. + cat conftest.err >&5
  26884. + echo "$as_me:7669: \$? = $ac_status" >&5
  26885. + if (exit $ac_status) && test -s "$ac_outfile"; then
  26886. + # The compiler can only warn and ignore the option if not recognized
  26887. + # So say no if there are warnings other than the usual output.
  26888. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26889. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26890. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26891. + lt_cv_prog_compiler_pic_works=yes
  26892. + fi
  26893. + fi
  26894. + $RM conftest*
  26895. fi
  26896. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  26897. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  26898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  26899. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  26900. - if test "x$lt_cv_dlopen_self" = xyes; then
  26901. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  26902. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  26903. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  26904. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  26905. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26906. -else
  26907. - if test "$cross_compiling" = yes; then :
  26908. - lt_cv_dlopen_self_static=cross
  26909. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  26910. + case $lt_prog_compiler_pic in
  26911. + "" | " "*) ;;
  26912. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  26913. + esac
  26914. else
  26915. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26916. - lt_status=$lt_dlunknown
  26917. - cat > conftest.$ac_ext <<EOF
  26918. -#line 9914 "configure"
  26919. -#include "confdefs.h"
  26920. + lt_prog_compiler_pic=
  26921. + lt_prog_compiler_can_build_shared=no
  26922. +fi
  26923. -#if HAVE_DLFCN_H
  26924. -#include <dlfcn.h>
  26925. -#endif
  26926. +fi
  26927. -#include <stdio.h>
  26928. -#ifdef RTLD_GLOBAL
  26929. -# define LT_DLGLOBAL RTLD_GLOBAL
  26930. -#else
  26931. -# ifdef DL_GLOBAL
  26932. -# define LT_DLGLOBAL DL_GLOBAL
  26933. -# else
  26934. -# define LT_DLGLOBAL 0
  26935. -# endif
  26936. -#endif
  26937. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26938. - find out it does not work in some platform. */
  26939. -#ifndef LT_DLLAZY_OR_NOW
  26940. -# ifdef RTLD_LAZY
  26941. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26942. -# else
  26943. -# ifdef DL_LAZY
  26944. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26945. -# else
  26946. -# ifdef RTLD_NOW
  26947. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26948. -# else
  26949. -# ifdef DL_NOW
  26950. -# define LT_DLLAZY_OR_NOW DL_NOW
  26951. -# else
  26952. -# define LT_DLLAZY_OR_NOW 0
  26953. -# endif
  26954. -# endif
  26955. -# endif
  26956. -# endif
  26957. -#endif
  26958. -#ifdef __cplusplus
  26959. -extern "C" void exit (int);
  26960. -#endif
  26961. -void fnord() { int i=42;}
  26962. -int main ()
  26963. -{
  26964. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26965. - int status = $lt_dlunknown;
  26966. - if (self)
  26967. - {
  26968. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26969. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26970. - /* dlclose (self); */
  26971. - }
  26972. - else
  26973. - puts (dlerror ());
  26974. -
  26975. - exit (status);
  26976. -}
  26977. -EOF
  26978. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26979. - (eval $ac_link) 2>&5
  26980. - ac_status=$?
  26981. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26982. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26983. - (./conftest; exit; ) >&5 2>/dev/null
  26984. - lt_status=$?
  26985. - case x$lt_status in
  26986. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  26987. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  26988. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  26989. - esac
  26990. - else :
  26991. - # compilation failed
  26992. - lt_cv_dlopen_self_static=no
  26993. - fi
  26994. -fi
  26995. -rm -fr conftest*
  26996. -
  26997. -
  26998. -fi
  26999. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  27000. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  27001. - fi
  27002. -
  27003. - CPPFLAGS="$save_CPPFLAGS"
  27004. - LDFLAGS="$save_LDFLAGS"
  27005. - LIBS="$save_LIBS"
  27006. - ;;
  27007. - esac
  27008. -
  27009. - case $lt_cv_dlopen_self in
  27010. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  27011. - *) enable_dlopen_self=unknown ;;
  27012. - esac
  27013. -
  27014. - case $lt_cv_dlopen_self_static in
  27015. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  27016. - *) enable_dlopen_self_static=unknown ;;
  27017. - esac
  27018. -fi
  27019. -
  27020. -
  27021. -# Report which library types will actually be built
  27022. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  27023. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  27024. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  27025. -echo "${ECHO_T}$can_build_shared" >&6; }
  27026. -
  27027. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  27028. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  27029. -test "$can_build_shared" = "no" && enable_shared=no
  27030. -
  27031. -# On AIX, shared libraries and static libraries use the same namespace, and
  27032. -# are all built from PIC.
  27033. -case $host_os in
  27034. -aix3*)
  27035. - test "$enable_shared" = yes && enable_static=no
  27036. - if test -n "$RANLIB"; then
  27037. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  27038. - postinstall_cmds='$RANLIB $lib'
  27039. - fi
  27040. - ;;
  27041. -
  27042. -aix4* | aix5*)
  27043. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  27044. - test "$enable_shared" = yes && enable_static=no
  27045. - fi
  27046. - ;;
  27047. -esac
  27048. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  27049. -echo "${ECHO_T}$enable_shared" >&6; }
  27050. -
  27051. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  27052. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  27053. -# Make sure either enable_shared or enable_static is yes.
  27054. -test "$enable_shared" = yes || enable_static=yes
  27055. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  27056. -echo "${ECHO_T}$enable_static" >&6; }
  27057. -
  27058. -# The else clause should only fire when bootstrapping the
  27059. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  27060. -# with your package, and you will get complaints that there are
  27061. -# no rules to generate ltmain.sh.
  27062. -if test -f "$ltmain"; then
  27063. - # See if we are running on zsh, and set the options which allow our commands through
  27064. - # without removal of \ escapes.
  27065. - if test -n "${ZSH_VERSION+set}" ; then
  27066. - setopt NO_GLOB_SUBST
  27067. - fi
  27068. - # Now quote all the things that may contain metacharacters while being
  27069. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  27070. - # variables and quote the copies for generation of the libtool script.
  27071. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  27072. - SED SHELL STRIP \
  27073. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  27074. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  27075. - deplibs_check_method reload_flag reload_cmds need_locks \
  27076. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  27077. - lt_cv_sys_global_symbol_to_c_name_address \
  27078. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  27079. - old_postinstall_cmds old_postuninstall_cmds \
  27080. - compiler \
  27081. - CC \
  27082. - LD \
  27083. - lt_prog_compiler_wl \
  27084. - lt_prog_compiler_pic \
  27085. - lt_prog_compiler_static \
  27086. - lt_prog_compiler_no_builtin_flag \
  27087. - export_dynamic_flag_spec \
  27088. - thread_safe_flag_spec \
  27089. - whole_archive_flag_spec \
  27090. - enable_shared_with_static_runtimes \
  27091. - old_archive_cmds \
  27092. - old_archive_from_new_cmds \
  27093. - predep_objects \
  27094. - postdep_objects \
  27095. - predeps \
  27096. - postdeps \
  27097. - compiler_lib_search_path \
  27098. - archive_cmds \
  27099. - archive_expsym_cmds \
  27100. - postinstall_cmds \
  27101. - postuninstall_cmds \
  27102. - old_archive_from_expsyms_cmds \
  27103. - allow_undefined_flag \
  27104. - no_undefined_flag \
  27105. - export_symbols_cmds \
  27106. - hardcode_libdir_flag_spec \
  27107. - hardcode_libdir_flag_spec_ld \
  27108. - hardcode_libdir_separator \
  27109. - hardcode_automatic \
  27110. - module_cmds \
  27111. - module_expsym_cmds \
  27112. - lt_cv_prog_compiler_c_o \
  27113. - exclude_expsyms \
  27114. - include_expsyms; do
  27115. -
  27116. - case $var in
  27117. - old_archive_cmds | \
  27118. - old_archive_from_new_cmds | \
  27119. - archive_cmds | \
  27120. - archive_expsym_cmds | \
  27121. - module_cmds | \
  27122. - module_expsym_cmds | \
  27123. - old_archive_from_expsyms_cmds | \
  27124. - export_symbols_cmds | \
  27125. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  27126. - postinstall_cmds | postuninstall_cmds | \
  27127. - old_postinstall_cmds | old_postuninstall_cmds | \
  27128. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  27129. - # Double-quote double-evaled strings.
  27130. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  27131. - ;;
  27132. - *)
  27133. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  27134. - ;;
  27135. - esac
  27136. - done
  27137. -
  27138. - case $lt_echo in
  27139. - *'\$0 --fallback-echo"')
  27140. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  27141. - ;;
  27142. - esac
  27143. -
  27144. -cfgfile="${ofile}T"
  27145. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  27146. - $rm -f "$cfgfile"
  27147. - { echo "$as_me:$LINENO: creating $ofile" >&5
  27148. -echo "$as_me: creating $ofile" >&6;}
  27149. -
  27150. - cat <<__EOF__ >> "$cfgfile"
  27151. -#! $SHELL
  27152. -
  27153. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  27154. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  27155. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27156. -#
  27157. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  27158. -# Free Software Foundation, Inc.
  27159. #
  27160. -# This file is part of GNU Libtool:
  27161. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  27162. -#
  27163. -# This program is free software; you can redistribute it and/or modify
  27164. -# it under the terms of the GNU General Public License as published by
  27165. -# the Free Software Foundation; either version 2 of the License, or
  27166. -# (at your option) any later version.
  27167. -#
  27168. -# This program is distributed in the hope that it will be useful, but
  27169. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  27170. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  27171. -# General Public License for more details.
  27172. -#
  27173. -# You should have received a copy of the GNU General Public License
  27174. -# along with this program; if not, write to the Free Software
  27175. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27176. +# Check to make sure the static flag actually works.
  27177. #
  27178. -# As a special exception to the GNU General Public License, if you
  27179. -# distribute this file as part of a program that contains a
  27180. -# configuration script generated by Autoconf, you may include it under
  27181. -# the same distribution terms that you use for the rest of that program.
  27182. -
  27183. -# A sed program that does not truncate output.
  27184. -SED=$lt_SED
  27185. -
  27186. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27187. -Xsed="$SED -e 1s/^X//"
  27188. -
  27189. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  27190. -# if CDPATH is set.
  27191. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27192. -
  27193. -# The names of the tagged configurations supported by this script.
  27194. -available_tags=
  27195. -
  27196. -# ### BEGIN LIBTOOL CONFIG
  27197. -
  27198. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27199. -
  27200. -# Shell to use when invoking shell scripts.
  27201. -SHELL=$lt_SHELL
  27202. -
  27203. -# Whether or not to build shared libraries.
  27204. -build_libtool_libs=$enable_shared
  27205. -
  27206. -# Whether or not to build static libraries.
  27207. -build_old_libs=$enable_static
  27208. -
  27209. -# Whether or not to add -lc for building shared libraries.
  27210. -build_libtool_need_lc=$archive_cmds_need_lc
  27211. -
  27212. -# Whether or not to disallow shared libs when runtime libs are static
  27213. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27214. -
  27215. -# Whether or not to optimize for fast installation.
  27216. -fast_install=$enable_fast_install
  27217. -
  27218. -# The host system.
  27219. -host_alias=$host_alias
  27220. -host=$host
  27221. -host_os=$host_os
  27222. -
  27223. -# The build system.
  27224. -build_alias=$build_alias
  27225. -build=$build
  27226. -build_os=$build_os
  27227. -
  27228. -# An echo program that does not interpret backslashes.
  27229. -echo=$lt_echo
  27230. -
  27231. -# The archiver.
  27232. -AR=$lt_AR
  27233. -AR_FLAGS=$lt_AR_FLAGS
  27234. -
  27235. -# A C compiler.
  27236. -LTCC=$lt_LTCC
  27237. -
  27238. -# LTCC compiler flags.
  27239. -LTCFLAGS=$lt_LTCFLAGS
  27240. -
  27241. -# A language-specific compiler.
  27242. -CC=$lt_compiler
  27243. -
  27244. -# Is the compiler the GNU C compiler?
  27245. -with_gcc=$GCC
  27246. -
  27247. -# An ERE matcher.
  27248. -EGREP=$lt_EGREP
  27249. -
  27250. -# The linker used to build libraries.
  27251. -LD=$lt_LD
  27252. -
  27253. -# Whether we need hard or soft links.
  27254. -LN_S=$lt_LN_S
  27255. -
  27256. -# A BSD-compatible nm program.
  27257. -NM=$lt_NM
  27258. -
  27259. -# A symbol stripping program
  27260. -STRIP=$lt_STRIP
  27261. -
  27262. -# Used to examine libraries when file_magic_cmd begins "file"
  27263. -MAGIC_CMD=$MAGIC_CMD
  27264. -
  27265. -# Used on cygwin: DLL creation program.
  27266. -DLLTOOL="$DLLTOOL"
  27267. -
  27268. -# Used on cygwin: object dumper.
  27269. -OBJDUMP="$OBJDUMP"
  27270. -
  27271. -# Used on cygwin: assembler.
  27272. -AS="$AS"
  27273. -
  27274. -# The name of the directory that contains temporary libtool files.
  27275. -objdir=$objdir
  27276. -
  27277. -# How to create reloadable object files.
  27278. -reload_flag=$lt_reload_flag
  27279. -reload_cmds=$lt_reload_cmds
  27280. -
  27281. -# How to pass a linker flag through the compiler.
  27282. -wl=$lt_lt_prog_compiler_wl
  27283. -
  27284. -# Object file suffix (normally "o").
  27285. -objext="$ac_objext"
  27286. -
  27287. -# Old archive suffix (normally "a").
  27288. -libext="$libext"
  27289. -
  27290. -# Shared library suffix (normally ".so").
  27291. -shrext_cmds='$shrext_cmds'
  27292. -
  27293. -# Executable file suffix (normally "").
  27294. -exeext="$exeext"
  27295. -
  27296. -# Additional compiler flags for building library objects.
  27297. -pic_flag=$lt_lt_prog_compiler_pic
  27298. -pic_mode=$pic_mode
  27299. -
  27300. -# What is the maximum length of a command?
  27301. -max_cmd_len=$lt_cv_sys_max_cmd_len
  27302. -
  27303. -# Does compiler simultaneously support -c and -o options?
  27304. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27305. -
  27306. -# Must we lock files when doing compilation?
  27307. -need_locks=$lt_need_locks
  27308. -
  27309. -# Do we need the lib prefix for modules?
  27310. -need_lib_prefix=$need_lib_prefix
  27311. -
  27312. -# Do we need a version for libraries?
  27313. -need_version=$need_version
  27314. -
  27315. -# Whether dlopen is supported.
  27316. -dlopen_support=$enable_dlopen
  27317. -
  27318. -# Whether dlopen of programs is supported.
  27319. -dlopen_self=$enable_dlopen_self
  27320. -
  27321. -# Whether dlopen of statically linked programs is supported.
  27322. -dlopen_self_static=$enable_dlopen_self_static
  27323. -
  27324. -# Compiler flag to prevent dynamic linking.
  27325. -link_static_flag=$lt_lt_prog_compiler_static
  27326. -
  27327. -# Compiler flag to turn off builtin functions.
  27328. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27329. -
  27330. -# Compiler flag to allow reflexive dlopens.
  27331. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27332. -
  27333. -# Compiler flag to generate shared objects directly from archives.
  27334. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27335. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  27336. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  27337. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  27338. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  27339. + $as_echo_n "(cached) " >&6
  27340. +else
  27341. + lt_cv_prog_compiler_static_works=no
  27342. + save_LDFLAGS="$LDFLAGS"
  27343. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  27344. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  27345. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  27346. + # The linker can only warn and ignore the option if not recognized
  27347. + # So say no if there are warnings
  27348. + if test -s conftest.err; then
  27349. + # Append any errors to the config.log.
  27350. + cat conftest.err 1>&5
  27351. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  27352. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27353. + if diff conftest.exp conftest.er2 >/dev/null; then
  27354. + lt_cv_prog_compiler_static_works=yes
  27355. + fi
  27356. + else
  27357. + lt_cv_prog_compiler_static_works=yes
  27358. + fi
  27359. + fi
  27360. + $RM -r conftest*
  27361. + LDFLAGS="$save_LDFLAGS"
  27362. -# Compiler flag to generate thread-safe objects.
  27363. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  27364. +fi
  27365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  27366. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  27367. -# Library versioning type.
  27368. -version_type=$version_type
  27369. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  27370. + :
  27371. +else
  27372. + lt_prog_compiler_static=
  27373. +fi
  27374. -# Format of library name prefix.
  27375. -libname_spec=$lt_libname_spec
  27376. -# List of archive names. First name is the real one, the rest are links.
  27377. -# The last name is the one that the linker finds with -lNAME.
  27378. -library_names_spec=$lt_library_names_spec
  27379. -# The coded name of the library, if different from the real name.
  27380. -soname_spec=$lt_soname_spec
  27381. -# Commands used to build and install an old-style archive.
  27382. -RANLIB=$lt_RANLIB
  27383. -old_archive_cmds=$lt_old_archive_cmds
  27384. -old_postinstall_cmds=$lt_old_postinstall_cmds
  27385. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27386. -# Create an old-style archive from a shared archive.
  27387. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27388. -# Create a temporary old-style archive to link instead of a shared archive.
  27389. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27390. -# Commands used to build and install a shared archive.
  27391. -archive_cmds=$lt_archive_cmds
  27392. -archive_expsym_cmds=$lt_archive_expsym_cmds
  27393. -postinstall_cmds=$lt_postinstall_cmds
  27394. -postuninstall_cmds=$lt_postuninstall_cmds
  27395. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  27396. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  27397. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  27398. + $as_echo_n "(cached) " >&6
  27399. +else
  27400. + lt_cv_prog_compiler_c_o=no
  27401. + $RM -r conftest 2>/dev/null
  27402. + mkdir conftest
  27403. + cd conftest
  27404. + mkdir out
  27405. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27406. -# Commands used to build a loadable module (assumed same as above if empty)
  27407. -module_cmds=$lt_module_cmds
  27408. -module_expsym_cmds=$lt_module_expsym_cmds
  27409. -
  27410. -# Commands to strip libraries.
  27411. -old_striplib=$lt_old_striplib
  27412. -striplib=$lt_striplib
  27413. -
  27414. -# Dependencies to place before the objects being linked to create a
  27415. -# shared library.
  27416. -predep_objects=$lt_predep_objects
  27417. -
  27418. -# Dependencies to place after the objects being linked to create a
  27419. -# shared library.
  27420. -postdep_objects=$lt_postdep_objects
  27421. -
  27422. -# Dependencies to place before the objects being linked to create a
  27423. -# shared library.
  27424. -predeps=$lt_predeps
  27425. -
  27426. -# Dependencies to place after the objects being linked to create a
  27427. -# shared library.
  27428. -postdeps=$lt_postdeps
  27429. -
  27430. -# The library search path used internally by the compiler when linking
  27431. -# a shared library.
  27432. -compiler_lib_search_path=$lt_compiler_lib_search_path
  27433. -
  27434. -# Method to check whether dependent libraries are shared objects.
  27435. -deplibs_check_method=$lt_deplibs_check_method
  27436. -
  27437. -# Command to use when deplibs_check_method == file_magic.
  27438. -file_magic_cmd=$lt_file_magic_cmd
  27439. -
  27440. -# Flag that allows shared libraries with undefined symbols to be built.
  27441. -allow_undefined_flag=$lt_allow_undefined_flag
  27442. -
  27443. -# Flag that forces no undefined symbols.
  27444. -no_undefined_flag=$lt_no_undefined_flag
  27445. -
  27446. -# Commands used to finish a libtool library installation in a directory.
  27447. -finish_cmds=$lt_finish_cmds
  27448. -
  27449. -# Same as above, but a single script fragment to be evaled but not shown.
  27450. -finish_eval=$lt_finish_eval
  27451. -
  27452. -# Take the output of nm and produce a listing of raw symbols and C names.
  27453. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27454. -
  27455. -# Transform the output of nm in a proper C declaration
  27456. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27457. -
  27458. -# Transform the output of nm in a C name address pair
  27459. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27460. -
  27461. -# This is the shared library runtime path variable.
  27462. -runpath_var=$runpath_var
  27463. -
  27464. -# This is the shared library path variable.
  27465. -shlibpath_var=$shlibpath_var
  27466. -
  27467. -# Is shlibpath searched before the hard-coded library search path?
  27468. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27469. -
  27470. -# How to hardcode a shared library path into an executable.
  27471. -hardcode_action=$hardcode_action
  27472. -
  27473. -# Whether we should hardcode library paths into libraries.
  27474. -hardcode_into_libs=$hardcode_into_libs
  27475. -
  27476. -# Flag to hardcode \$libdir into a binary during linking.
  27477. -# This must work even if \$libdir does not exist.
  27478. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27479. -
  27480. -# If ld is used when linking, flag to hardcode \$libdir into
  27481. -# a binary during linking. This must work even if \$libdir does
  27482. -# not exist.
  27483. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  27484. -
  27485. -# Whether we need a single -rpath flag with a separated argument.
  27486. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27487. -
  27488. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  27489. -# resulting binary.
  27490. -hardcode_direct=$hardcode_direct
  27491. -
  27492. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  27493. -# resulting binary.
  27494. -hardcode_minus_L=$hardcode_minus_L
  27495. -
  27496. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  27497. -# the resulting binary.
  27498. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  27499. -
  27500. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  27501. -# and all subsequent libraries and executables linked against it.
  27502. -hardcode_automatic=$hardcode_automatic
  27503. -
  27504. -# Variables whose values should be saved in libtool wrapper scripts and
  27505. -# restored at relink time.
  27506. -variables_saved_for_relink="$variables_saved_for_relink"
  27507. -
  27508. -# Whether libtool must link a program against all its dependency libraries.
  27509. -link_all_deplibs=$link_all_deplibs
  27510. -
  27511. -# Compile-time system search path for libraries
  27512. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27513. -
  27514. -# Run-time system search path for libraries
  27515. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  27516. -
  27517. -# Fix the shell variable \$srcfile for the compiler.
  27518. -fix_srcfile_path="$fix_srcfile_path"
  27519. -
  27520. -# Set to yes if exported symbols are required.
  27521. -always_export_symbols=$always_export_symbols
  27522. -
  27523. -# The commands to list exported symbols.
  27524. -export_symbols_cmds=$lt_export_symbols_cmds
  27525. -
  27526. -# The commands to extract the exported symbol list from a shared archive.
  27527. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27528. -
  27529. -# Symbols that should not be listed in the preloaded symbols.
  27530. -exclude_expsyms=$lt_exclude_expsyms
  27531. -
  27532. -# Symbols that must always be exported.
  27533. -include_expsyms=$lt_include_expsyms
  27534. -
  27535. -# ### END LIBTOOL CONFIG
  27536. -
  27537. -__EOF__
  27538. -
  27539. -
  27540. - case $host_os in
  27541. - aix3*)
  27542. - cat <<\EOF >> "$cfgfile"
  27543. -
  27544. -# AIX sometimes has problems with the GCC collect2 program. For some
  27545. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  27546. -# vanish in a puff of smoke.
  27547. -if test "X${COLLECT_NAMES+set}" != Xset; then
  27548. - COLLECT_NAMES=
  27549. - export COLLECT_NAMES
  27550. -fi
  27551. -EOF
  27552. - ;;
  27553. - esac
  27554. -
  27555. - # We use sed instead of cat because bash on DJGPP gets confused if
  27556. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27557. - # text mode, it properly converts lines to CR/LF. This bash problem
  27558. - # is reportedly fixed, but why not run on old versions too?
  27559. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  27560. -
  27561. - mv -f "$cfgfile" "$ofile" || \
  27562. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27563. - chmod +x "$ofile"
  27564. -
  27565. -else
  27566. - # If there is no Makefile yet, we rely on a make rule to execute
  27567. - # `config.status --recheck' to rerun these tests and create the
  27568. - # libtool script then.
  27569. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  27570. - if test -f "$ltmain_in"; then
  27571. - test -f Makefile && make "$ltmain"
  27572. - fi
  27573. -fi
  27574. -
  27575. -
  27576. -ac_ext=c
  27577. -ac_cpp='$CPP $CPPFLAGS'
  27578. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27579. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27580. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27581. -
  27582. -CC="$lt_save_CC"
  27583. -
  27584. -
  27585. -# Check whether --with-tags was given.
  27586. -if test "${with_tags+set}" = set; then
  27587. - withval=$with_tags; tagnames="$withval"
  27588. -fi
  27589. -
  27590. -
  27591. -if test -f "$ltmain" && test -n "$tagnames"; then
  27592. - if test ! -f "${ofile}"; then
  27593. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  27594. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  27595. - fi
  27596. -
  27597. - if test -z "$LTCC"; then
  27598. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  27599. - if test -z "$LTCC"; then
  27600. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  27601. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  27602. - else
  27603. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  27604. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  27605. - fi
  27606. - fi
  27607. - if test -z "$LTCFLAGS"; then
  27608. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  27609. - fi
  27610. -
  27611. - # Extract list of available tagged configurations in $ofile.
  27612. - # Note that this assumes the entire list is on one line.
  27613. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  27614. -
  27615. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  27616. - for tagname in $tagnames; do
  27617. - IFS="$lt_save_ifs"
  27618. - # Check whether tagname contains only valid characters
  27619. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  27620. - "") ;;
  27621. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  27622. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  27623. - { (exit 1); exit 1; }; }
  27624. - ;;
  27625. - esac
  27626. -
  27627. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  27628. - then
  27629. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  27630. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  27631. - { (exit 1); exit 1; }; }
  27632. - fi
  27633. -
  27634. - # Update the list of available tags.
  27635. - if test -n "$tagname"; then
  27636. - echo appending configuration tag \"$tagname\" to $ofile
  27637. -
  27638. - case $tagname in
  27639. - CXX)
  27640. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  27641. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  27642. - (test "X$CXX" != "Xg++"))) ; then
  27643. - ac_ext=cpp
  27644. -ac_cpp='$CXXCPP $CPPFLAGS'
  27645. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27646. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27647. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27648. -
  27649. -
  27650. -
  27651. -
  27652. -archive_cmds_need_lc_CXX=no
  27653. -allow_undefined_flag_CXX=
  27654. -always_export_symbols_CXX=no
  27655. -archive_expsym_cmds_CXX=
  27656. -export_dynamic_flag_spec_CXX=
  27657. -hardcode_direct_CXX=no
  27658. -hardcode_libdir_flag_spec_CXX=
  27659. -hardcode_libdir_flag_spec_ld_CXX=
  27660. -hardcode_libdir_separator_CXX=
  27661. -hardcode_minus_L_CXX=no
  27662. -hardcode_shlibpath_var_CXX=unsupported
  27663. -hardcode_automatic_CXX=no
  27664. -module_cmds_CXX=
  27665. -module_expsym_cmds_CXX=
  27666. -link_all_deplibs_CXX=unknown
  27667. -old_archive_cmds_CXX=$old_archive_cmds
  27668. -no_undefined_flag_CXX=
  27669. -whole_archive_flag_spec_CXX=
  27670. -enable_shared_with_static_runtimes_CXX=no
  27671. -
  27672. -# Dependencies to place before and after the object being linked:
  27673. -predep_objects_CXX=
  27674. -postdep_objects_CXX=
  27675. -predeps_CXX=
  27676. -postdeps_CXX=
  27677. -compiler_lib_search_path_CXX=
  27678. -
  27679. -# Source file extension for C++ test sources.
  27680. -ac_ext=cpp
  27681. -
  27682. -# Object file extension for compiled C++ test sources.
  27683. -objext=o
  27684. -objext_CXX=$objext
  27685. -
  27686. -# Code to be used in simple compile tests
  27687. -lt_simple_compile_test_code="int some_variable = 0;\n"
  27688. -
  27689. -# Code to be used in simple link tests
  27690. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  27691. -
  27692. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  27693. -
  27694. -# If no C compiler was specified, use CC.
  27695. -LTCC=${LTCC-"$CC"}
  27696. -
  27697. -# If no C compiler flags were specified, use CFLAGS.
  27698. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27699. -
  27700. -# Allow CC to be a program name with arguments.
  27701. -compiler=$CC
  27702. -
  27703. -
  27704. -# save warnings/boilerplate of simple test code
  27705. -ac_outfile=conftest.$ac_objext
  27706. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  27707. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27708. -_lt_compiler_boilerplate=`cat conftest.err`
  27709. -$rm conftest*
  27710. -
  27711. -ac_outfile=conftest.$ac_objext
  27712. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  27713. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27714. -_lt_linker_boilerplate=`cat conftest.err`
  27715. -$rm conftest*
  27716. -
  27717. -
  27718. -# Allow CC to be a program name with arguments.
  27719. -lt_save_CC=$CC
  27720. -lt_save_LD=$LD
  27721. -lt_save_GCC=$GCC
  27722. -GCC=$GXX
  27723. -lt_save_with_gnu_ld=$with_gnu_ld
  27724. -lt_save_path_LD=$lt_cv_path_LD
  27725. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  27726. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  27727. -else
  27728. - $as_unset lt_cv_prog_gnu_ld
  27729. -fi
  27730. -if test -n "${lt_cv_path_LDCXX+set}"; then
  27731. - lt_cv_path_LD=$lt_cv_path_LDCXX
  27732. -else
  27733. - $as_unset lt_cv_path_LD
  27734. -fi
  27735. -test -z "${LDCXX+set}" || LD=$LDCXX
  27736. -CC=${CXX-"c++"}
  27737. -compiler=$CC
  27738. -compiler_CXX=$CC
  27739. -for cc_temp in $compiler""; do
  27740. - case $cc_temp in
  27741. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27742. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27743. - \-*) ;;
  27744. - *) break;;
  27745. - esac
  27746. -done
  27747. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27748. -
  27749. -
  27750. -# We don't want -fno-exception wen compiling C++ code, so set the
  27751. -# no_builtin_flag separately
  27752. -if test "$GXX" = yes; then
  27753. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  27754. -else
  27755. - lt_prog_compiler_no_builtin_flag_CXX=
  27756. -fi
  27757. -
  27758. -if test "$GXX" = yes; then
  27759. - # Set up default GNU C++ configuration
  27760. -
  27761. -
  27762. -# Check whether --with-gnu-ld was given.
  27763. -if test "${with_gnu_ld+set}" = set; then
  27764. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  27765. -else
  27766. - with_gnu_ld=no
  27767. -fi
  27768. -
  27769. -ac_prog=ld
  27770. -if test "$GCC" = yes; then
  27771. - # Check if gcc -print-prog-name=ld gives a path.
  27772. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  27773. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  27774. - case $host in
  27775. - *-*-mingw*)
  27776. - # gcc leaves a trailing carriage return which upsets mingw
  27777. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  27778. - *)
  27779. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  27780. - esac
  27781. - case $ac_prog in
  27782. - # Accept absolute paths.
  27783. - [\\/]* | ?:[\\/]*)
  27784. - re_direlt='/[^/][^/]*/\.\./'
  27785. - # Canonicalize the pathname of ld
  27786. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  27787. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  27788. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  27789. - done
  27790. - test -z "$LD" && LD="$ac_prog"
  27791. - ;;
  27792. - "")
  27793. - # If it fails, then pretend we aren't using GCC.
  27794. - ac_prog=ld
  27795. - ;;
  27796. - *)
  27797. - # If it is relative, then search for the first ld in PATH.
  27798. - with_gnu_ld=unknown
  27799. - ;;
  27800. - esac
  27801. -elif test "$with_gnu_ld" = yes; then
  27802. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  27803. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  27804. -else
  27805. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  27806. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  27807. -fi
  27808. -if test "${lt_cv_path_LD+set}" = set; then
  27809. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27810. -else
  27811. - if test -z "$LD"; then
  27812. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27813. - for ac_dir in $PATH; do
  27814. - IFS="$lt_save_ifs"
  27815. - test -z "$ac_dir" && ac_dir=.
  27816. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  27817. - lt_cv_path_LD="$ac_dir/$ac_prog"
  27818. - # Check to see if the program is GNU ld. I'd rather use --version,
  27819. - # but apparently some variants of GNU ld only accept -v.
  27820. - # Break only if it was the GNU/non-GNU ld that we prefer.
  27821. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  27822. - *GNU* | *'with BFD'*)
  27823. - test "$with_gnu_ld" != no && break
  27824. - ;;
  27825. - *)
  27826. - test "$with_gnu_ld" != yes && break
  27827. - ;;
  27828. - esac
  27829. - fi
  27830. - done
  27831. - IFS="$lt_save_ifs"
  27832. -else
  27833. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  27834. -fi
  27835. -fi
  27836. -
  27837. -LD="$lt_cv_path_LD"
  27838. -if test -n "$LD"; then
  27839. - { echo "$as_me:$LINENO: result: $LD" >&5
  27840. -echo "${ECHO_T}$LD" >&6; }
  27841. -else
  27842. - { echo "$as_me:$LINENO: result: no" >&5
  27843. -echo "${ECHO_T}no" >&6; }
  27844. -fi
  27845. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  27846. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  27847. - { (exit 1); exit 1; }; }
  27848. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  27849. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  27850. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  27851. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27852. -else
  27853. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  27854. -case `$LD -v 2>&1 </dev/null` in
  27855. -*GNU* | *'with BFD'*)
  27856. - lt_cv_prog_gnu_ld=yes
  27857. - ;;
  27858. -*)
  27859. - lt_cv_prog_gnu_ld=no
  27860. - ;;
  27861. -esac
  27862. -fi
  27863. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  27864. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  27865. -with_gnu_ld=$lt_cv_prog_gnu_ld
  27866. -
  27867. -
  27868. -
  27869. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  27870. - # archiving commands below assume that GNU ld is being used.
  27871. - if test "$with_gnu_ld" = yes; then
  27872. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27873. - 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'
  27874. -
  27875. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  27876. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27877. -
  27878. - # If archive_cmds runs LD, not CC, wlarc should be empty
  27879. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  27880. - # investigate it a little bit more. (MM)
  27881. - wlarc='${wl}'
  27882. -
  27883. - # ancient GNU ld didn't support --whole-archive et. al.
  27884. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  27885. - grep 'no-whole-archive' > /dev/null; then
  27886. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27887. - else
  27888. - whole_archive_flag_spec_CXX=
  27889. - fi
  27890. - else
  27891. - with_gnu_ld=no
  27892. - wlarc=
  27893. -
  27894. - # A generic and very simple default shared library creation
  27895. - # command for GNU C++ for the case where it uses the native
  27896. - # linker, instead of GNU ld. If possible, this setting should
  27897. - # overridden to take advantage of the native linker features on
  27898. - # the platform it is being used on.
  27899. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  27900. - fi
  27901. -
  27902. - # Commands to make compiler produce verbose output that lists
  27903. - # what "hidden" libraries, object files and flags are used when
  27904. - # linking a shared library.
  27905. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27906. -
  27907. -else
  27908. - GXX=no
  27909. - with_gnu_ld=no
  27910. - wlarc=
  27911. -fi
  27912. -
  27913. -# PORTME: fill in a description of your system's C++ link characteristics
  27914. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27915. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  27916. -ld_shlibs_CXX=yes
  27917. -case $host_os in
  27918. - aix3*)
  27919. - # FIXME: insert proper C++ library support
  27920. - ld_shlibs_CXX=no
  27921. - ;;
  27922. - aix4* | aix5*)
  27923. - if test "$host_cpu" = ia64; then
  27924. - # On IA64, the linker does run time linking by default, so we don't
  27925. - # have to do anything special.
  27926. - aix_use_runtimelinking=no
  27927. - exp_sym_flag='-Bexport'
  27928. - no_entry_flag=""
  27929. - else
  27930. - aix_use_runtimelinking=no
  27931. -
  27932. - # Test if we are trying to use run time linking or normal
  27933. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27934. - # need to do runtime linking.
  27935. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  27936. - for ld_flag in $LDFLAGS; do
  27937. - case $ld_flag in
  27938. - *-brtl*)
  27939. - aix_use_runtimelinking=yes
  27940. - break
  27941. - ;;
  27942. - esac
  27943. - done
  27944. - ;;
  27945. - esac
  27946. -
  27947. - exp_sym_flag='-bexport'
  27948. - no_entry_flag='-bnoentry'
  27949. - fi
  27950. -
  27951. - # When large executables or shared objects are built, AIX ld can
  27952. - # have problems creating the table of contents. If linking a library
  27953. - # or program results in "error TOC overflow" add -mminimal-toc to
  27954. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  27955. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  27956. -
  27957. - archive_cmds_CXX=''
  27958. - hardcode_direct_CXX=yes
  27959. - hardcode_libdir_separator_CXX=':'
  27960. - link_all_deplibs_CXX=yes
  27961. -
  27962. - if test "$GXX" = yes; then
  27963. - case $host_os in aix4.[012]|aix4.[012].*)
  27964. - # We only want to do this on AIX 4.2 and lower, the check
  27965. - # below for broken collect2 doesn't work under 4.3+
  27966. - collect2name=`${CC} -print-prog-name=collect2`
  27967. - if test -f "$collect2name" && \
  27968. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27969. - then
  27970. - # We have reworked collect2
  27971. - hardcode_direct_CXX=yes
  27972. - else
  27973. - # We have old collect2
  27974. - hardcode_direct_CXX=unsupported
  27975. - # It fails to find uninstalled libraries when the uninstalled
  27976. - # path is not listed in the libpath. Setting hardcode_minus_L
  27977. - # to unsupported forces relinking
  27978. - hardcode_minus_L_CXX=yes
  27979. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27980. - hardcode_libdir_separator_CXX=
  27981. - fi
  27982. - ;;
  27983. - esac
  27984. - shared_flag='-shared'
  27985. - if test "$aix_use_runtimelinking" = yes; then
  27986. - shared_flag="$shared_flag "'${wl}-G'
  27987. - fi
  27988. - else
  27989. - # not using gcc
  27990. - if test "$host_cpu" = ia64; then
  27991. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27992. - # chokes on -Wl,-G. The following line is correct:
  27993. - shared_flag='-G'
  27994. - else
  27995. - if test "$aix_use_runtimelinking" = yes; then
  27996. - shared_flag='${wl}-G'
  27997. - else
  27998. - shared_flag='${wl}-bM:SRE'
  27999. - fi
  28000. - fi
  28001. - fi
  28002. -
  28003. - # It seems that -bexpall does not export symbols beginning with
  28004. - # underscore (_), so it is better to generate a list of symbols to export.
  28005. - always_export_symbols_CXX=yes
  28006. - if test "$aix_use_runtimelinking" = yes; then
  28007. - # Warning - without using the other runtime loading flags (-brtl),
  28008. - # -berok will link without error, but may produce a broken library.
  28009. - allow_undefined_flag_CXX='-berok'
  28010. - # Determine the default libpath from the value encoded in an empty executable.
  28011. - cat >conftest.$ac_ext <<_ACEOF
  28012. -/* confdefs.h. */
  28013. -_ACEOF
  28014. -cat confdefs.h >>conftest.$ac_ext
  28015. -cat >>conftest.$ac_ext <<_ACEOF
  28016. -/* end confdefs.h. */
  28017. -
  28018. -int
  28019. -main ()
  28020. -{
  28021. -
  28022. - ;
  28023. - return 0;
  28024. -}
  28025. -_ACEOF
  28026. -rm -f conftest.$ac_objext conftest$ac_exeext
  28027. -if { (ac_try="$ac_link"
  28028. -case "(($ac_try" in
  28029. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28030. - *) ac_try_echo=$ac_try;;
  28031. -esac
  28032. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28033. - (eval "$ac_link") 2>conftest.er1
  28034. - ac_status=$?
  28035. - grep -v '^ *+' conftest.er1 >conftest.err
  28036. - rm -f conftest.er1
  28037. - cat conftest.err >&5
  28038. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28039. - (exit $ac_status); } && {
  28040. - test -z "$ac_cxx_werror_flag" ||
  28041. - test ! -s conftest.err
  28042. - } && test -s conftest$ac_exeext &&
  28043. - $as_test_x conftest$ac_exeext; then
  28044. -
  28045. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28046. -}'`
  28047. -# Check for a 64-bit object if we didn't find anything.
  28048. -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; }
  28049. -}'`; fi
  28050. -else
  28051. - echo "$as_me: failed program was:" >&5
  28052. -sed 's/^/| /' conftest.$ac_ext >&5
  28053. -
  28054. -
  28055. -fi
  28056. -
  28057. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28058. - conftest$ac_exeext conftest.$ac_ext
  28059. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28060. -
  28061. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28062. -
  28063. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  28064. - else
  28065. - if test "$host_cpu" = ia64; then
  28066. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  28067. - allow_undefined_flag_CXX="-z nodefs"
  28068. - archive_expsym_cmds_CXX="\$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"
  28069. - else
  28070. - # Determine the default libpath from the value encoded in an empty executable.
  28071. - cat >conftest.$ac_ext <<_ACEOF
  28072. -/* confdefs.h. */
  28073. -_ACEOF
  28074. -cat confdefs.h >>conftest.$ac_ext
  28075. -cat >>conftest.$ac_ext <<_ACEOF
  28076. -/* end confdefs.h. */
  28077. -
  28078. -int
  28079. -main ()
  28080. -{
  28081. -
  28082. - ;
  28083. - return 0;
  28084. -}
  28085. -_ACEOF
  28086. -rm -f conftest.$ac_objext conftest$ac_exeext
  28087. -if { (ac_try="$ac_link"
  28088. -case "(($ac_try" in
  28089. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28090. - *) ac_try_echo=$ac_try;;
  28091. -esac
  28092. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28093. - (eval "$ac_link") 2>conftest.er1
  28094. - ac_status=$?
  28095. - grep -v '^ *+' conftest.er1 >conftest.err
  28096. - rm -f conftest.er1
  28097. - cat conftest.err >&5
  28098. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28099. - (exit $ac_status); } && {
  28100. - test -z "$ac_cxx_werror_flag" ||
  28101. - test ! -s conftest.err
  28102. - } && test -s conftest$ac_exeext &&
  28103. - $as_test_x conftest$ac_exeext; then
  28104. -
  28105. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28106. -}'`
  28107. -# Check for a 64-bit object if we didn't find anything.
  28108. -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; }
  28109. -}'`; fi
  28110. -else
  28111. - echo "$as_me: failed program was:" >&5
  28112. -sed 's/^/| /' conftest.$ac_ext >&5
  28113. -
  28114. -
  28115. -fi
  28116. -
  28117. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28118. - conftest$ac_exeext conftest.$ac_ext
  28119. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28120. -
  28121. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  28122. - # Warning - without using the other run time loading flags,
  28123. - # -berok will link without error, but may produce a broken library.
  28124. - no_undefined_flag_CXX=' ${wl}-bernotok'
  28125. - allow_undefined_flag_CXX=' ${wl}-berok'
  28126. - # Exported symbols can be pulled into shared objects from archives
  28127. - whole_archive_flag_spec_CXX='$convenience'
  28128. - archive_cmds_need_lc_CXX=yes
  28129. - # This is similar to how AIX traditionally builds its shared libraries.
  28130. - archive_expsym_cmds_CXX="\$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'
  28131. - fi
  28132. - fi
  28133. - ;;
  28134. -
  28135. - beos*)
  28136. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  28137. - allow_undefined_flag_CXX=unsupported
  28138. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  28139. - # support --undefined. This deserves some investigation. FIXME
  28140. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28141. - else
  28142. - ld_shlibs_CXX=no
  28143. - fi
  28144. - ;;
  28145. -
  28146. - chorus*)
  28147. - case $cc_basename in
  28148. - *)
  28149. - # FIXME: insert proper C++ library support
  28150. - ld_shlibs_CXX=no
  28151. - ;;
  28152. - esac
  28153. - ;;
  28154. -
  28155. - cygwin* | mingw* | pw32*)
  28156. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  28157. - # as there is no search path for DLLs.
  28158. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  28159. - allow_undefined_flag_CXX=unsupported
  28160. - always_export_symbols_CXX=no
  28161. - enable_shared_with_static_runtimes_CXX=yes
  28162. -
  28163. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  28164. - archive_cmds_CXX='$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'
  28165. - # If the export-symbols file already is a .def file (1st line
  28166. - # is EXPORTS), use it as is; otherwise, prepend...
  28167. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  28168. - cp $export_symbols $output_objdir/$soname.def;
  28169. - else
  28170. - echo EXPORTS > $output_objdir/$soname.def;
  28171. - cat $export_symbols >> $output_objdir/$soname.def;
  28172. - fi~
  28173. - $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'
  28174. - else
  28175. - ld_shlibs_CXX=no
  28176. - fi
  28177. - ;;
  28178. - darwin* | rhapsody*)
  28179. - case $host_os in
  28180. - rhapsody* | darwin1.[012])
  28181. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  28182. - ;;
  28183. - *) # Darwin 1.3 on
  28184. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  28185. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28186. - else
  28187. - case ${MACOSX_DEPLOYMENT_TARGET} in
  28188. - 10.[012])
  28189. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28190. - ;;
  28191. - 10.*)
  28192. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  28193. - ;;
  28194. - esac
  28195. - fi
  28196. - ;;
  28197. - esac
  28198. - archive_cmds_need_lc_CXX=no
  28199. - hardcode_direct_CXX=no
  28200. - hardcode_automatic_CXX=yes
  28201. - hardcode_shlibpath_var_CXX=unsupported
  28202. - whole_archive_flag_spec_CXX=''
  28203. - link_all_deplibs_CXX=yes
  28204. -
  28205. - if test "$GXX" = yes ; then
  28206. - lt_int_apple_cc_single_mod=no
  28207. - output_verbose_link_cmd='echo'
  28208. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  28209. - lt_int_apple_cc_single_mod=yes
  28210. - fi
  28211. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28212. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  28213. - else
  28214. - archive_cmds_CXX='$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'
  28215. - fi
  28216. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28217. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28218. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  28219. - 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}'
  28220. - else
  28221. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28222. - fi
  28223. - 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}'
  28224. - else
  28225. - case $cc_basename in
  28226. - xlc*)
  28227. - output_verbose_link_cmd='echo'
  28228. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  28229. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28230. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28231. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28232. - 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}'
  28233. - ;;
  28234. - *)
  28235. - ld_shlibs_CXX=no
  28236. - ;;
  28237. - esac
  28238. - fi
  28239. - ;;
  28240. -
  28241. - dgux*)
  28242. - case $cc_basename in
  28243. - ec++*)
  28244. - # FIXME: insert proper C++ library support
  28245. - ld_shlibs_CXX=no
  28246. - ;;
  28247. - ghcx*)
  28248. - # Green Hills C++ Compiler
  28249. - # FIXME: insert proper C++ library support
  28250. - ld_shlibs_CXX=no
  28251. - ;;
  28252. - *)
  28253. - # FIXME: insert proper C++ library support
  28254. - ld_shlibs_CXX=no
  28255. - ;;
  28256. - esac
  28257. - ;;
  28258. - freebsd[12]*)
  28259. - # C++ shared libraries reported to be fairly broken before switch to ELF
  28260. - ld_shlibs_CXX=no
  28261. - ;;
  28262. - freebsd-elf*)
  28263. - archive_cmds_need_lc_CXX=no
  28264. - ;;
  28265. - freebsd* | dragonfly*)
  28266. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  28267. - # conventions
  28268. - ld_shlibs_CXX=yes
  28269. - ;;
  28270. - gnu*)
  28271. - ;;
  28272. - hpux9*)
  28273. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28274. - hardcode_libdir_separator_CXX=:
  28275. - export_dynamic_flag_spec_CXX='${wl}-E'
  28276. - hardcode_direct_CXX=yes
  28277. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28278. - # but as the default
  28279. - # location of the library.
  28280. -
  28281. - case $cc_basename in
  28282. - CC*)
  28283. - # FIXME: insert proper C++ library support
  28284. - ld_shlibs_CXX=no
  28285. - ;;
  28286. - aCC*)
  28287. - 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'
  28288. - # Commands to make compiler produce verbose output that lists
  28289. - # what "hidden" libraries, object files and flags are used when
  28290. - # linking a shared library.
  28291. - #
  28292. - # There doesn't appear to be a way to prevent this compiler from
  28293. - # explicitly linking system object files so we need to strip them
  28294. - # from the output so that they don't get included in the library
  28295. - # dependencies.
  28296. - 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'
  28297. - ;;
  28298. - *)
  28299. - if test "$GXX" = yes; then
  28300. - 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'
  28301. - else
  28302. - # FIXME: insert proper C++ library support
  28303. - ld_shlibs_CXX=no
  28304. - fi
  28305. - ;;
  28306. - esac
  28307. - ;;
  28308. - hpux10*|hpux11*)
  28309. - if test $with_gnu_ld = no; then
  28310. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  28311. - hardcode_libdir_separator_CXX=:
  28312. -
  28313. - case $host_cpu in
  28314. - hppa*64*|ia64*)
  28315. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  28316. - ;;
  28317. - *)
  28318. - export_dynamic_flag_spec_CXX='${wl}-E'
  28319. - ;;
  28320. - esac
  28321. - fi
  28322. - case $host_cpu in
  28323. - hppa*64*|ia64*)
  28324. - hardcode_direct_CXX=no
  28325. - hardcode_shlibpath_var_CXX=no
  28326. - ;;
  28327. - *)
  28328. - hardcode_direct_CXX=yes
  28329. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  28330. - # but as the default
  28331. - # location of the library.
  28332. - ;;
  28333. - esac
  28334. -
  28335. - case $cc_basename in
  28336. - CC*)
  28337. - # FIXME: insert proper C++ library support
  28338. - ld_shlibs_CXX=no
  28339. - ;;
  28340. - aCC*)
  28341. - case $host_cpu in
  28342. - hppa*64*)
  28343. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28344. - ;;
  28345. - ia64*)
  28346. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28347. - ;;
  28348. - *)
  28349. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28350. - ;;
  28351. - esac
  28352. - # Commands to make compiler produce verbose output that lists
  28353. - # what "hidden" libraries, object files and flags are used when
  28354. - # linking a shared library.
  28355. - #
  28356. - # There doesn't appear to be a way to prevent this compiler from
  28357. - # explicitly linking system object files so we need to strip them
  28358. - # from the output so that they don't get included in the library
  28359. - # dependencies.
  28360. - 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'
  28361. - ;;
  28362. - *)
  28363. - if test "$GXX" = yes; then
  28364. - if test $with_gnu_ld = no; then
  28365. - case $host_cpu in
  28366. - hppa*64*)
  28367. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28368. - ;;
  28369. - ia64*)
  28370. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28371. - ;;
  28372. - *)
  28373. - 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'
  28374. - ;;
  28375. - esac
  28376. - fi
  28377. - else
  28378. - # FIXME: insert proper C++ library support
  28379. - ld_shlibs_CXX=no
  28380. - fi
  28381. - ;;
  28382. - esac
  28383. - ;;
  28384. - interix3*)
  28385. - hardcode_direct_CXX=no
  28386. - hardcode_shlibpath_var_CXX=no
  28387. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28388. - export_dynamic_flag_spec_CXX='${wl}-E'
  28389. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  28390. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  28391. - # default) and relocated if they conflict, which is a slow very memory
  28392. - # consuming and fragmenting process. To avoid this, we pick a random,
  28393. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  28394. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  28395. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  28396. - archive_expsym_cmds_CXX='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'
  28397. - ;;
  28398. - irix5* | irix6*)
  28399. - case $cc_basename in
  28400. - CC*)
  28401. - # SGI C++
  28402. - 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 ${output_objdir}/so_locations -o $lib'
  28403. -
  28404. - # Archives containing C++ object files must be created using
  28405. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  28406. - # necessary to make sure instantiated templates are included
  28407. - # in the archive.
  28408. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  28409. - ;;
  28410. - *)
  28411. - if test "$GXX" = yes; then
  28412. - if test "$with_gnu_ld" = no; then
  28413. - 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}${output_objdir}/so_locations -o $lib'
  28414. - else
  28415. - 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'
  28416. - fi
  28417. - fi
  28418. - link_all_deplibs_CXX=yes
  28419. - ;;
  28420. - esac
  28421. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28422. - hardcode_libdir_separator_CXX=:
  28423. - ;;
  28424. - linux* | k*bsd*-gnu)
  28425. - case $cc_basename in
  28426. - KCC*)
  28427. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28428. -
  28429. - # KCC will only create a shared library if the output file
  28430. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28431. - # to its proper name (with version) after linking.
  28432. - 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'
  28433. - 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'
  28434. - # Commands to make compiler produce verbose output that lists
  28435. - # what "hidden" libraries, object files and flags are used when
  28436. - # linking a shared library.
  28437. - #
  28438. - # There doesn't appear to be a way to prevent this compiler from
  28439. - # explicitly linking system object files so we need to strip them
  28440. - # from the output so that they don't get included in the library
  28441. - # dependencies.
  28442. - 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'
  28443. -
  28444. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  28445. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28446. -
  28447. - # Archives containing C++ object files must be created using
  28448. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  28449. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  28450. - ;;
  28451. - icpc*)
  28452. - # Intel C++
  28453. - with_gnu_ld=yes
  28454. - # version 8.0 and above of icpc choke on multiply defined symbols
  28455. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  28456. - # earlier do not add the objects themselves.
  28457. - case `$CC -V 2>&1` in
  28458. - *"Version 7."*)
  28459. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28460. - 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'
  28461. - ;;
  28462. - *) # Version 8.0 or newer
  28463. - tmp_idyn=
  28464. - case $host_cpu in
  28465. - ia64*) tmp_idyn=' -i_dynamic';;
  28466. - esac
  28467. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28468. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  28469. - ;;
  28470. - esac
  28471. - archive_cmds_need_lc_CXX=no
  28472. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28473. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28474. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  28475. - ;;
  28476. - pgCC*)
  28477. - # Portland Group C++ compiler
  28478. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  28479. - archive_expsym_cmds_CXX='$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'
  28480. -
  28481. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  28482. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  28483. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  28484. - ;;
  28485. - cxx*)
  28486. - # Compaq C++
  28487. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  28488. - 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'
  28489. -
  28490. - runpath_var=LD_RUN_PATH
  28491. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  28492. - hardcode_libdir_separator_CXX=:
  28493. -
  28494. - # Commands to make compiler produce verbose output that lists
  28495. - # what "hidden" libraries, object files and flags are used when
  28496. - # linking a shared library.
  28497. - #
  28498. - # There doesn't appear to be a way to prevent this compiler from
  28499. - # explicitly linking system object files so we need to strip them
  28500. - # from the output so that they don't get included in the library
  28501. - # dependencies.
  28502. - 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'
  28503. - ;;
  28504. - esac
  28505. - ;;
  28506. - lynxos*)
  28507. - # FIXME: insert proper C++ library support
  28508. - ld_shlibs_CXX=no
  28509. - ;;
  28510. - m88k*)
  28511. - # FIXME: insert proper C++ library support
  28512. - ld_shlibs_CXX=no
  28513. - ;;
  28514. - mvs*)
  28515. - case $cc_basename in
  28516. - cxx*)
  28517. - # FIXME: insert proper C++ library support
  28518. - ld_shlibs_CXX=no
  28519. - ;;
  28520. - *)
  28521. - # FIXME: insert proper C++ library support
  28522. - ld_shlibs_CXX=no
  28523. - ;;
  28524. - esac
  28525. - ;;
  28526. - netbsd* | netbsdelf*-gnu)
  28527. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28528. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  28529. - wlarc=
  28530. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  28531. - hardcode_direct_CXX=yes
  28532. - hardcode_shlibpath_var_CXX=no
  28533. - fi
  28534. - # Workaround some broken pre-1.5 toolchains
  28535. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  28536. - ;;
  28537. - openbsd2*)
  28538. - # C++ shared libraries are fairly broken
  28539. - ld_shlibs_CXX=no
  28540. - ;;
  28541. - openbsd*)
  28542. - hardcode_direct_CXX=yes
  28543. - hardcode_shlibpath_var_CXX=no
  28544. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  28545. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28546. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28547. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  28548. - export_dynamic_flag_spec_CXX='${wl}-E'
  28549. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  28550. - fi
  28551. - output_verbose_link_cmd='echo'
  28552. - ;;
  28553. - osf3*)
  28554. - case $cc_basename in
  28555. - KCC*)
  28556. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28557. -
  28558. - # KCC will only create a shared library if the output file
  28559. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28560. - # to its proper name (with version) after linking.
  28561. - 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'
  28562. -
  28563. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28564. - hardcode_libdir_separator_CXX=:
  28565. -
  28566. - # Archives containing C++ object files must be created using
  28567. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  28568. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  28569. -
  28570. - ;;
  28571. - RCC*)
  28572. - # Rational C++ 2.4.1
  28573. - # FIXME: insert proper C++ library support
  28574. - ld_shlibs_CXX=no
  28575. - ;;
  28576. - cxx*)
  28577. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  28578. - 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 ${output_objdir}/so_locations -o $lib'
  28579. -
  28580. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28581. - hardcode_libdir_separator_CXX=:
  28582. -
  28583. - # Commands to make compiler produce verbose output that lists
  28584. - # what "hidden" libraries, object files and flags are used when
  28585. - # linking a shared library.
  28586. - #
  28587. - # There doesn't appear to be a way to prevent this compiler from
  28588. - # explicitly linking system object files so we need to strip them
  28589. - # from the output so that they don't get included in the library
  28590. - # dependencies.
  28591. - 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'
  28592. - ;;
  28593. - *)
  28594. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28595. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  28596. - 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}${output_objdir}/so_locations -o $lib'
  28597. -
  28598. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28599. - hardcode_libdir_separator_CXX=:
  28600. -
  28601. - # Commands to make compiler produce verbose output that lists
  28602. - # what "hidden" libraries, object files and flags are used when
  28603. - # linking a shared library.
  28604. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28605. -
  28606. - else
  28607. - # FIXME: insert proper C++ library support
  28608. - ld_shlibs_CXX=no
  28609. - fi
  28610. - ;;
  28611. - esac
  28612. - ;;
  28613. - osf4* | osf5*)
  28614. - case $cc_basename in
  28615. - KCC*)
  28616. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  28617. -
  28618. - # KCC will only create a shared library if the output file
  28619. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  28620. - # to its proper name (with version) after linking.
  28621. - 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'
  28622. -
  28623. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  28624. - hardcode_libdir_separator_CXX=:
  28625. -
  28626. - # Archives containing C++ object files must be created using
  28627. - # the KAI C++ compiler.
  28628. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  28629. - ;;
  28630. - RCC*)
  28631. - # Rational C++ 2.4.1
  28632. - # FIXME: insert proper C++ library support
  28633. - ld_shlibs_CXX=no
  28634. - ;;
  28635. - cxx*)
  28636. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  28637. - 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 ${output_objdir}/so_locations -o $lib'
  28638. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  28639. - echo "-hidden">> $lib.exp~
  28640. - $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 ${output_objdir}/so_locations -o $lib~
  28641. - $rm $lib.exp'
  28642. -
  28643. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  28644. - hardcode_libdir_separator_CXX=:
  28645. -
  28646. - # Commands to make compiler produce verbose output that lists
  28647. - # what "hidden" libraries, object files and flags are used when
  28648. - # linking a shared library.
  28649. - #
  28650. - # There doesn't appear to be a way to prevent this compiler from
  28651. - # explicitly linking system object files so we need to strip them
  28652. - # from the output so that they don't get included in the library
  28653. - # dependencies.
  28654. - 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'
  28655. - ;;
  28656. - *)
  28657. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28658. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  28659. - 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}${output_objdir}/so_locations -o $lib'
  28660. -
  28661. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  28662. - hardcode_libdir_separator_CXX=:
  28663. -
  28664. - # Commands to make compiler produce verbose output that lists
  28665. - # what "hidden" libraries, object files and flags are used when
  28666. - # linking a shared library.
  28667. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  28668. -
  28669. - else
  28670. - # FIXME: insert proper C++ library support
  28671. - ld_shlibs_CXX=no
  28672. - fi
  28673. - ;;
  28674. - esac
  28675. - ;;
  28676. - psos*)
  28677. - # FIXME: insert proper C++ library support
  28678. - ld_shlibs_CXX=no
  28679. - ;;
  28680. - sunos4*)
  28681. - case $cc_basename in
  28682. - CC*)
  28683. - # Sun C++ 4.x
  28684. - # FIXME: insert proper C++ library support
  28685. - ld_shlibs_CXX=no
  28686. - ;;
  28687. - lcc*)
  28688. - # Lucid
  28689. - # FIXME: insert proper C++ library support
  28690. - ld_shlibs_CXX=no
  28691. - ;;
  28692. - *)
  28693. - # FIXME: insert proper C++ library support
  28694. - ld_shlibs_CXX=no
  28695. - ;;
  28696. - esac
  28697. - ;;
  28698. - solaris*)
  28699. - case $cc_basename in
  28700. - CC*)
  28701. - # Sun C++ 4.2, 5.x and Centerline C++
  28702. - archive_cmds_need_lc_CXX=yes
  28703. - no_undefined_flag_CXX=' -zdefs'
  28704. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  28705. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28706. - $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'
  28707. -
  28708. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  28709. - hardcode_shlibpath_var_CXX=no
  28710. - case $host_os in
  28711. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  28712. - *)
  28713. - # The C++ compiler is used as linker so we must use $wl
  28714. - # flag to pass the commands to the underlying system
  28715. - # linker. We must also pass each convience library through
  28716. - # to the system linker between allextract/defaultextract.
  28717. - # The C++ compiler will combine linker options so we
  28718. - # cannot just pass the convience library names through
  28719. - # without $wl.
  28720. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  28721. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  28722. - ;;
  28723. - esac
  28724. - link_all_deplibs_CXX=yes
  28725. -
  28726. - output_verbose_link_cmd='echo'
  28727. -
  28728. - # Archives containing C++ object files must be created using
  28729. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  28730. - # necessary to make sure instantiated templates are included
  28731. - # in the archive.
  28732. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  28733. - ;;
  28734. - gcx*)
  28735. - # Green Hills C++ Compiler
  28736. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28737. -
  28738. - # The C++ compiler must be used to create the archive.
  28739. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  28740. - ;;
  28741. - *)
  28742. - # GNU C++ compiler with Solaris linker
  28743. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  28744. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  28745. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  28746. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28747. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28748. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  28749. -
  28750. - # Commands to make compiler produce verbose output that lists
  28751. - # what "hidden" libraries, object files and flags are used when
  28752. - # linking a shared library.
  28753. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  28754. - else
  28755. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  28756. - # platform.
  28757. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  28758. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28759. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  28760. -
  28761. - # Commands to make compiler produce verbose output that lists
  28762. - # what "hidden" libraries, object files and flags are used when
  28763. - # linking a shared library.
  28764. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  28765. - fi
  28766. -
  28767. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  28768. - fi
  28769. - ;;
  28770. - esac
  28771. - ;;
  28772. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  28773. - no_undefined_flag_CXX='${wl}-z,text'
  28774. - archive_cmds_need_lc_CXX=no
  28775. - hardcode_shlibpath_var_CXX=no
  28776. - runpath_var='LD_RUN_PATH'
  28777. -
  28778. - case $cc_basename in
  28779. - CC*)
  28780. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28781. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28782. - ;;
  28783. - *)
  28784. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28785. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28786. - ;;
  28787. - esac
  28788. - ;;
  28789. - sysv5* | sco3.2v5* | sco5v6*)
  28790. - # Note: We can NOT use -z defs as we might desire, because we do not
  28791. - # link with -lc, and that would cause any symbols used from libc to
  28792. - # always be unresolved, which means just about no library would
  28793. - # ever link correctly. If we're not using GNU ld we use -z text
  28794. - # though, which does catch some bad symbols but isn't as heavy-handed
  28795. - # as -z defs.
  28796. - # For security reasons, it is highly recommended that you always
  28797. - # use absolute paths for naming shared libraries, and exclude the
  28798. - # DT_RUNPATH tag from executables and libraries. But doing so
  28799. - # requires that you compile everything twice, which is a pain.
  28800. - # So that behaviour is only enabled if SCOABSPATH is set to a
  28801. - # non-empty value in the environment. Most likely only useful for
  28802. - # creating official distributions of packages.
  28803. - # This is a hack until libtool officially supports absolute path
  28804. - # names for shared libraries.
  28805. - no_undefined_flag_CXX='${wl}-z,text'
  28806. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  28807. - archive_cmds_need_lc_CXX=no
  28808. - hardcode_shlibpath_var_CXX=no
  28809. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  28810. - hardcode_libdir_separator_CXX=':'
  28811. - link_all_deplibs_CXX=yes
  28812. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  28813. - runpath_var='LD_RUN_PATH'
  28814. -
  28815. - case $cc_basename in
  28816. - CC*)
  28817. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28818. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28819. - ;;
  28820. - *)
  28821. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28822. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28823. - ;;
  28824. - esac
  28825. - ;;
  28826. - tandem*)
  28827. - case $cc_basename in
  28828. - NCC*)
  28829. - # NonStop-UX NCC 3.20
  28830. - # FIXME: insert proper C++ library support
  28831. - ld_shlibs_CXX=no
  28832. - ;;
  28833. - *)
  28834. - # FIXME: insert proper C++ library support
  28835. - ld_shlibs_CXX=no
  28836. - ;;
  28837. - esac
  28838. - ;;
  28839. - vxworks*)
  28840. - # FIXME: insert proper C++ library support
  28841. - ld_shlibs_CXX=no
  28842. - ;;
  28843. - *)
  28844. - # FIXME: insert proper C++ library support
  28845. - ld_shlibs_CXX=no
  28846. - ;;
  28847. -esac
  28848. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  28849. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  28850. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  28851. -
  28852. -GCC_CXX="$GXX"
  28853. -LD_CXX="$LD"
  28854. -
  28855. -
  28856. -cat > conftest.$ac_ext <<EOF
  28857. -class Foo
  28858. -{
  28859. -public:
  28860. - Foo (void) { a = 0; }
  28861. -private:
  28862. - int a;
  28863. -};
  28864. -EOF
  28865. -
  28866. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28867. - (eval $ac_compile) 2>&5
  28868. - ac_status=$?
  28869. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28870. - (exit $ac_status); }; then
  28871. - # Parse the compiler output and extract the necessary
  28872. - # objects, libraries and library flags.
  28873. -
  28874. - # Sentinel used to keep track of whether or not we are before
  28875. - # the conftest object file.
  28876. - pre_test_object_deps_done=no
  28877. -
  28878. - # The `*' in the case matches for architectures that use `case' in
  28879. - # $output_verbose_cmd can trigger glob expansion during the loop
  28880. - # eval without this substitution.
  28881. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  28882. -
  28883. - for p in `eval $output_verbose_link_cmd`; do
  28884. - case $p in
  28885. -
  28886. - -L* | -R* | -l*)
  28887. - # Some compilers place space between "-{L,R}" and the path.
  28888. - # Remove the space.
  28889. - if test $p = "-L" \
  28890. - || test $p = "-R"; then
  28891. - prev=$p
  28892. - continue
  28893. - else
  28894. - prev=
  28895. - fi
  28896. -
  28897. - if test "$pre_test_object_deps_done" = no; then
  28898. - case $p in
  28899. - -L* | -R*)
  28900. - # Internal compiler library paths should come after those
  28901. - # provided the user. The postdeps already come after the
  28902. - # user supplied libs so there is no need to process them.
  28903. - if test -z "$compiler_lib_search_path_CXX"; then
  28904. - compiler_lib_search_path_CXX="${prev}${p}"
  28905. - else
  28906. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  28907. - fi
  28908. - ;;
  28909. - # The "-l" case would never come before the object being
  28910. - # linked, so don't bother handling this case.
  28911. - esac
  28912. - else
  28913. - if test -z "$postdeps_CXX"; then
  28914. - postdeps_CXX="${prev}${p}"
  28915. - else
  28916. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  28917. - fi
  28918. - fi
  28919. - ;;
  28920. -
  28921. - *.$objext)
  28922. - # This assumes that the test object file only shows up
  28923. - # once in the compiler output.
  28924. - if test "$p" = "conftest.$objext"; then
  28925. - pre_test_object_deps_done=yes
  28926. - continue
  28927. - fi
  28928. -
  28929. - if test "$pre_test_object_deps_done" = no; then
  28930. - if test -z "$predep_objects_CXX"; then
  28931. - predep_objects_CXX="$p"
  28932. - else
  28933. - predep_objects_CXX="$predep_objects_CXX $p"
  28934. - fi
  28935. - else
  28936. - if test -z "$postdep_objects_CXX"; then
  28937. - postdep_objects_CXX="$p"
  28938. - else
  28939. - postdep_objects_CXX="$postdep_objects_CXX $p"
  28940. - fi
  28941. - fi
  28942. - ;;
  28943. -
  28944. - *) ;; # Ignore the rest.
  28945. -
  28946. - esac
  28947. - done
  28948. -
  28949. - # Clean up.
  28950. - rm -f a.out a.exe
  28951. -else
  28952. - echo "libtool.m4: error: problem compiling CXX test program"
  28953. -fi
  28954. -
  28955. -$rm -f confest.$objext
  28956. -
  28957. -# PORTME: override above test on systems where it is broken
  28958. -case $host_os in
  28959. -interix3*)
  28960. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  28961. - # hack all around it, let's just trust "g++" to DTRT.
  28962. - predep_objects_CXX=
  28963. - postdep_objects_CXX=
  28964. - postdeps_CXX=
  28965. - ;;
  28966. -
  28967. -solaris*)
  28968. - case $cc_basename in
  28969. - CC*)
  28970. - # Adding this requires a known-good setup of shared libraries for
  28971. - # Sun compiler versions before 5.6, else PIC objects from an old
  28972. - # archive will be linked into the output, leading to subtle bugs.
  28973. - postdeps_CXX='-lCstd -lCrun'
  28974. - ;;
  28975. - esac
  28976. - ;;
  28977. -esac
  28978. -
  28979. -
  28980. -case " $postdeps_CXX " in
  28981. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  28982. -esac
  28983. -
  28984. -lt_prog_compiler_wl_CXX=
  28985. -lt_prog_compiler_pic_CXX=
  28986. -lt_prog_compiler_static_CXX=
  28987. -
  28988. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28989. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  28990. -
  28991. - # C++ specific cases for pic, static, wl, etc.
  28992. - if test "$GXX" = yes; then
  28993. - lt_prog_compiler_wl_CXX='-Wl,'
  28994. - lt_prog_compiler_static_CXX='-static'
  28995. -
  28996. - case $host_os in
  28997. - aix*)
  28998. - # All AIX code is PIC.
  28999. - if test "$host_cpu" = ia64; then
  29000. - # AIX 5 now supports IA64 processor
  29001. - lt_prog_compiler_static_CXX='-Bstatic'
  29002. - fi
  29003. - ;;
  29004. - amigaos*)
  29005. - # FIXME: we need at least 68020 code to build shared libraries, but
  29006. - # adding the `-m68020' flag to GCC prevents building anything better,
  29007. - # like `-m68040'.
  29008. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  29009. - ;;
  29010. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29011. - # PIC is the default for these OSes.
  29012. - ;;
  29013. - mingw* | os2* | pw32*)
  29014. - # This hack is so that the source file can tell whether it is being
  29015. - # built for inclusion in a dll (and should export symbols for example).
  29016. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  29017. - ;;
  29018. - darwin* | rhapsody*)
  29019. - # PIC is the default on this platform
  29020. - # Common symbols not allowed in MH_DYLIB files
  29021. - lt_prog_compiler_pic_CXX='-fno-common'
  29022. - ;;
  29023. - *djgpp*)
  29024. - # DJGPP does not support shared libraries at all
  29025. - lt_prog_compiler_pic_CXX=
  29026. - ;;
  29027. - interix3*)
  29028. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29029. - # Instead, we relocate shared libraries at runtime.
  29030. - ;;
  29031. - sysv4*MP*)
  29032. - if test -d /usr/nec; then
  29033. - lt_prog_compiler_pic_CXX=-Kconform_pic
  29034. - fi
  29035. - ;;
  29036. - hpux*)
  29037. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29038. - # not for PA HP-UX.
  29039. - case $host_cpu in
  29040. - hppa*64*|ia64*)
  29041. - ;;
  29042. - *)
  29043. - lt_prog_compiler_pic_CXX='-fPIC'
  29044. - ;;
  29045. - esac
  29046. - ;;
  29047. - *)
  29048. - lt_prog_compiler_pic_CXX='-fPIC'
  29049. - ;;
  29050. - esac
  29051. - else
  29052. - case $host_os in
  29053. - aix4* | aix5*)
  29054. - # All AIX code is PIC.
  29055. - if test "$host_cpu" = ia64; then
  29056. - # AIX 5 now supports IA64 processor
  29057. - lt_prog_compiler_static_CXX='-Bstatic'
  29058. - else
  29059. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  29060. - fi
  29061. - ;;
  29062. - chorus*)
  29063. - case $cc_basename in
  29064. - cxch68*)
  29065. - # Green Hills C++ Compiler
  29066. - # _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"
  29067. - ;;
  29068. - esac
  29069. - ;;
  29070. - darwin*)
  29071. - # PIC is the default on this platform
  29072. - # Common symbols not allowed in MH_DYLIB files
  29073. - case $cc_basename in
  29074. - xlc*)
  29075. - lt_prog_compiler_pic_CXX='-qnocommon'
  29076. - lt_prog_compiler_wl_CXX='-Wl,'
  29077. - ;;
  29078. - esac
  29079. - ;;
  29080. - dgux*)
  29081. - case $cc_basename in
  29082. - ec++*)
  29083. - lt_prog_compiler_pic_CXX='-KPIC'
  29084. - ;;
  29085. - ghcx*)
  29086. - # Green Hills C++ Compiler
  29087. - lt_prog_compiler_pic_CXX='-pic'
  29088. - ;;
  29089. - *)
  29090. - ;;
  29091. - esac
  29092. - ;;
  29093. - freebsd* | dragonfly*)
  29094. - # FreeBSD uses GNU C++
  29095. - ;;
  29096. - hpux9* | hpux10* | hpux11*)
  29097. - case $cc_basename in
  29098. - CC*)
  29099. - lt_prog_compiler_wl_CXX='-Wl,'
  29100. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29101. - if test "$host_cpu" != ia64; then
  29102. - lt_prog_compiler_pic_CXX='+Z'
  29103. - fi
  29104. - ;;
  29105. - aCC*)
  29106. - lt_prog_compiler_wl_CXX='-Wl,'
  29107. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  29108. - case $host_cpu in
  29109. - hppa*64*|ia64*)
  29110. - # +Z the default
  29111. - ;;
  29112. - *)
  29113. - lt_prog_compiler_pic_CXX='+Z'
  29114. - ;;
  29115. - esac
  29116. - ;;
  29117. - *)
  29118. - ;;
  29119. - esac
  29120. - ;;
  29121. - interix*)
  29122. - # This is c89, which is MS Visual C++ (no shared libs)
  29123. - # Anyone wants to do a port?
  29124. - ;;
  29125. - irix5* | irix6* | nonstopux*)
  29126. - case $cc_basename in
  29127. - CC*)
  29128. - lt_prog_compiler_wl_CXX='-Wl,'
  29129. - lt_prog_compiler_static_CXX='-non_shared'
  29130. - # CC pic flag -KPIC is the default.
  29131. - ;;
  29132. - *)
  29133. - ;;
  29134. - esac
  29135. - ;;
  29136. - linux* | k*bsd*-gnu)
  29137. - case $cc_basename in
  29138. - KCC*)
  29139. - # KAI C++ Compiler
  29140. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29141. - lt_prog_compiler_pic_CXX='-fPIC'
  29142. - ;;
  29143. - icpc* | ecpc*)
  29144. - # Intel C++
  29145. - lt_prog_compiler_wl_CXX='-Wl,'
  29146. - lt_prog_compiler_pic_CXX='-KPIC'
  29147. - lt_prog_compiler_static_CXX='-static'
  29148. - ;;
  29149. - pgCC*)
  29150. - # Portland Group C++ compiler.
  29151. - lt_prog_compiler_wl_CXX='-Wl,'
  29152. - lt_prog_compiler_pic_CXX='-fpic'
  29153. - lt_prog_compiler_static_CXX='-Bstatic'
  29154. - ;;
  29155. - cxx*)
  29156. - # Compaq C++
  29157. - # Make sure the PIC flag is empty. It appears that all Alpha
  29158. - # Linux and Compaq Tru64 Unix objects are PIC.
  29159. - lt_prog_compiler_pic_CXX=
  29160. - lt_prog_compiler_static_CXX='-non_shared'
  29161. - ;;
  29162. - *)
  29163. - ;;
  29164. - esac
  29165. - ;;
  29166. - lynxos*)
  29167. - ;;
  29168. - m88k*)
  29169. - ;;
  29170. - mvs*)
  29171. - case $cc_basename in
  29172. - cxx*)
  29173. - lt_prog_compiler_pic_CXX='-W c,exportall'
  29174. - ;;
  29175. - *)
  29176. - ;;
  29177. - esac
  29178. - ;;
  29179. - netbsd* | netbsdelf*-gnu)
  29180. - ;;
  29181. - osf3* | osf4* | osf5*)
  29182. - case $cc_basename in
  29183. - KCC*)
  29184. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  29185. - ;;
  29186. - RCC*)
  29187. - # Rational C++ 2.4.1
  29188. - lt_prog_compiler_pic_CXX='-pic'
  29189. - ;;
  29190. - cxx*)
  29191. - # Digital/Compaq C++
  29192. - lt_prog_compiler_wl_CXX='-Wl,'
  29193. - # Make sure the PIC flag is empty. It appears that all Alpha
  29194. - # Linux and Compaq Tru64 Unix objects are PIC.
  29195. - lt_prog_compiler_pic_CXX=
  29196. - lt_prog_compiler_static_CXX='-non_shared'
  29197. - ;;
  29198. - *)
  29199. - ;;
  29200. - esac
  29201. - ;;
  29202. - psos*)
  29203. - ;;
  29204. - solaris*)
  29205. - case $cc_basename in
  29206. - CC*)
  29207. - # Sun C++ 4.2, 5.x and Centerline C++
  29208. - lt_prog_compiler_pic_CXX='-KPIC'
  29209. - lt_prog_compiler_static_CXX='-Bstatic'
  29210. - lt_prog_compiler_wl_CXX='-Qoption ld '
  29211. - ;;
  29212. - gcx*)
  29213. - # Green Hills C++ Compiler
  29214. - lt_prog_compiler_pic_CXX='-PIC'
  29215. - ;;
  29216. - *)
  29217. - ;;
  29218. - esac
  29219. - ;;
  29220. - sunos4*)
  29221. - case $cc_basename in
  29222. - CC*)
  29223. - # Sun C++ 4.x
  29224. - lt_prog_compiler_pic_CXX='-pic'
  29225. - lt_prog_compiler_static_CXX='-Bstatic'
  29226. - ;;
  29227. - lcc*)
  29228. - # Lucid
  29229. - lt_prog_compiler_pic_CXX='-pic'
  29230. - ;;
  29231. - *)
  29232. - ;;
  29233. - esac
  29234. - ;;
  29235. - tandem*)
  29236. - case $cc_basename in
  29237. - NCC*)
  29238. - # NonStop-UX NCC 3.20
  29239. - lt_prog_compiler_pic_CXX='-KPIC'
  29240. - ;;
  29241. - *)
  29242. - ;;
  29243. - esac
  29244. - ;;
  29245. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  29246. - case $cc_basename in
  29247. - CC*)
  29248. - lt_prog_compiler_wl_CXX='-Wl,'
  29249. - lt_prog_compiler_pic_CXX='-KPIC'
  29250. - lt_prog_compiler_static_CXX='-Bstatic'
  29251. - ;;
  29252. - esac
  29253. - ;;
  29254. - vxworks*)
  29255. - ;;
  29256. - *)
  29257. - lt_prog_compiler_can_build_shared_CXX=no
  29258. - ;;
  29259. - esac
  29260. - fi
  29261. -
  29262. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  29263. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  29264. -
  29265. -#
  29266. -# Check to make sure the PIC flag actually works.
  29267. -#
  29268. -if test -n "$lt_prog_compiler_pic_CXX"; then
  29269. -
  29270. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  29271. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  29272. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  29273. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29274. -else
  29275. - lt_prog_compiler_pic_works_CXX=no
  29276. - ac_outfile=conftest.$ac_objext
  29277. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  29278. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  29279. - # Insert the option either (1) after the last *FLAGS variable, or
  29280. - # (2) before a word containing "conftest.", or (3) at the end.
  29281. - # Note that $ac_compile itself does not contain backslashes and begins
  29282. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29283. - # The option is referenced via a variable to avoid confusing sed.
  29284. - lt_compile=`echo "$ac_compile" | $SED \
  29285. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29286. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29287. - -e 's:$: $lt_compiler_flag:'`
  29288. - (eval echo "\"\$as_me:12250: $lt_compile\"" >&5)
  29289. - (eval "$lt_compile" 2>conftest.err)
  29290. - ac_status=$?
  29291. - cat conftest.err >&5
  29292. - echo "$as_me:12254: \$? = $ac_status" >&5
  29293. - if (exit $ac_status) && test -s "$ac_outfile"; then
  29294. - # The compiler can only warn and ignore the option if not recognized
  29295. - # So say no if there are warnings other than the usual output.
  29296. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29297. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29298. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29299. - lt_prog_compiler_pic_works_CXX=yes
  29300. - fi
  29301. - fi
  29302. - $rm conftest*
  29303. -
  29304. -fi
  29305. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  29306. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  29307. -
  29308. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  29309. - case $lt_prog_compiler_pic_CXX in
  29310. - "" | " "*) ;;
  29311. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  29312. - esac
  29313. -else
  29314. - lt_prog_compiler_pic_CXX=
  29315. - lt_prog_compiler_can_build_shared_CXX=no
  29316. -fi
  29317. -
  29318. -fi
  29319. -case $host_os in
  29320. - # For platforms which do not support PIC, -DPIC is meaningless:
  29321. - *djgpp*)
  29322. - lt_prog_compiler_pic_CXX=
  29323. - ;;
  29324. - *)
  29325. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  29326. - ;;
  29327. -esac
  29328. -
  29329. -#
  29330. -# Check to make sure the static flag actually works.
  29331. -#
  29332. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  29333. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  29334. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  29335. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  29336. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29337. -else
  29338. - lt_prog_compiler_static_works_CXX=no
  29339. - save_LDFLAGS="$LDFLAGS"
  29340. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  29341. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  29342. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  29343. - # The linker can only warn and ignore the option if not recognized
  29344. - # So say no if there are warnings
  29345. - if test -s conftest.err; then
  29346. - # Append any errors to the config.log.
  29347. - cat conftest.err 1>&5
  29348. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  29349. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29350. - if diff conftest.exp conftest.er2 >/dev/null; then
  29351. - lt_prog_compiler_static_works_CXX=yes
  29352. - fi
  29353. - else
  29354. - lt_prog_compiler_static_works_CXX=yes
  29355. - fi
  29356. - fi
  29357. - $rm conftest*
  29358. - LDFLAGS="$save_LDFLAGS"
  29359. -
  29360. -fi
  29361. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  29362. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  29363. -
  29364. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  29365. - :
  29366. -else
  29367. - lt_prog_compiler_static_CXX=
  29368. -fi
  29369. -
  29370. -
  29371. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  29372. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  29373. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  29374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29375. -else
  29376. - lt_cv_prog_compiler_c_o_CXX=no
  29377. - $rm -r conftest 2>/dev/null
  29378. - mkdir conftest
  29379. - cd conftest
  29380. - mkdir out
  29381. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  29382. -
  29383. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  29384. - # Insert the option either (1) after the last *FLAGS variable, or
  29385. - # (2) before a word containing "conftest.", or (3) at the end.
  29386. - # Note that $ac_compile itself does not contain backslashes and begins
  29387. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29388. - lt_compile=`echo "$ac_compile" | $SED \
  29389. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29390. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29391. - -e 's:$: $lt_compiler_flag:'`
  29392. - (eval echo "\"\$as_me:12354: $lt_compile\"" >&5)
  29393. - (eval "$lt_compile" 2>out/conftest.err)
  29394. - ac_status=$?
  29395. - cat out/conftest.err >&5
  29396. - echo "$as_me:12358: \$? = $ac_status" >&5
  29397. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29398. - then
  29399. - # The compiler can only warn and ignore the option if not recognized
  29400. - # So say no if there are warnings
  29401. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29402. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29403. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29404. - lt_cv_prog_compiler_c_o_CXX=yes
  29405. - fi
  29406. - fi
  29407. - chmod u+w . 2>&5
  29408. - $rm conftest*
  29409. - # SGI C++ compiler will create directory out/ii_files/ for
  29410. - # template instantiation
  29411. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  29412. - $rm out/* && rmdir out
  29413. - cd ..
  29414. - rmdir conftest
  29415. - $rm conftest*
  29416. -
  29417. -fi
  29418. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  29419. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  29420. -
  29421. -
  29422. -hard_links="nottested"
  29423. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  29424. - # do not overwrite the value of need_locks provided by the user
  29425. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  29426. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  29427. - hard_links=yes
  29428. - $rm conftest*
  29429. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29430. - touch conftest.a
  29431. - ln conftest.a conftest.b 2>&5 || hard_links=no
  29432. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29433. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  29434. -echo "${ECHO_T}$hard_links" >&6; }
  29435. - if test "$hard_links" = no; then
  29436. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  29437. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  29438. - need_locks=warn
  29439. - fi
  29440. -else
  29441. - need_locks=no
  29442. -fi
  29443. -
  29444. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29445. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  29446. -
  29447. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29448. - case $host_os in
  29449. - aix4* | aix5*)
  29450. - # If we're using GNU nm, then we don't want the "-C" option.
  29451. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29452. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  29453. - 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'
  29454. - else
  29455. - 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'
  29456. - fi
  29457. - ;;
  29458. - pw32*)
  29459. - export_symbols_cmds_CXX="$ltdll_cmds"
  29460. - ;;
  29461. - cygwin* | mingw*)
  29462. - export_symbols_cmds_CXX='$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'
  29463. - ;;
  29464. - linux* | k*bsd*-gnu)
  29465. - link_all_deplibs_CXX=no
  29466. - ;;
  29467. - *)
  29468. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29469. - ;;
  29470. - esac
  29471. -
  29472. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  29473. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  29474. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  29475. -
  29476. -#
  29477. -# Do we need to explicitly link libc?
  29478. -#
  29479. -case "x$archive_cmds_need_lc_CXX" in
  29480. -x|xyes)
  29481. - # Assume -lc should be added
  29482. - archive_cmds_need_lc_CXX=yes
  29483. -
  29484. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  29485. - case $archive_cmds_CXX in
  29486. - *'~'*)
  29487. - # FIXME: we may have to deal with multi-command sequences.
  29488. - ;;
  29489. - '$CC '*)
  29490. - # Test whether the compiler implicitly links with -lc since on some
  29491. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  29492. - # to ld, don't add -lc before -lgcc.
  29493. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  29494. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  29495. - $rm conftest*
  29496. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  29497. -
  29498. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  29499. - (eval $ac_compile) 2>&5
  29500. - ac_status=$?
  29501. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29502. - (exit $ac_status); } 2>conftest.err; then
  29503. - soname=conftest
  29504. - lib=conftest
  29505. - libobjs=conftest.$ac_objext
  29506. - deplibs=
  29507. - wl=$lt_prog_compiler_wl_CXX
  29508. - pic_flag=$lt_prog_compiler_pic_CXX
  29509. - compiler_flags=-v
  29510. - linker_flags=-v
  29511. - verstring=
  29512. - output_objdir=.
  29513. - libname=conftest
  29514. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  29515. - allow_undefined_flag_CXX=
  29516. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  29517. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  29518. - ac_status=$?
  29519. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29520. - (exit $ac_status); }
  29521. - then
  29522. - archive_cmds_need_lc_CXX=no
  29523. - else
  29524. - archive_cmds_need_lc_CXX=yes
  29525. - fi
  29526. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  29527. - else
  29528. - cat conftest.err 1>&5
  29529. - fi
  29530. - $rm conftest*
  29531. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  29532. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  29533. - ;;
  29534. - esac
  29535. - fi
  29536. - ;;
  29537. -esac
  29538. -
  29539. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  29540. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  29541. -library_names_spec=
  29542. -libname_spec='lib$name'
  29543. -soname_spec=
  29544. -shrext_cmds=".so"
  29545. -postinstall_cmds=
  29546. -postuninstall_cmds=
  29547. -finish_cmds=
  29548. -finish_eval=
  29549. -shlibpath_var=
  29550. -shlibpath_overrides_runpath=unknown
  29551. -version_type=none
  29552. -dynamic_linker="$host_os ld.so"
  29553. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  29554. -if test "$GCC" = yes; then
  29555. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  29556. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  29557. - # if the path contains ";" then we assume it to be the separator
  29558. - # otherwise default to the standard path separator (i.e. ":") - it is
  29559. - # assumed that no part of a normal pathname contains ";" but that should
  29560. - # okay in the real world where ";" in dirpaths is itself problematic.
  29561. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  29562. - else
  29563. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  29564. - fi
  29565. -else
  29566. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  29567. -fi
  29568. -need_lib_prefix=unknown
  29569. -hardcode_into_libs=no
  29570. -
  29571. -# when you set need_version to no, make sure it does not cause -set_version
  29572. -# flags to be left without arguments
  29573. -need_version=unknown
  29574. -
  29575. -case $host_os in
  29576. -aix3*)
  29577. - version_type=linux
  29578. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  29579. - shlibpath_var=LIBPATH
  29580. -
  29581. - # AIX 3 has no versioning support, so we append a major version to the name.
  29582. - soname_spec='${libname}${release}${shared_ext}$major'
  29583. - ;;
  29584. -
  29585. -aix4* | aix5*)
  29586. - version_type=linux
  29587. - need_lib_prefix=no
  29588. - need_version=no
  29589. - hardcode_into_libs=yes
  29590. - if test "$host_cpu" = ia64; then
  29591. - # AIX 5 supports IA64
  29592. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  29593. - shlibpath_var=LD_LIBRARY_PATH
  29594. - else
  29595. - # With GCC up to 2.95.x, collect2 would create an import file
  29596. - # for dependence libraries. The import file would start with
  29597. - # the line `#! .'. This would cause the generated library to
  29598. - # depend on `.', always an invalid library. This was fixed in
  29599. - # development snapshots of GCC prior to 3.0.
  29600. - case $host_os in
  29601. - aix4 | aix4.[01] | aix4.[01].*)
  29602. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  29603. - echo ' yes '
  29604. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  29605. - :
  29606. - else
  29607. - can_build_shared=no
  29608. - fi
  29609. - ;;
  29610. - esac
  29611. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  29612. - # soname into executable. Probably we can add versioning support to
  29613. - # collect2, so additional links can be useful in future.
  29614. - if test "$aix_use_runtimelinking" = yes; then
  29615. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  29616. - # instead of lib<name>.a to let people know that these are not
  29617. - # typical AIX shared libraries.
  29618. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29619. - else
  29620. - # We preserve .a as extension for shared libraries through AIX4.2
  29621. - # and later when we are not doing run time linking.
  29622. - library_names_spec='${libname}${release}.a $libname.a'
  29623. - soname_spec='${libname}${release}${shared_ext}$major'
  29624. - fi
  29625. - shlibpath_var=LIBPATH
  29626. - fi
  29627. - ;;
  29628. -
  29629. -amigaos*)
  29630. - library_names_spec='$libname.ixlibrary $libname.a'
  29631. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  29632. - 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'
  29633. - ;;
  29634. -
  29635. -beos*)
  29636. - library_names_spec='${libname}${shared_ext}'
  29637. - dynamic_linker="$host_os ld.so"
  29638. - shlibpath_var=LIBRARY_PATH
  29639. - ;;
  29640. -
  29641. -bsdi[45]*)
  29642. - version_type=linux
  29643. - need_version=no
  29644. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29645. - soname_spec='${libname}${release}${shared_ext}$major'
  29646. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  29647. - shlibpath_var=LD_LIBRARY_PATH
  29648. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  29649. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  29650. - # the default ld.so.conf also contains /usr/contrib/lib and
  29651. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  29652. - # libtool to hard-code these into programs
  29653. - ;;
  29654. -
  29655. -cygwin* | mingw* | pw32*)
  29656. - version_type=windows
  29657. - shrext_cmds=".dll"
  29658. - need_version=no
  29659. - need_lib_prefix=no
  29660. -
  29661. - case $GCC,$host_os in
  29662. - yes,cygwin* | yes,mingw* | yes,pw32*)
  29663. - library_names_spec='$libname.dll.a'
  29664. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  29665. - postinstall_cmds='base_file=`basename \${file}`~
  29666. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  29667. - dldir=$destdir/`dirname \$dlpath`~
  29668. - test -d \$dldir || mkdir -p \$dldir~
  29669. - $install_prog $dir/$dlname \$dldir/$dlname~
  29670. - chmod a+x \$dldir/$dlname'
  29671. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  29672. - dlpath=$dir/\$dldll~
  29673. - $rm \$dlpath'
  29674. - shlibpath_overrides_runpath=yes
  29675. -
  29676. - case $host_os in
  29677. - cygwin*)
  29678. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  29679. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29680. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  29681. - ;;
  29682. - mingw*)
  29683. - # MinGW DLLs use traditional 'lib' prefix
  29684. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29685. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  29686. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  29687. - # It is most probably a Windows format PATH printed by
  29688. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  29689. - # path with ; separators, and with drive letters. We can handle the
  29690. - # drive letters (cygwin fileutils understands them), so leave them,
  29691. - # especially as we might pass files found there to a mingw objdump,
  29692. - # which wouldn't understand a cygwinified path. Ahh.
  29693. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  29694. - else
  29695. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  29696. - fi
  29697. - ;;
  29698. - pw32*)
  29699. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  29700. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  29701. - ;;
  29702. - esac
  29703. - ;;
  29704. -
  29705. - *)
  29706. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  29707. - ;;
  29708. - esac
  29709. - dynamic_linker='Win32 ld.exe'
  29710. - # FIXME: first we should search . and the directory the executable is in
  29711. - shlibpath_var=PATH
  29712. - ;;
  29713. -
  29714. -darwin* | rhapsody*)
  29715. - dynamic_linker="$host_os dyld"
  29716. - version_type=darwin
  29717. - need_lib_prefix=no
  29718. - need_version=no
  29719. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  29720. - soname_spec='${libname}${release}${major}$shared_ext'
  29721. - shlibpath_overrides_runpath=yes
  29722. - shlibpath_var=DYLD_LIBRARY_PATH
  29723. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  29724. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  29725. - if test "$GCC" = yes; then
  29726. - 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"`
  29727. - else
  29728. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  29729. - fi
  29730. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  29731. - ;;
  29732. -
  29733. -dgux*)
  29734. - version_type=linux
  29735. - need_lib_prefix=no
  29736. - need_version=no
  29737. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  29738. - soname_spec='${libname}${release}${shared_ext}$major'
  29739. - shlibpath_var=LD_LIBRARY_PATH
  29740. - ;;
  29741. -
  29742. -freebsd1*)
  29743. - dynamic_linker=no
  29744. - ;;
  29745. -
  29746. -freebsd* | dragonfly*)
  29747. - # DragonFly does not have aout. When/if they implement a new
  29748. - # versioning mechanism, adjust this.
  29749. - if test -x /usr/bin/objformat; then
  29750. - objformat=`/usr/bin/objformat`
  29751. - else
  29752. - case $host_os in
  29753. - freebsd[123]*) objformat=aout ;;
  29754. - *) objformat=elf ;;
  29755. - esac
  29756. - fi
  29757. - version_type=freebsd-$objformat
  29758. - case $version_type in
  29759. - freebsd-elf*)
  29760. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29761. - need_version=no
  29762. - need_lib_prefix=no
  29763. - ;;
  29764. - freebsd-*)
  29765. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  29766. - need_version=yes
  29767. - ;;
  29768. - esac
  29769. - shlibpath_var=LD_LIBRARY_PATH
  29770. - case $host_os in
  29771. - freebsd2*)
  29772. - shlibpath_overrides_runpath=yes
  29773. - ;;
  29774. - freebsd3.[01]* | freebsdelf3.[01]*)
  29775. - shlibpath_overrides_runpath=yes
  29776. - hardcode_into_libs=yes
  29777. - ;;
  29778. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  29779. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  29780. - shlibpath_overrides_runpath=no
  29781. - hardcode_into_libs=yes
  29782. - ;;
  29783. - freebsd*) # from 4.6 on
  29784. - shlibpath_overrides_runpath=yes
  29785. - hardcode_into_libs=yes
  29786. - ;;
  29787. - esac
  29788. - ;;
  29789. -
  29790. -gnu*)
  29791. - version_type=linux
  29792. - need_lib_prefix=no
  29793. - need_version=no
  29794. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  29795. - soname_spec='${libname}${release}${shared_ext}$major'
  29796. - shlibpath_var=LD_LIBRARY_PATH
  29797. - hardcode_into_libs=yes
  29798. - ;;
  29799. -
  29800. -hpux9* | hpux10* | hpux11*)
  29801. - # Give a soname corresponding to the major version so that dld.sl refuses to
  29802. - # link against other versions.
  29803. - version_type=sunos
  29804. - need_lib_prefix=no
  29805. - need_version=no
  29806. - case $host_cpu in
  29807. - ia64*)
  29808. - shrext_cmds='.so'
  29809. - hardcode_into_libs=yes
  29810. - dynamic_linker="$host_os dld.so"
  29811. - shlibpath_var=LD_LIBRARY_PATH
  29812. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29813. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29814. - soname_spec='${libname}${release}${shared_ext}$major'
  29815. - if test "X$HPUX_IA64_MODE" = X32; then
  29816. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  29817. - else
  29818. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  29819. - fi
  29820. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29821. - ;;
  29822. - hppa*64*)
  29823. - shrext_cmds='.sl'
  29824. - hardcode_into_libs=yes
  29825. - dynamic_linker="$host_os dld.sl"
  29826. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  29827. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29828. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29829. - soname_spec='${libname}${release}${shared_ext}$major'
  29830. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  29831. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29832. - ;;
  29833. - *)
  29834. - shrext_cmds='.sl'
  29835. - dynamic_linker="$host_os dld.sl"
  29836. - shlibpath_var=SHLIB_PATH
  29837. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  29838. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29839. - soname_spec='${libname}${release}${shared_ext}$major'
  29840. - ;;
  29841. - esac
  29842. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  29843. - postinstall_cmds='chmod 555 $lib'
  29844. - ;;
  29845. -
  29846. -interix3*)
  29847. - version_type=linux
  29848. - need_lib_prefix=no
  29849. - need_version=no
  29850. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29851. - soname_spec='${libname}${release}${shared_ext}$major'
  29852. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  29853. - shlibpath_var=LD_LIBRARY_PATH
  29854. - shlibpath_overrides_runpath=no
  29855. - hardcode_into_libs=yes
  29856. - ;;
  29857. -
  29858. -irix5* | irix6* | nonstopux*)
  29859. - case $host_os in
  29860. - nonstopux*) version_type=nonstopux ;;
  29861. - *)
  29862. - if test "$lt_cv_prog_gnu_ld" = yes; then
  29863. - version_type=linux
  29864. - else
  29865. - version_type=irix
  29866. - fi ;;
  29867. - esac
  29868. - need_lib_prefix=no
  29869. - need_version=no
  29870. - soname_spec='${libname}${release}${shared_ext}$major'
  29871. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  29872. - case $host_os in
  29873. - irix5* | nonstopux*)
  29874. - libsuff= shlibsuff=
  29875. - ;;
  29876. - *)
  29877. - case $LD in # libtool.m4 will add one of these switches to LD
  29878. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  29879. - libsuff= shlibsuff= libmagic=32-bit;;
  29880. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  29881. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  29882. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  29883. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  29884. - *) libsuff= shlibsuff= libmagic=never-match;;
  29885. - esac
  29886. - ;;
  29887. - esac
  29888. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  29889. - shlibpath_overrides_runpath=no
  29890. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  29891. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  29892. - hardcode_into_libs=yes
  29893. - ;;
  29894. -
  29895. -# No shared lib support for Linux oldld, aout, or coff.
  29896. -linux*oldld* | linux*aout* | linux*coff*)
  29897. - dynamic_linker=no
  29898. - ;;
  29899. -
  29900. -# This must be Linux ELF.
  29901. -linux* | k*bsd*-gnu)
  29902. - version_type=linux
  29903. - need_lib_prefix=no
  29904. - need_version=no
  29905. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29906. - soname_spec='${libname}${release}${shared_ext}$major'
  29907. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  29908. - shlibpath_var=LD_LIBRARY_PATH
  29909. - shlibpath_overrides_runpath=no
  29910. - # This implies no fast_install, which is unacceptable.
  29911. - # Some rework will be needed to allow for fast_install
  29912. - # before this can be enabled.
  29913. - hardcode_into_libs=yes
  29914. -
  29915. - # Append ld.so.conf contents to the search path
  29916. - if test -f /etc/ld.so.conf; then
  29917. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  29918. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  29919. - fi
  29920. -
  29921. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  29922. - # powerpc, because MkLinux only supported shared libraries with the
  29923. - # GNU dynamic linker. Since this was broken with cross compilers,
  29924. - # most powerpc-linux boxes support dynamic linking these days and
  29925. - # people can always --disable-shared, the test was removed, and we
  29926. - # assume the GNU/Linux dynamic linker is in use.
  29927. - dynamic_linker='GNU/Linux ld.so'
  29928. - ;;
  29929. -
  29930. -netbsdelf*-gnu)
  29931. - version_type=linux
  29932. - need_lib_prefix=no
  29933. - need_version=no
  29934. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29935. - soname_spec='${libname}${release}${shared_ext}$major'
  29936. - shlibpath_var=LD_LIBRARY_PATH
  29937. - shlibpath_overrides_runpath=no
  29938. - hardcode_into_libs=yes
  29939. - dynamic_linker='NetBSD ld.elf_so'
  29940. - ;;
  29941. -
  29942. -netbsd*)
  29943. - version_type=sunos
  29944. - need_lib_prefix=no
  29945. - need_version=no
  29946. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29947. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29948. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29949. - dynamic_linker='NetBSD (a.out) ld.so'
  29950. - else
  29951. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29952. - soname_spec='${libname}${release}${shared_ext}$major'
  29953. - dynamic_linker='NetBSD ld.elf_so'
  29954. - fi
  29955. - shlibpath_var=LD_LIBRARY_PATH
  29956. - shlibpath_overrides_runpath=yes
  29957. - hardcode_into_libs=yes
  29958. - ;;
  29959. -
  29960. -newsos6)
  29961. - version_type=linux
  29962. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29963. - shlibpath_var=LD_LIBRARY_PATH
  29964. - shlibpath_overrides_runpath=yes
  29965. - ;;
  29966. -
  29967. -nto-qnx*)
  29968. - version_type=linux
  29969. - need_lib_prefix=no
  29970. - need_version=no
  29971. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29972. - soname_spec='${libname}${release}${shared_ext}$major'
  29973. - shlibpath_var=LD_LIBRARY_PATH
  29974. - shlibpath_overrides_runpath=yes
  29975. - ;;
  29976. -
  29977. -openbsd*)
  29978. - version_type=sunos
  29979. - sys_lib_dlsearch_path_spec="/usr/lib"
  29980. - need_lib_prefix=no
  29981. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  29982. - case $host_os in
  29983. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  29984. - *) need_version=no ;;
  29985. - esac
  29986. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29987. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29988. - shlibpath_var=LD_LIBRARY_PATH
  29989. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29990. - case $host_os in
  29991. - openbsd2.[89] | openbsd2.[89].*)
  29992. - shlibpath_overrides_runpath=no
  29993. - ;;
  29994. - *)
  29995. - shlibpath_overrides_runpath=yes
  29996. - ;;
  29997. - esac
  29998. - else
  29999. - shlibpath_overrides_runpath=yes
  30000. - fi
  30001. - ;;
  30002. -
  30003. -os2*)
  30004. - libname_spec='$name'
  30005. - shrext_cmds=".dll"
  30006. - need_lib_prefix=no
  30007. - library_names_spec='$libname${shared_ext} $libname.a'
  30008. - dynamic_linker='OS/2 ld.exe'
  30009. - shlibpath_var=LIBPATH
  30010. - ;;
  30011. -
  30012. -osf3* | osf4* | osf5*)
  30013. - version_type=osf
  30014. - need_lib_prefix=no
  30015. - need_version=no
  30016. - soname_spec='${libname}${release}${shared_ext}$major'
  30017. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30018. - shlibpath_var=LD_LIBRARY_PATH
  30019. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  30020. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  30021. - ;;
  30022. -
  30023. -solaris*)
  30024. - version_type=linux
  30025. - need_lib_prefix=no
  30026. - need_version=no
  30027. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30028. - soname_spec='${libname}${release}${shared_ext}$major'
  30029. - shlibpath_var=LD_LIBRARY_PATH
  30030. - shlibpath_overrides_runpath=yes
  30031. - hardcode_into_libs=yes
  30032. - # ldd complains unless libraries are executable
  30033. - postinstall_cmds='chmod +x $lib'
  30034. - ;;
  30035. -
  30036. -sunos4*)
  30037. - version_type=sunos
  30038. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30039. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  30040. - shlibpath_var=LD_LIBRARY_PATH
  30041. - shlibpath_overrides_runpath=yes
  30042. - if test "$with_gnu_ld" = yes; then
  30043. - need_lib_prefix=no
  30044. - fi
  30045. - need_version=yes
  30046. - ;;
  30047. -
  30048. -sysv4 | sysv4.3*)
  30049. - version_type=linux
  30050. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30051. - soname_spec='${libname}${release}${shared_ext}$major'
  30052. - shlibpath_var=LD_LIBRARY_PATH
  30053. - case $host_vendor in
  30054. - sni)
  30055. - shlibpath_overrides_runpath=no
  30056. - need_lib_prefix=no
  30057. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  30058. - runpath_var=LD_RUN_PATH
  30059. - ;;
  30060. - siemens)
  30061. - need_lib_prefix=no
  30062. - ;;
  30063. - motorola)
  30064. - need_lib_prefix=no
  30065. - need_version=no
  30066. - shlibpath_overrides_runpath=no
  30067. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  30068. - ;;
  30069. - esac
  30070. - ;;
  30071. -
  30072. -sysv4*MP*)
  30073. - if test -d /usr/nec ;then
  30074. - version_type=linux
  30075. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  30076. - soname_spec='$libname${shared_ext}.$major'
  30077. - shlibpath_var=LD_LIBRARY_PATH
  30078. - fi
  30079. - ;;
  30080. -
  30081. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  30082. - version_type=freebsd-elf
  30083. - need_lib_prefix=no
  30084. - need_version=no
  30085. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30086. - soname_spec='${libname}${release}${shared_ext}$major'
  30087. - shlibpath_var=LD_LIBRARY_PATH
  30088. - hardcode_into_libs=yes
  30089. - if test "$with_gnu_ld" = yes; then
  30090. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  30091. - shlibpath_overrides_runpath=no
  30092. - else
  30093. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  30094. - shlibpath_overrides_runpath=yes
  30095. - case $host_os in
  30096. - sco3.2v5*)
  30097. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  30098. - ;;
  30099. - esac
  30100. - fi
  30101. - sys_lib_dlsearch_path_spec='/usr/lib'
  30102. - ;;
  30103. -
  30104. -uts4*)
  30105. - version_type=linux
  30106. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30107. - soname_spec='${libname}${release}${shared_ext}$major'
  30108. - shlibpath_var=LD_LIBRARY_PATH
  30109. - ;;
  30110. -
  30111. -*)
  30112. - dynamic_linker=no
  30113. - ;;
  30114. -esac
  30115. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  30116. -echo "${ECHO_T}$dynamic_linker" >&6; }
  30117. -test "$dynamic_linker" = no && can_build_shared=no
  30118. -
  30119. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  30120. -if test "$GCC" = yes; then
  30121. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  30122. -fi
  30123. -
  30124. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  30125. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  30126. -hardcode_action_CXX=
  30127. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  30128. - test -n "$runpath_var_CXX" || \
  30129. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  30130. -
  30131. - # We can hardcode non-existant directories.
  30132. - if test "$hardcode_direct_CXX" != no &&
  30133. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  30134. - # have to relink, otherwise we might link with an installed library
  30135. - # when we should be linking with a yet-to-be-installed one
  30136. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  30137. - test "$hardcode_minus_L_CXX" != no; then
  30138. - # Linking always hardcodes the temporary library directory.
  30139. - hardcode_action_CXX=relink
  30140. - else
  30141. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  30142. - hardcode_action_CXX=immediate
  30143. - fi
  30144. -else
  30145. - # We cannot hardcode anything, or else we can only hardcode existing
  30146. - # directories.
  30147. - hardcode_action_CXX=unsupported
  30148. -fi
  30149. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  30150. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  30151. -
  30152. -if test "$hardcode_action_CXX" = relink; then
  30153. - # Fast installation is not supported
  30154. - enable_fast_install=no
  30155. -elif test "$shlibpath_overrides_runpath" = yes ||
  30156. - test "$enable_shared" = no; then
  30157. - # Fast installation is not necessary
  30158. - enable_fast_install=needless
  30159. -fi
  30160. -
  30161. -
  30162. -# The else clause should only fire when bootstrapping the
  30163. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30164. -# with your package, and you will get complaints that there are
  30165. -# no rules to generate ltmain.sh.
  30166. -if test -f "$ltmain"; then
  30167. - # See if we are running on zsh, and set the options which allow our commands through
  30168. - # without removal of \ escapes.
  30169. - if test -n "${ZSH_VERSION+set}" ; then
  30170. - setopt NO_GLOB_SUBST
  30171. - fi
  30172. - # Now quote all the things that may contain metacharacters while being
  30173. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30174. - # variables and quote the copies for generation of the libtool script.
  30175. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  30176. - SED SHELL STRIP \
  30177. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30178. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30179. - deplibs_check_method reload_flag reload_cmds need_locks \
  30180. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30181. - lt_cv_sys_global_symbol_to_c_name_address \
  30182. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30183. - old_postinstall_cmds old_postuninstall_cmds \
  30184. - compiler_CXX \
  30185. - CC_CXX \
  30186. - LD_CXX \
  30187. - lt_prog_compiler_wl_CXX \
  30188. - lt_prog_compiler_pic_CXX \
  30189. - lt_prog_compiler_static_CXX \
  30190. - lt_prog_compiler_no_builtin_flag_CXX \
  30191. - export_dynamic_flag_spec_CXX \
  30192. - thread_safe_flag_spec_CXX \
  30193. - whole_archive_flag_spec_CXX \
  30194. - enable_shared_with_static_runtimes_CXX \
  30195. - old_archive_cmds_CXX \
  30196. - old_archive_from_new_cmds_CXX \
  30197. - predep_objects_CXX \
  30198. - postdep_objects_CXX \
  30199. - predeps_CXX \
  30200. - postdeps_CXX \
  30201. - compiler_lib_search_path_CXX \
  30202. - archive_cmds_CXX \
  30203. - archive_expsym_cmds_CXX \
  30204. - postinstall_cmds_CXX \
  30205. - postuninstall_cmds_CXX \
  30206. - old_archive_from_expsyms_cmds_CXX \
  30207. - allow_undefined_flag_CXX \
  30208. - no_undefined_flag_CXX \
  30209. - export_symbols_cmds_CXX \
  30210. - hardcode_libdir_flag_spec_CXX \
  30211. - hardcode_libdir_flag_spec_ld_CXX \
  30212. - hardcode_libdir_separator_CXX \
  30213. - hardcode_automatic_CXX \
  30214. - module_cmds_CXX \
  30215. - module_expsym_cmds_CXX \
  30216. - lt_cv_prog_compiler_c_o_CXX \
  30217. - exclude_expsyms_CXX \
  30218. - include_expsyms_CXX; do
  30219. -
  30220. - case $var in
  30221. - old_archive_cmds_CXX | \
  30222. - old_archive_from_new_cmds_CXX | \
  30223. - archive_cmds_CXX | \
  30224. - archive_expsym_cmds_CXX | \
  30225. - module_cmds_CXX | \
  30226. - module_expsym_cmds_CXX | \
  30227. - old_archive_from_expsyms_cmds_CXX | \
  30228. - export_symbols_cmds_CXX | \
  30229. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30230. - postinstall_cmds | postuninstall_cmds | \
  30231. - old_postinstall_cmds | old_postuninstall_cmds | \
  30232. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30233. - # Double-quote double-evaled strings.
  30234. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30235. - ;;
  30236. - *)
  30237. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30238. - ;;
  30239. - esac
  30240. - done
  30241. -
  30242. - case $lt_echo in
  30243. - *'\$0 --fallback-echo"')
  30244. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30245. - ;;
  30246. - esac
  30247. -
  30248. -cfgfile="$ofile"
  30249. -
  30250. - cat <<__EOF__ >> "$cfgfile"
  30251. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30252. -
  30253. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30254. -
  30255. -# Shell to use when invoking shell scripts.
  30256. -SHELL=$lt_SHELL
  30257. -
  30258. -# Whether or not to build shared libraries.
  30259. -build_libtool_libs=$enable_shared
  30260. -
  30261. -# Whether or not to build static libraries.
  30262. -build_old_libs=$enable_static
  30263. -
  30264. -# Whether or not to add -lc for building shared libraries.
  30265. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30266. -
  30267. -# Whether or not to disallow shared libs when runtime libs are static
  30268. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30269. -
  30270. -# Whether or not to optimize for fast installation.
  30271. -fast_install=$enable_fast_install
  30272. -
  30273. -# The host system.
  30274. -host_alias=$host_alias
  30275. -host=$host
  30276. -host_os=$host_os
  30277. -
  30278. -# The build system.
  30279. -build_alias=$build_alias
  30280. -build=$build
  30281. -build_os=$build_os
  30282. -
  30283. -# An echo program that does not interpret backslashes.
  30284. -echo=$lt_echo
  30285. -
  30286. -# The archiver.
  30287. -AR=$lt_AR
  30288. -AR_FLAGS=$lt_AR_FLAGS
  30289. -
  30290. -# A C compiler.
  30291. -LTCC=$lt_LTCC
  30292. -
  30293. -# LTCC compiler flags.
  30294. -LTCFLAGS=$lt_LTCFLAGS
  30295. -
  30296. -# A language-specific compiler.
  30297. -CC=$lt_compiler_CXX
  30298. -
  30299. -# Is the compiler the GNU C compiler?
  30300. -with_gcc=$GCC_CXX
  30301. -
  30302. -# An ERE matcher.
  30303. -EGREP=$lt_EGREP
  30304. -
  30305. -# The linker used to build libraries.
  30306. -LD=$lt_LD_CXX
  30307. -
  30308. -# Whether we need hard or soft links.
  30309. -LN_S=$lt_LN_S
  30310. -
  30311. -# A BSD-compatible nm program.
  30312. -NM=$lt_NM
  30313. -
  30314. -# A symbol stripping program
  30315. -STRIP=$lt_STRIP
  30316. -
  30317. -# Used to examine libraries when file_magic_cmd begins "file"
  30318. -MAGIC_CMD=$MAGIC_CMD
  30319. -
  30320. -# Used on cygwin: DLL creation program.
  30321. -DLLTOOL="$DLLTOOL"
  30322. -
  30323. -# Used on cygwin: object dumper.
  30324. -OBJDUMP="$OBJDUMP"
  30325. -
  30326. -# Used on cygwin: assembler.
  30327. -AS="$AS"
  30328. -
  30329. -# The name of the directory that contains temporary libtool files.
  30330. -objdir=$objdir
  30331. -
  30332. -# How to create reloadable object files.
  30333. -reload_flag=$lt_reload_flag
  30334. -reload_cmds=$lt_reload_cmds
  30335. -
  30336. -# How to pass a linker flag through the compiler.
  30337. -wl=$lt_lt_prog_compiler_wl_CXX
  30338. -
  30339. -# Object file suffix (normally "o").
  30340. -objext="$ac_objext"
  30341. -
  30342. -# Old archive suffix (normally "a").
  30343. -libext="$libext"
  30344. -
  30345. -# Shared library suffix (normally ".so").
  30346. -shrext_cmds='$shrext_cmds'
  30347. -
  30348. -# Executable file suffix (normally "").
  30349. -exeext="$exeext"
  30350. -
  30351. -# Additional compiler flags for building library objects.
  30352. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  30353. -pic_mode=$pic_mode
  30354. -
  30355. -# What is the maximum length of a command?
  30356. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30357. -
  30358. -# Does compiler simultaneously support -c and -o options?
  30359. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  30360. -
  30361. -# Must we lock files when doing compilation?
  30362. -need_locks=$lt_need_locks
  30363. -
  30364. -# Do we need the lib prefix for modules?
  30365. -need_lib_prefix=$need_lib_prefix
  30366. -
  30367. -# Do we need a version for libraries?
  30368. -need_version=$need_version
  30369. -
  30370. -# Whether dlopen is supported.
  30371. -dlopen_support=$enable_dlopen
  30372. -
  30373. -# Whether dlopen of programs is supported.
  30374. -dlopen_self=$enable_dlopen_self
  30375. -
  30376. -# Whether dlopen of statically linked programs is supported.
  30377. -dlopen_self_static=$enable_dlopen_self_static
  30378. -
  30379. -# Compiler flag to prevent dynamic linking.
  30380. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  30381. -
  30382. -# Compiler flag to turn off builtin functions.
  30383. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  30384. -
  30385. -# Compiler flag to allow reflexive dlopens.
  30386. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  30387. -
  30388. -# Compiler flag to generate shared objects directly from archives.
  30389. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  30390. -
  30391. -# Compiler flag to generate thread-safe objects.
  30392. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  30393. -
  30394. -# Library versioning type.
  30395. -version_type=$version_type
  30396. -
  30397. -# Format of library name prefix.
  30398. -libname_spec=$lt_libname_spec
  30399. -
  30400. -# List of archive names. First name is the real one, the rest are links.
  30401. -# The last name is the one that the linker finds with -lNAME.
  30402. -library_names_spec=$lt_library_names_spec
  30403. -
  30404. -# The coded name of the library, if different from the real name.
  30405. -soname_spec=$lt_soname_spec
  30406. -
  30407. -# Commands used to build and install an old-style archive.
  30408. -RANLIB=$lt_RANLIB
  30409. -old_archive_cmds=$lt_old_archive_cmds_CXX
  30410. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30411. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30412. -
  30413. -# Create an old-style archive from a shared archive.
  30414. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  30415. -
  30416. -# Create a temporary old-style archive to link instead of a shared archive.
  30417. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  30418. -
  30419. -# Commands used to build and install a shared archive.
  30420. -archive_cmds=$lt_archive_cmds_CXX
  30421. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  30422. -postinstall_cmds=$lt_postinstall_cmds
  30423. -postuninstall_cmds=$lt_postuninstall_cmds
  30424. -
  30425. -# Commands used to build a loadable module (assumed same as above if empty)
  30426. -module_cmds=$lt_module_cmds_CXX
  30427. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  30428. -
  30429. -# Commands to strip libraries.
  30430. -old_striplib=$lt_old_striplib
  30431. -striplib=$lt_striplib
  30432. -
  30433. -# Dependencies to place before the objects being linked to create a
  30434. -# shared library.
  30435. -predep_objects=$lt_predep_objects_CXX
  30436. -
  30437. -# Dependencies to place after the objects being linked to create a
  30438. -# shared library.
  30439. -postdep_objects=$lt_postdep_objects_CXX
  30440. -
  30441. -# Dependencies to place before the objects being linked to create a
  30442. -# shared library.
  30443. -predeps=$lt_predeps_CXX
  30444. -
  30445. -# Dependencies to place after the objects being linked to create a
  30446. -# shared library.
  30447. -postdeps=$lt_postdeps_CXX
  30448. -
  30449. -# The library search path used internally by the compiler when linking
  30450. -# a shared library.
  30451. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  30452. -
  30453. -# Method to check whether dependent libraries are shared objects.
  30454. -deplibs_check_method=$lt_deplibs_check_method
  30455. -
  30456. -# Command to use when deplibs_check_method == file_magic.
  30457. -file_magic_cmd=$lt_file_magic_cmd
  30458. -
  30459. -# Flag that allows shared libraries with undefined symbols to be built.
  30460. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  30461. -
  30462. -# Flag that forces no undefined symbols.
  30463. -no_undefined_flag=$lt_no_undefined_flag_CXX
  30464. -
  30465. -# Commands used to finish a libtool library installation in a directory.
  30466. -finish_cmds=$lt_finish_cmds
  30467. -
  30468. -# Same as above, but a single script fragment to be evaled but not shown.
  30469. -finish_eval=$lt_finish_eval
  30470. -
  30471. -# Take the output of nm and produce a listing of raw symbols and C names.
  30472. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30473. -
  30474. -# Transform the output of nm in a proper C declaration
  30475. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30476. -
  30477. -# Transform the output of nm in a C name address pair
  30478. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30479. -
  30480. -# This is the shared library runtime path variable.
  30481. -runpath_var=$runpath_var
  30482. -
  30483. -# This is the shared library path variable.
  30484. -shlibpath_var=$shlibpath_var
  30485. -
  30486. -# Is shlibpath searched before the hard-coded library search path?
  30487. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30488. -
  30489. -# How to hardcode a shared library path into an executable.
  30490. -hardcode_action=$hardcode_action_CXX
  30491. -
  30492. -# Whether we should hardcode library paths into libraries.
  30493. -hardcode_into_libs=$hardcode_into_libs
  30494. -
  30495. -# Flag to hardcode \$libdir into a binary during linking.
  30496. -# This must work even if \$libdir does not exist.
  30497. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  30498. -
  30499. -# If ld is used when linking, flag to hardcode \$libdir into
  30500. -# a binary during linking. This must work even if \$libdir does
  30501. -# not exist.
  30502. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  30503. -
  30504. -# Whether we need a single -rpath flag with a separated argument.
  30505. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  30506. -
  30507. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30508. -# resulting binary.
  30509. -hardcode_direct=$hardcode_direct_CXX
  30510. -
  30511. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30512. -# resulting binary.
  30513. -hardcode_minus_L=$hardcode_minus_L_CXX
  30514. -
  30515. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30516. -# the resulting binary.
  30517. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  30518. -
  30519. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30520. -# and all subsequent libraries and executables linked against it.
  30521. -hardcode_automatic=$hardcode_automatic_CXX
  30522. -
  30523. -# Variables whose values should be saved in libtool wrapper scripts and
  30524. -# restored at relink time.
  30525. -variables_saved_for_relink="$variables_saved_for_relink"
  30526. -
  30527. -# Whether libtool must link a program against all its dependency libraries.
  30528. -link_all_deplibs=$link_all_deplibs_CXX
  30529. -
  30530. -# Compile-time system search path for libraries
  30531. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30532. -
  30533. -# Run-time system search path for libraries
  30534. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30535. -
  30536. -# Fix the shell variable \$srcfile for the compiler.
  30537. -fix_srcfile_path="$fix_srcfile_path_CXX"
  30538. -
  30539. -# Set to yes if exported symbols are required.
  30540. -always_export_symbols=$always_export_symbols_CXX
  30541. -
  30542. -# The commands to list exported symbols.
  30543. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  30544. -
  30545. -# The commands to extract the exported symbol list from a shared archive.
  30546. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30547. -
  30548. -# Symbols that should not be listed in the preloaded symbols.
  30549. -exclude_expsyms=$lt_exclude_expsyms_CXX
  30550. -
  30551. -# Symbols that must always be exported.
  30552. -include_expsyms=$lt_include_expsyms_CXX
  30553. -
  30554. -# ### END LIBTOOL TAG CONFIG: $tagname
  30555. -
  30556. -__EOF__
  30557. -
  30558. -
  30559. -else
  30560. - # If there is no Makefile yet, we rely on a make rule to execute
  30561. - # `config.status --recheck' to rerun these tests and create the
  30562. - # libtool script then.
  30563. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  30564. - if test -f "$ltmain_in"; then
  30565. - test -f Makefile && make "$ltmain"
  30566. - fi
  30567. -fi
  30568. -
  30569. -
  30570. -ac_ext=c
  30571. -ac_cpp='$CPP $CPPFLAGS'
  30572. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30573. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30574. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30575. -
  30576. -CC=$lt_save_CC
  30577. -LDCXX=$LD
  30578. -LD=$lt_save_LD
  30579. -GCC=$lt_save_GCC
  30580. -with_gnu_ldcxx=$with_gnu_ld
  30581. -with_gnu_ld=$lt_save_with_gnu_ld
  30582. -lt_cv_path_LDCXX=$lt_cv_path_LD
  30583. -lt_cv_path_LD=$lt_save_path_LD
  30584. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  30585. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  30586. -
  30587. - else
  30588. - tagname=""
  30589. - fi
  30590. - ;;
  30591. -
  30592. - F77)
  30593. - if test -n "$F77" && test "X$F77" != "Xno"; then
  30594. -
  30595. -ac_ext=f
  30596. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  30597. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30598. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  30599. -
  30600. -
  30601. -archive_cmds_need_lc_F77=no
  30602. -allow_undefined_flag_F77=
  30603. -always_export_symbols_F77=no
  30604. -archive_expsym_cmds_F77=
  30605. -export_dynamic_flag_spec_F77=
  30606. -hardcode_direct_F77=no
  30607. -hardcode_libdir_flag_spec_F77=
  30608. -hardcode_libdir_flag_spec_ld_F77=
  30609. -hardcode_libdir_separator_F77=
  30610. -hardcode_minus_L_F77=no
  30611. -hardcode_automatic_F77=no
  30612. -module_cmds_F77=
  30613. -module_expsym_cmds_F77=
  30614. -link_all_deplibs_F77=unknown
  30615. -old_archive_cmds_F77=$old_archive_cmds
  30616. -no_undefined_flag_F77=
  30617. -whole_archive_flag_spec_F77=
  30618. -enable_shared_with_static_runtimes_F77=no
  30619. -
  30620. -# Source file extension for f77 test sources.
  30621. -ac_ext=f
  30622. -
  30623. -# Object file extension for compiled f77 test sources.
  30624. -objext=o
  30625. -objext_F77=$objext
  30626. -
  30627. -# Code to be used in simple compile tests
  30628. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  30629. -
  30630. -# Code to be used in simple link tests
  30631. -lt_simple_link_test_code=" program t\n end\n"
  30632. -
  30633. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30634. -
  30635. -# If no C compiler was specified, use CC.
  30636. -LTCC=${LTCC-"$CC"}
  30637. -
  30638. -# If no C compiler flags were specified, use CFLAGS.
  30639. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  30640. -
  30641. -# Allow CC to be a program name with arguments.
  30642. -compiler=$CC
  30643. -
  30644. -
  30645. -# save warnings/boilerplate of simple test code
  30646. -ac_outfile=conftest.$ac_objext
  30647. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  30648. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30649. -_lt_compiler_boilerplate=`cat conftest.err`
  30650. -$rm conftest*
  30651. -
  30652. -ac_outfile=conftest.$ac_objext
  30653. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  30654. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  30655. -_lt_linker_boilerplate=`cat conftest.err`
  30656. -$rm conftest*
  30657. -
  30658. -
  30659. -# Allow CC to be a program name with arguments.
  30660. -lt_save_CC="$CC"
  30661. -CC=${F77-"f77"}
  30662. -compiler=$CC
  30663. -compiler_F77=$CC
  30664. -for cc_temp in $compiler""; do
  30665. - case $cc_temp in
  30666. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30667. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30668. - \-*) ;;
  30669. - *) break;;
  30670. - esac
  30671. -done
  30672. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30673. -
  30674. -
  30675. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30676. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  30677. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30678. -echo "${ECHO_T}$can_build_shared" >&6; }
  30679. -
  30680. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30681. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  30682. -test "$can_build_shared" = "no" && enable_shared=no
  30683. -
  30684. -# On AIX, shared libraries and static libraries use the same namespace, and
  30685. -# are all built from PIC.
  30686. -case $host_os in
  30687. -aix3*)
  30688. - test "$enable_shared" = yes && enable_static=no
  30689. - if test -n "$RANLIB"; then
  30690. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30691. - postinstall_cmds='$RANLIB $lib'
  30692. - fi
  30693. - ;;
  30694. -aix4* | aix5*)
  30695. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30696. - test "$enable_shared" = yes && enable_static=no
  30697. - fi
  30698. - ;;
  30699. -esac
  30700. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  30701. -echo "${ECHO_T}$enable_shared" >&6; }
  30702. -
  30703. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30704. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  30705. -# Make sure either enable_shared or enable_static is yes.
  30706. -test "$enable_shared" = yes || enable_static=yes
  30707. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  30708. -echo "${ECHO_T}$enable_static" >&6; }
  30709. -
  30710. -GCC_F77="$G77"
  30711. -LD_F77="$LD"
  30712. -
  30713. -lt_prog_compiler_wl_F77=
  30714. -lt_prog_compiler_pic_F77=
  30715. -lt_prog_compiler_static_F77=
  30716. -
  30717. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30718. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  30719. -
  30720. - if test "$GCC" = yes; then
  30721. - lt_prog_compiler_wl_F77='-Wl,'
  30722. - lt_prog_compiler_static_F77='-static'
  30723. -
  30724. - case $host_os in
  30725. - aix*)
  30726. - # All AIX code is PIC.
  30727. - if test "$host_cpu" = ia64; then
  30728. - # AIX 5 now supports IA64 processor
  30729. - lt_prog_compiler_static_F77='-Bstatic'
  30730. - fi
  30731. - ;;
  30732. -
  30733. - amigaos*)
  30734. - # FIXME: we need at least 68020 code to build shared libraries, but
  30735. - # adding the `-m68020' flag to GCC prevents building anything better,
  30736. - # like `-m68040'.
  30737. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  30738. - ;;
  30739. -
  30740. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30741. - # PIC is the default for these OSes.
  30742. - ;;
  30743. -
  30744. - mingw* | pw32* | os2*)
  30745. - # This hack is so that the source file can tell whether it is being
  30746. - # built for inclusion in a dll (and should export symbols for example).
  30747. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30748. - ;;
  30749. -
  30750. - darwin* | rhapsody*)
  30751. - # PIC is the default on this platform
  30752. - # Common symbols not allowed in MH_DYLIB files
  30753. - lt_prog_compiler_pic_F77='-fno-common'
  30754. - ;;
  30755. -
  30756. - interix3*)
  30757. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  30758. - # Instead, we relocate shared libraries at runtime.
  30759. - ;;
  30760. -
  30761. - msdosdjgpp*)
  30762. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  30763. - # on systems that don't support them.
  30764. - lt_prog_compiler_can_build_shared_F77=no
  30765. - enable_shared=no
  30766. - ;;
  30767. -
  30768. - sysv4*MP*)
  30769. - if test -d /usr/nec; then
  30770. - lt_prog_compiler_pic_F77=-Kconform_pic
  30771. - fi
  30772. - ;;
  30773. -
  30774. - hpux*)
  30775. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30776. - # not for PA HP-UX.
  30777. - case $host_cpu in
  30778. - hppa*64*|ia64*)
  30779. - # +Z the default
  30780. - ;;
  30781. - *)
  30782. - lt_prog_compiler_pic_F77='-fPIC'
  30783. - ;;
  30784. - esac
  30785. - ;;
  30786. -
  30787. - *)
  30788. - lt_prog_compiler_pic_F77='-fPIC'
  30789. - ;;
  30790. - esac
  30791. - else
  30792. - # PORTME Check for flag to pass linker flags through the system compiler.
  30793. - case $host_os in
  30794. - aix*)
  30795. - lt_prog_compiler_wl_F77='-Wl,'
  30796. - if test "$host_cpu" = ia64; then
  30797. - # AIX 5 now supports IA64 processor
  30798. - lt_prog_compiler_static_F77='-Bstatic'
  30799. - else
  30800. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  30801. - fi
  30802. - ;;
  30803. - darwin*)
  30804. - # PIC is the default on this platform
  30805. - # Common symbols not allowed in MH_DYLIB files
  30806. - case $cc_basename in
  30807. - xlc*)
  30808. - lt_prog_compiler_pic_F77='-qnocommon'
  30809. - lt_prog_compiler_wl_F77='-Wl,'
  30810. - ;;
  30811. - esac
  30812. - ;;
  30813. -
  30814. - mingw* | pw32* | os2*)
  30815. - # This hack is so that the source file can tell whether it is being
  30816. - # built for inclusion in a dll (and should export symbols for example).
  30817. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30818. - ;;
  30819. -
  30820. - hpux9* | hpux10* | hpux11*)
  30821. - lt_prog_compiler_wl_F77='-Wl,'
  30822. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30823. - # not for PA HP-UX.
  30824. - case $host_cpu in
  30825. - hppa*64*|ia64*)
  30826. - # +Z the default
  30827. - ;;
  30828. - *)
  30829. - lt_prog_compiler_pic_F77='+Z'
  30830. - ;;
  30831. - esac
  30832. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  30833. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  30834. - ;;
  30835. -
  30836. - irix5* | irix6* | nonstopux*)
  30837. - lt_prog_compiler_wl_F77='-Wl,'
  30838. - # PIC (with -KPIC) is the default.
  30839. - lt_prog_compiler_static_F77='-non_shared'
  30840. - ;;
  30841. -
  30842. - newsos6)
  30843. - lt_prog_compiler_pic_F77='-KPIC'
  30844. - lt_prog_compiler_static_F77='-Bstatic'
  30845. - ;;
  30846. -
  30847. - linux* | k*bsd*-gnu)
  30848. - case $cc_basename in
  30849. - icc* | ecc*)
  30850. - lt_prog_compiler_wl_F77='-Wl,'
  30851. - lt_prog_compiler_pic_F77='-KPIC'
  30852. - lt_prog_compiler_static_F77='-static'
  30853. - ;;
  30854. - pgcc* | pgf77* | pgf90* | pgf95*)
  30855. - # Portland Group compilers (*not* the Pentium gcc compiler,
  30856. - # which looks to be a dead project)
  30857. - lt_prog_compiler_wl_F77='-Wl,'
  30858. - lt_prog_compiler_pic_F77='-fpic'
  30859. - lt_prog_compiler_static_F77='-Bstatic'
  30860. - ;;
  30861. - ccc*)
  30862. - lt_prog_compiler_wl_F77='-Wl,'
  30863. - # All Alpha code is PIC.
  30864. - lt_prog_compiler_static_F77='-non_shared'
  30865. - ;;
  30866. - esac
  30867. - ;;
  30868. -
  30869. - osf3* | osf4* | osf5*)
  30870. - lt_prog_compiler_wl_F77='-Wl,'
  30871. - # All OSF/1 code is PIC.
  30872. - lt_prog_compiler_static_F77='-non_shared'
  30873. - ;;
  30874. -
  30875. - solaris*)
  30876. - lt_prog_compiler_pic_F77='-KPIC'
  30877. - lt_prog_compiler_static_F77='-Bstatic'
  30878. - case $cc_basename in
  30879. - f77* | f90* | f95*)
  30880. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  30881. - *)
  30882. - lt_prog_compiler_wl_F77='-Wl,';;
  30883. - esac
  30884. - ;;
  30885. -
  30886. - sunos4*)
  30887. - lt_prog_compiler_wl_F77='-Qoption ld '
  30888. - lt_prog_compiler_pic_F77='-PIC'
  30889. - lt_prog_compiler_static_F77='-Bstatic'
  30890. - ;;
  30891. -
  30892. - sysv4 | sysv4.2uw2* | sysv4.3*)
  30893. - lt_prog_compiler_wl_F77='-Wl,'
  30894. - lt_prog_compiler_pic_F77='-KPIC'
  30895. - lt_prog_compiler_static_F77='-Bstatic'
  30896. - ;;
  30897. -
  30898. - sysv4*MP*)
  30899. - if test -d /usr/nec ;then
  30900. - lt_prog_compiler_pic_F77='-Kconform_pic'
  30901. - lt_prog_compiler_static_F77='-Bstatic'
  30902. - fi
  30903. - ;;
  30904. -
  30905. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30906. - lt_prog_compiler_wl_F77='-Wl,'
  30907. - lt_prog_compiler_pic_F77='-KPIC'
  30908. - lt_prog_compiler_static_F77='-Bstatic'
  30909. - ;;
  30910. -
  30911. - unicos*)
  30912. - lt_prog_compiler_wl_F77='-Wl,'
  30913. - lt_prog_compiler_can_build_shared_F77=no
  30914. - ;;
  30915. -
  30916. - uts4*)
  30917. - lt_prog_compiler_pic_F77='-pic'
  30918. - lt_prog_compiler_static_F77='-Bstatic'
  30919. - ;;
  30920. -
  30921. - *)
  30922. - lt_prog_compiler_can_build_shared_F77=no
  30923. - ;;
  30924. - esac
  30925. - fi
  30926. -
  30927. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  30928. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  30929. -
  30930. -#
  30931. -# Check to make sure the PIC flag actually works.
  30932. -#
  30933. -if test -n "$lt_prog_compiler_pic_F77"; then
  30934. -
  30935. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  30936. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  30937. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  30938. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30939. -else
  30940. - lt_prog_compiler_pic_works_F77=no
  30941. - ac_outfile=conftest.$ac_objext
  30942. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30943. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  30944. - # Insert the option either (1) after the last *FLAGS variable, or
  30945. - # (2) before a word containing "conftest.", or (3) at the end.
  30946. - # Note that $ac_compile itself does not contain backslashes and begins
  30947. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30948. - # The option is referenced via a variable to avoid confusing sed.
  30949. - lt_compile=`echo "$ac_compile" | $SED \
  30950. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30951. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30952. - -e 's:$: $lt_compiler_flag:'`
  30953. - (eval echo "\"\$as_me:13915: $lt_compile\"" >&5)
  30954. - (eval "$lt_compile" 2>conftest.err)
  30955. - ac_status=$?
  30956. - cat conftest.err >&5
  30957. - echo "$as_me:13919: \$? = $ac_status" >&5
  30958. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30959. - # The compiler can only warn and ignore the option if not recognized
  30960. - # So say no if there are warnings other than the usual output.
  30961. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30962. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30963. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30964. - lt_prog_compiler_pic_works_F77=yes
  30965. - fi
  30966. - fi
  30967. - $rm conftest*
  30968. -
  30969. -fi
  30970. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  30971. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  30972. -
  30973. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  30974. - case $lt_prog_compiler_pic_F77 in
  30975. - "" | " "*) ;;
  30976. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  30977. - esac
  30978. -else
  30979. - lt_prog_compiler_pic_F77=
  30980. - lt_prog_compiler_can_build_shared_F77=no
  30981. -fi
  30982. -
  30983. -fi
  30984. -case $host_os in
  30985. - # For platforms which do not support PIC, -DPIC is meaningless:
  30986. - *djgpp*)
  30987. - lt_prog_compiler_pic_F77=
  30988. - ;;
  30989. - *)
  30990. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  30991. - ;;
  30992. -esac
  30993. -
  30994. -#
  30995. -# Check to make sure the static flag actually works.
  30996. -#
  30997. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  30998. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30999. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  31000. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  31001. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31002. -else
  31003. - lt_prog_compiler_static_works_F77=no
  31004. - save_LDFLAGS="$LDFLAGS"
  31005. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  31006. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  31007. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  31008. - # The linker can only warn and ignore the option if not recognized
  31009. - # So say no if there are warnings
  31010. - if test -s conftest.err; then
  31011. - # Append any errors to the config.log.
  31012. - cat conftest.err 1>&5
  31013. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  31014. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  31015. - if diff conftest.exp conftest.er2 >/dev/null; then
  31016. - lt_prog_compiler_static_works_F77=yes
  31017. - fi
  31018. - else
  31019. - lt_prog_compiler_static_works_F77=yes
  31020. - fi
  31021. - fi
  31022. - $rm conftest*
  31023. - LDFLAGS="$save_LDFLAGS"
  31024. -
  31025. -fi
  31026. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  31027. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  31028. -
  31029. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  31030. - :
  31031. -else
  31032. - lt_prog_compiler_static_F77=
  31033. -fi
  31034. -
  31035. -
  31036. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  31037. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  31038. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  31039. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31040. -else
  31041. - lt_cv_prog_compiler_c_o_F77=no
  31042. - $rm -r conftest 2>/dev/null
  31043. - mkdir conftest
  31044. - cd conftest
  31045. - mkdir out
  31046. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31047. -
  31048. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31049. - # Insert the option either (1) after the last *FLAGS variable, or
  31050. - # (2) before a word containing "conftest.", or (3) at the end.
  31051. - # Note that $ac_compile itself does not contain backslashes and begins
  31052. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31053. - lt_compile=`echo "$ac_compile" | $SED \
  31054. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  31055. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31056. - -e 's:$: $lt_compiler_flag:'`
  31057. - (eval echo "\"\$as_me:14019: $lt_compile\"" >&5)
  31058. - (eval "$lt_compile" 2>out/conftest.err)
  31059. - ac_status=$?
  31060. - cat out/conftest.err >&5
  31061. - echo "$as_me:14023: \$? = $ac_status" >&5
  31062. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31063. - then
  31064. - # The compiler can only warn and ignore the option if not recognized
  31065. - # So say no if there are warnings
  31066. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  31067. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  31068. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31069. - lt_cv_prog_compiler_c_o_F77=yes
  31070. - fi
  31071. - fi
  31072. - chmod u+w . 2>&5
  31073. - $rm conftest*
  31074. - # SGI C++ compiler will create directory out/ii_files/ for
  31075. - # template instantiation
  31076. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31077. - $rm out/* && rmdir out
  31078. - cd ..
  31079. - rmdir conftest
  31080. - $rm conftest*
  31081. -
  31082. -fi
  31083. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  31084. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  31085. -
  31086. -
  31087. -hard_links="nottested"
  31088. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  31089. - # do not overwrite the value of need_locks provided by the user
  31090. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31091. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  31092. - hard_links=yes
  31093. - $rm conftest*
  31094. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31095. - touch conftest.a
  31096. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31097. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31098. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  31099. -echo "${ECHO_T}$hard_links" >&6; }
  31100. - if test "$hard_links" = no; then
  31101. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31102. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31103. - need_locks=warn
  31104. - fi
  31105. -else
  31106. - need_locks=no
  31107. -fi
  31108. -
  31109. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31110. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  31111. -
  31112. - runpath_var=
  31113. - allow_undefined_flag_F77=
  31114. - enable_shared_with_static_runtimes_F77=no
  31115. - archive_cmds_F77=
  31116. - archive_expsym_cmds_F77=
  31117. - old_archive_From_new_cmds_F77=
  31118. - old_archive_from_expsyms_cmds_F77=
  31119. - export_dynamic_flag_spec_F77=
  31120. - whole_archive_flag_spec_F77=
  31121. - thread_safe_flag_spec_F77=
  31122. - hardcode_libdir_flag_spec_F77=
  31123. - hardcode_libdir_flag_spec_ld_F77=
  31124. - hardcode_libdir_separator_F77=
  31125. - hardcode_direct_F77=no
  31126. - hardcode_minus_L_F77=no
  31127. - hardcode_shlibpath_var_F77=unsupported
  31128. - link_all_deplibs_F77=unknown
  31129. - hardcode_automatic_F77=no
  31130. - module_cmds_F77=
  31131. - module_expsym_cmds_F77=
  31132. - always_export_symbols_F77=no
  31133. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31134. - # include_expsyms should be a list of space-separated symbols to be *always*
  31135. - # included in the symbol list
  31136. - include_expsyms_F77=
  31137. - # exclude_expsyms can be an extended regexp of symbols to exclude
  31138. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  31139. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  31140. - # as well as any symbol that contains `d'.
  31141. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  31142. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  31143. - # platforms (ab)use it in PIC code, but their linkers get confused if
  31144. - # the symbol is explicitly referenced. Since portable code cannot
  31145. - # rely on this symbol name, it's probably fine to never include it in
  31146. - # preloaded symbol tables.
  31147. - extract_expsyms_cmds=
  31148. - # Just being paranoid about ensuring that cc_basename is set.
  31149. - for cc_temp in $compiler""; do
  31150. - case $cc_temp in
  31151. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31152. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31153. - \-*) ;;
  31154. - *) break;;
  31155. - esac
  31156. -done
  31157. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31158. -
  31159. - case $host_os in
  31160. - cygwin* | mingw* | pw32*)
  31161. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  31162. - # When not using gcc, we currently assume that we are using
  31163. - # Microsoft Visual C++.
  31164. - if test "$GCC" != yes; then
  31165. - with_gnu_ld=no
  31166. - fi
  31167. - ;;
  31168. - interix*)
  31169. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  31170. - with_gnu_ld=yes
  31171. - ;;
  31172. - openbsd*)
  31173. - with_gnu_ld=no
  31174. - ;;
  31175. - esac
  31176. -
  31177. - ld_shlibs_F77=yes
  31178. - if test "$with_gnu_ld" = yes; then
  31179. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31180. - wlarc='${wl}'
  31181. -
  31182. - # Set some defaults for GNU ld with shared library support. These
  31183. - # are reset later if shared libraries are not supported. Putting them
  31184. - # here allows them to be overridden if necessary.
  31185. - runpath_var=LD_RUN_PATH
  31186. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  31187. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  31188. - # ancient GNU ld didn't support --whole-archive et. al.
  31189. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  31190. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31191. - else
  31192. - whole_archive_flag_spec_F77=
  31193. - fi
  31194. - supports_anon_versioning=no
  31195. - case `$LD -v 2>/dev/null` in
  31196. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  31197. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  31198. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  31199. - *\ 2.11.*) ;; # other 2.11 versions
  31200. - *) supports_anon_versioning=yes ;;
  31201. - esac
  31202. -
  31203. - # See if GNU ld supports shared libraries.
  31204. - case $host_os in
  31205. - aix3* | aix4* | aix5*)
  31206. - # On AIX/PPC, the GNU linker is very broken
  31207. - if test "$host_cpu" != ia64; then
  31208. - ld_shlibs_F77=no
  31209. - cat <<EOF 1>&2
  31210. -
  31211. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  31212. -*** to be unable to reliably create shared libraries on AIX.
  31213. -*** Therefore, libtool is disabling shared libraries support. If you
  31214. -*** really care for shared libraries, you may want to modify your PATH
  31215. -*** so that a non-GNU linker is found, and then restart.
  31216. -
  31217. -EOF
  31218. - fi
  31219. - ;;
  31220. -
  31221. - amigaos*)
  31222. - 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)'
  31223. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31224. - hardcode_minus_L_F77=yes
  31225. -
  31226. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  31227. - # that the semantics of dynamic libraries on AmigaOS, at least up
  31228. - # to version 4, is to share data among multiple programs linked
  31229. - # with the same dynamic library. Since this doesn't match the
  31230. - # behavior of shared libraries on other platforms, we can't use
  31231. - # them.
  31232. - ld_shlibs_F77=no
  31233. - ;;
  31234. -
  31235. - beos*)
  31236. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31237. - allow_undefined_flag_F77=unsupported
  31238. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  31239. - # support --undefined. This deserves some investigation. FIXME
  31240. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31241. - else
  31242. - ld_shlibs_F77=no
  31243. - fi
  31244. - ;;
  31245. -
  31246. - cygwin* | mingw* | pw32*)
  31247. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  31248. - # as there is no search path for DLLs.
  31249. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31250. - allow_undefined_flag_F77=unsupported
  31251. - always_export_symbols_F77=no
  31252. - enable_shared_with_static_runtimes_F77=yes
  31253. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  31254. -
  31255. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31256. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31257. - # If the export-symbols file already is a .def file (1st line
  31258. - # is EXPORTS), use it as is; otherwise, prepend...
  31259. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31260. - cp $export_symbols $output_objdir/$soname.def;
  31261. - else
  31262. - echo EXPORTS > $output_objdir/$soname.def;
  31263. - cat $export_symbols >> $output_objdir/$soname.def;
  31264. - fi~
  31265. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  31266. - else
  31267. - ld_shlibs_F77=no
  31268. - fi
  31269. - ;;
  31270. -
  31271. - interix3*)
  31272. - hardcode_direct_F77=no
  31273. - hardcode_shlibpath_var_F77=no
  31274. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31275. - export_dynamic_flag_spec_F77='${wl}-E'
  31276. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  31277. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  31278. - # default) and relocated if they conflict, which is a slow very memory
  31279. - # consuming and fragmenting process. To avoid this, we pick a random,
  31280. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  31281. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  31282. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  31283. - archive_expsym_cmds_F77='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'
  31284. - ;;
  31285. -
  31286. - linux* | k*bsd*-gnu)
  31287. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31288. - tmp_addflag=
  31289. - case $cc_basename,$host_cpu in
  31290. - pgcc*) # Portland Group C compiler
  31291. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31292. - tmp_addflag=' $pic_flag'
  31293. - ;;
  31294. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  31295. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  31296. - tmp_addflag=' $pic_flag -Mnomain' ;;
  31297. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  31298. - tmp_addflag=' -i_dynamic' ;;
  31299. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  31300. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  31301. - ifc* | ifort*) # Intel Fortran compiler
  31302. - tmp_addflag=' -nofor_main' ;;
  31303. - esac
  31304. - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31305. -
  31306. - if test $supports_anon_versioning = yes; then
  31307. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  31308. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  31309. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  31310. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  31311. - fi
  31312. - link_all_deplibs_F77=no
  31313. - else
  31314. - ld_shlibs_F77=no
  31315. - fi
  31316. - ;;
  31317. -
  31318. - netbsd* | netbsdelf*-gnu)
  31319. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31320. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  31321. - wlarc=
  31322. - else
  31323. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31324. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31325. - fi
  31326. - ;;
  31327. -
  31328. - solaris*)
  31329. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  31330. - ld_shlibs_F77=no
  31331. - cat <<EOF 1>&2
  31332. -
  31333. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  31334. -*** create shared libraries on Solaris systems. Therefore, libtool
  31335. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31336. -*** binutils to release 2.9.1 or newer. Another option is to modify
  31337. -*** your PATH or compiler configuration so that the native linker is
  31338. -*** used, and then restart.
  31339. -
  31340. -EOF
  31341. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31342. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31343. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31344. - else
  31345. - ld_shlibs_F77=no
  31346. - fi
  31347. - ;;
  31348. -
  31349. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  31350. - case `$LD -v 2>&1` in
  31351. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  31352. - ld_shlibs_F77=no
  31353. - cat <<_LT_EOF 1>&2
  31354. -
  31355. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  31356. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  31357. -*** is disabling shared libraries support. We urge you to upgrade GNU
  31358. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  31359. -*** your PATH or compiler configuration so that the native linker is
  31360. -*** used, and then restart.
  31361. -
  31362. -_LT_EOF
  31363. - ;;
  31364. - *)
  31365. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31366. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  31367. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  31368. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  31369. - else
  31370. - ld_shlibs_F77=no
  31371. - fi
  31372. - ;;
  31373. - esac
  31374. - ;;
  31375. -
  31376. - sunos4*)
  31377. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31378. - wlarc=
  31379. - hardcode_direct_F77=yes
  31380. - hardcode_shlibpath_var_F77=no
  31381. - ;;
  31382. -
  31383. - *)
  31384. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  31385. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31386. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31387. - else
  31388. - ld_shlibs_F77=no
  31389. - fi
  31390. - ;;
  31391. - esac
  31392. -
  31393. - if test "$ld_shlibs_F77" = no; then
  31394. - runpath_var=
  31395. - hardcode_libdir_flag_spec_F77=
  31396. - export_dynamic_flag_spec_F77=
  31397. - whole_archive_flag_spec_F77=
  31398. - fi
  31399. - else
  31400. - # PORTME fill in a description of your system's linker (not GNU ld)
  31401. - case $host_os in
  31402. - aix3*)
  31403. - allow_undefined_flag_F77=unsupported
  31404. - always_export_symbols_F77=yes
  31405. - 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'
  31406. - # Note: this linker hardcodes the directories in LIBPATH if there
  31407. - # are no directories specified by -L.
  31408. - hardcode_minus_L_F77=yes
  31409. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  31410. - # Neither direct hardcoding nor static linking is supported with a
  31411. - # broken collect2.
  31412. - hardcode_direct_F77=unsupported
  31413. - fi
  31414. - ;;
  31415. -
  31416. - aix4* | aix5*)
  31417. - if test "$host_cpu" = ia64; then
  31418. - # On IA64, the linker does run time linking by default, so we don't
  31419. - # have to do anything special.
  31420. - aix_use_runtimelinking=no
  31421. - exp_sym_flag='-Bexport'
  31422. - no_entry_flag=""
  31423. - else
  31424. - # If we're using GNU nm, then we don't want the "-C" option.
  31425. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31426. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31427. - 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'
  31428. - else
  31429. - 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'
  31430. - fi
  31431. - aix_use_runtimelinking=no
  31432. -
  31433. - # Test if we are trying to use run time linking or normal
  31434. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31435. - # need to do runtime linking.
  31436. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  31437. - for ld_flag in $LDFLAGS; do
  31438. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  31439. - aix_use_runtimelinking=yes
  31440. - break
  31441. - fi
  31442. - done
  31443. - ;;
  31444. - esac
  31445. -
  31446. - exp_sym_flag='-bexport'
  31447. - no_entry_flag='-bnoentry'
  31448. - fi
  31449. -
  31450. - # When large executables or shared objects are built, AIX ld can
  31451. - # have problems creating the table of contents. If linking a library
  31452. - # or program results in "error TOC overflow" add -mminimal-toc to
  31453. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31454. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31455. -
  31456. - archive_cmds_F77=''
  31457. - hardcode_direct_F77=yes
  31458. - hardcode_libdir_separator_F77=':'
  31459. - link_all_deplibs_F77=yes
  31460. -
  31461. - if test "$GCC" = yes; then
  31462. - case $host_os in aix4.[012]|aix4.[012].*)
  31463. - # We only want to do this on AIX 4.2 and lower, the check
  31464. - # below for broken collect2 doesn't work under 4.3+
  31465. - collect2name=`${CC} -print-prog-name=collect2`
  31466. - if test -f "$collect2name" && \
  31467. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  31468. - then
  31469. - # We have reworked collect2
  31470. - hardcode_direct_F77=yes
  31471. - else
  31472. - # We have old collect2
  31473. - hardcode_direct_F77=unsupported
  31474. - # It fails to find uninstalled libraries when the uninstalled
  31475. - # path is not listed in the libpath. Setting hardcode_minus_L
  31476. - # to unsupported forces relinking
  31477. - hardcode_minus_L_F77=yes
  31478. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31479. - hardcode_libdir_separator_F77=
  31480. - fi
  31481. - ;;
  31482. - esac
  31483. - shared_flag='-shared'
  31484. - if test "$aix_use_runtimelinking" = yes; then
  31485. - shared_flag="$shared_flag "'${wl}-G'
  31486. - fi
  31487. - else
  31488. - # not using gcc
  31489. - if test "$host_cpu" = ia64; then
  31490. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31491. - # chokes on -Wl,-G. The following line is correct:
  31492. - shared_flag='-G'
  31493. - else
  31494. - if test "$aix_use_runtimelinking" = yes; then
  31495. - shared_flag='${wl}-G'
  31496. - else
  31497. - shared_flag='${wl}-bM:SRE'
  31498. - fi
  31499. - fi
  31500. - fi
  31501. -
  31502. - # It seems that -bexpall does not export symbols beginning with
  31503. - # underscore (_), so it is better to generate a list of symbols to export.
  31504. - always_export_symbols_F77=yes
  31505. - if test "$aix_use_runtimelinking" = yes; then
  31506. - # Warning - without using the other runtime loading flags (-brtl),
  31507. - # -berok will link without error, but may produce a broken library.
  31508. - allow_undefined_flag_F77='-berok'
  31509. - # Determine the default libpath from the value encoded in an empty executable.
  31510. - cat >conftest.$ac_ext <<_ACEOF
  31511. - program main
  31512. -
  31513. - end
  31514. -_ACEOF
  31515. -rm -f conftest.$ac_objext conftest$ac_exeext
  31516. -if { (ac_try="$ac_link"
  31517. -case "(($ac_try" in
  31518. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31519. - *) ac_try_echo=$ac_try;;
  31520. -esac
  31521. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31522. - (eval "$ac_link") 2>conftest.er1
  31523. - ac_status=$?
  31524. - grep -v '^ *+' conftest.er1 >conftest.err
  31525. - rm -f conftest.er1
  31526. - cat conftest.err >&5
  31527. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31528. - (exit $ac_status); } && {
  31529. - test -z "$ac_f77_werror_flag" ||
  31530. - test ! -s conftest.err
  31531. - } && test -s conftest$ac_exeext &&
  31532. - $as_test_x conftest$ac_exeext; then
  31533. -
  31534. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31535. -}'`
  31536. -# Check for a 64-bit object if we didn't find anything.
  31537. -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; }
  31538. -}'`; fi
  31539. -else
  31540. - echo "$as_me: failed program was:" >&5
  31541. -sed 's/^/| /' conftest.$ac_ext >&5
  31542. -
  31543. -
  31544. -fi
  31545. -
  31546. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31547. - conftest$ac_exeext conftest.$ac_ext
  31548. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31549. -
  31550. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31551. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  31552. - else
  31553. - if test "$host_cpu" = ia64; then
  31554. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  31555. - allow_undefined_flag_F77="-z nodefs"
  31556. - archive_expsym_cmds_F77="\$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"
  31557. - else
  31558. - # Determine the default libpath from the value encoded in an empty executable.
  31559. - cat >conftest.$ac_ext <<_ACEOF
  31560. - program main
  31561. -
  31562. - end
  31563. -_ACEOF
  31564. -rm -f conftest.$ac_objext conftest$ac_exeext
  31565. -if { (ac_try="$ac_link"
  31566. -case "(($ac_try" in
  31567. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31568. - *) ac_try_echo=$ac_try;;
  31569. -esac
  31570. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31571. - (eval "$ac_link") 2>conftest.er1
  31572. - ac_status=$?
  31573. - grep -v '^ *+' conftest.er1 >conftest.err
  31574. - rm -f conftest.er1
  31575. - cat conftest.err >&5
  31576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31577. - (exit $ac_status); } && {
  31578. - test -z "$ac_f77_werror_flag" ||
  31579. - test ! -s conftest.err
  31580. - } && test -s conftest$ac_exeext &&
  31581. - $as_test_x conftest$ac_exeext; then
  31582. -
  31583. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31584. -}'`
  31585. -# Check for a 64-bit object if we didn't find anything.
  31586. -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; }
  31587. -}'`; fi
  31588. -else
  31589. - echo "$as_me: failed program was:" >&5
  31590. -sed 's/^/| /' conftest.$ac_ext >&5
  31591. -
  31592. -
  31593. -fi
  31594. -
  31595. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31596. - conftest$ac_exeext conftest.$ac_ext
  31597. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31598. -
  31599. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31600. - # Warning - without using the other run time loading flags,
  31601. - # -berok will link without error, but may produce a broken library.
  31602. - no_undefined_flag_F77=' ${wl}-bernotok'
  31603. - allow_undefined_flag_F77=' ${wl}-berok'
  31604. - # Exported symbols can be pulled into shared objects from archives
  31605. - whole_archive_flag_spec_F77='$convenience'
  31606. - archive_cmds_need_lc_F77=yes
  31607. - # This is similar to how AIX traditionally builds its shared libraries.
  31608. - archive_expsym_cmds_F77="\$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'
  31609. - fi
  31610. - fi
  31611. - ;;
  31612. -
  31613. - amigaos*)
  31614. - 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)'
  31615. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31616. - hardcode_minus_L_F77=yes
  31617. - # see comment about different semantics on the GNU ld section
  31618. - ld_shlibs_F77=no
  31619. - ;;
  31620. -
  31621. - bsdi[45]*)
  31622. - export_dynamic_flag_spec_F77=-rdynamic
  31623. - ;;
  31624. -
  31625. - cygwin* | mingw* | pw32*)
  31626. - # When not using gcc, we currently assume that we are using
  31627. - # Microsoft Visual C++.
  31628. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  31629. - # no search path for DLLs.
  31630. - hardcode_libdir_flag_spec_F77=' '
  31631. - allow_undefined_flag_F77=unsupported
  31632. - # Tell ltmain to make .lib files, not .a files.
  31633. - libext=lib
  31634. - # Tell ltmain to make .dll files, not .so files.
  31635. - shrext_cmds=".dll"
  31636. - # FIXME: Setting linknames here is a bad hack.
  31637. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  31638. - # The linker will automatically build a .lib file if we build a DLL.
  31639. - old_archive_From_new_cmds_F77='true'
  31640. - # FIXME: Should let the user specify the lib program.
  31641. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  31642. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  31643. - enable_shared_with_static_runtimes_F77=yes
  31644. - ;;
  31645. -
  31646. - darwin* | rhapsody*)
  31647. - case $host_os in
  31648. - rhapsody* | darwin1.[012])
  31649. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  31650. - ;;
  31651. - *) # Darwin 1.3 on
  31652. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31653. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31654. - else
  31655. - case ${MACOSX_DEPLOYMENT_TARGET} in
  31656. - 10.[012])
  31657. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  31658. - ;;
  31659. - 10.*)
  31660. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  31661. - ;;
  31662. - esac
  31663. - fi
  31664. - ;;
  31665. - esac
  31666. - archive_cmds_need_lc_F77=no
  31667. - hardcode_direct_F77=no
  31668. - hardcode_automatic_F77=yes
  31669. - hardcode_shlibpath_var_F77=unsupported
  31670. - whole_archive_flag_spec_F77=''
  31671. - link_all_deplibs_F77=yes
  31672. - if test "$GCC" = yes ; then
  31673. - output_verbose_link_cmd='echo'
  31674. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  31675. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31676. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  31677. - archive_expsym_cmds_F77='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}'
  31678. - 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}'
  31679. - else
  31680. - case $cc_basename in
  31681. - xlc*)
  31682. - output_verbose_link_cmd='echo'
  31683. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  31684. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31685. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  31686. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31687. - 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}'
  31688. - ;;
  31689. - *)
  31690. - ld_shlibs_F77=no
  31691. - ;;
  31692. - esac
  31693. - fi
  31694. - ;;
  31695. -
  31696. - dgux*)
  31697. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31698. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31699. - hardcode_shlibpath_var_F77=no
  31700. - ;;
  31701. -
  31702. - freebsd1*)
  31703. - ld_shlibs_F77=no
  31704. - ;;
  31705. -
  31706. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  31707. - # support. Future versions do this automatically, but an explicit c++rt0.o
  31708. - # does not break anything, and helps significantly (at the cost of a little
  31709. - # extra space).
  31710. - freebsd2.2*)
  31711. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  31712. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31713. - hardcode_direct_F77=yes
  31714. - hardcode_shlibpath_var_F77=no
  31715. - ;;
  31716. -
  31717. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  31718. - freebsd2*)
  31719. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31720. - hardcode_direct_F77=yes
  31721. - hardcode_minus_L_F77=yes
  31722. - hardcode_shlibpath_var_F77=no
  31723. - ;;
  31724. -
  31725. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  31726. - freebsd* | dragonfly*)
  31727. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  31728. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31729. - hardcode_direct_F77=yes
  31730. - hardcode_shlibpath_var_F77=no
  31731. - ;;
  31732. -
  31733. - hpux9*)
  31734. - if test "$GCC" = yes; then
  31735. - 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'
  31736. - else
  31737. - 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'
  31738. - fi
  31739. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31740. - hardcode_libdir_separator_F77=:
  31741. - hardcode_direct_F77=yes
  31742. -
  31743. - # hardcode_minus_L: Not really in the search PATH,
  31744. - # but as the default location of the library.
  31745. - hardcode_minus_L_F77=yes
  31746. - export_dynamic_flag_spec_F77='${wl}-E'
  31747. - ;;
  31748. -
  31749. - hpux10*)
  31750. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31751. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31752. - else
  31753. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  31754. - fi
  31755. - if test "$with_gnu_ld" = no; then
  31756. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31757. - hardcode_libdir_separator_F77=:
  31758. -
  31759. - hardcode_direct_F77=yes
  31760. - export_dynamic_flag_spec_F77='${wl}-E'
  31761. -
  31762. - # hardcode_minus_L: Not really in the search PATH,
  31763. - # but as the default location of the library.
  31764. - hardcode_minus_L_F77=yes
  31765. - fi
  31766. - ;;
  31767. -
  31768. - hpux11*)
  31769. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31770. - case $host_cpu in
  31771. - hppa*64*)
  31772. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31773. - ;;
  31774. - ia64*)
  31775. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31776. - ;;
  31777. - *)
  31778. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31779. - ;;
  31780. - esac
  31781. - else
  31782. - case $host_cpu in
  31783. - hppa*64*)
  31784. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31785. - ;;
  31786. - ia64*)
  31787. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  31788. - ;;
  31789. - *)
  31790. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31791. - ;;
  31792. - esac
  31793. - fi
  31794. - if test "$with_gnu_ld" = no; then
  31795. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31796. - hardcode_libdir_separator_F77=:
  31797. -
  31798. - case $host_cpu in
  31799. - hppa*64*|ia64*)
  31800. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  31801. - hardcode_direct_F77=no
  31802. - hardcode_shlibpath_var_F77=no
  31803. - ;;
  31804. - *)
  31805. - hardcode_direct_F77=yes
  31806. - export_dynamic_flag_spec_F77='${wl}-E'
  31807. -
  31808. - # hardcode_minus_L: Not really in the search PATH,
  31809. - # but as the default location of the library.
  31810. - hardcode_minus_L_F77=yes
  31811. - ;;
  31812. - esac
  31813. - fi
  31814. - ;;
  31815. -
  31816. - irix5* | irix6* | nonstopux*)
  31817. - if test "$GCC" = yes; then
  31818. - 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'
  31819. - else
  31820. - 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'
  31821. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  31822. - fi
  31823. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31824. - hardcode_libdir_separator_F77=:
  31825. - link_all_deplibs_F77=yes
  31826. - ;;
  31827. -
  31828. - netbsd* | netbsdelf*-gnu)
  31829. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31830. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31831. - else
  31832. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31833. - fi
  31834. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31835. - hardcode_direct_F77=yes
  31836. - hardcode_shlibpath_var_F77=no
  31837. - ;;
  31838. -
  31839. - newsos6)
  31840. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31841. - hardcode_direct_F77=yes
  31842. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31843. - hardcode_libdir_separator_F77=:
  31844. - hardcode_shlibpath_var_F77=no
  31845. - ;;
  31846. -
  31847. - openbsd*)
  31848. - hardcode_direct_F77=yes
  31849. - hardcode_shlibpath_var_F77=no
  31850. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31851. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31852. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  31853. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31854. - export_dynamic_flag_spec_F77='${wl}-E'
  31855. - else
  31856. - case $host_os in
  31857. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  31858. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31859. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31860. - ;;
  31861. - *)
  31862. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31863. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31864. - ;;
  31865. - esac
  31866. - fi
  31867. - ;;
  31868. -
  31869. - os2*)
  31870. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31871. - hardcode_minus_L_F77=yes
  31872. - allow_undefined_flag_F77=unsupported
  31873. - 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'
  31874. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  31875. - ;;
  31876. -
  31877. - osf3*)
  31878. - if test "$GCC" = yes; then
  31879. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31880. - 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'
  31881. - else
  31882. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31883. - 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'
  31884. - fi
  31885. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31886. - hardcode_libdir_separator_F77=:
  31887. - ;;
  31888. -
  31889. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  31890. - if test "$GCC" = yes; then
  31891. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31892. - 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'
  31893. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31894. - else
  31895. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31896. - 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'
  31897. - 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~
  31898. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  31899. -
  31900. - # Both c and cxx compiler support -rpath directly
  31901. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  31902. - fi
  31903. - hardcode_libdir_separator_F77=:
  31904. - ;;
  31905. -
  31906. - solaris*)
  31907. - no_undefined_flag_F77=' -z text'
  31908. - if test "$GCC" = yes; then
  31909. - wlarc='${wl}'
  31910. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31911. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31912. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  31913. - else
  31914. - wlarc=''
  31915. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31916. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31917. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  31918. - fi
  31919. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31920. - hardcode_shlibpath_var_F77=no
  31921. - case $host_os in
  31922. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31923. - *)
  31924. - # The compiler driver will combine linker options so we
  31925. - # cannot just pass the convience library names through
  31926. - # without $wl, iff we do not link with $LD.
  31927. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  31928. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  31929. - case $wlarc in
  31930. - '')
  31931. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  31932. - *)
  31933. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  31934. - esac ;;
  31935. - esac
  31936. - link_all_deplibs_F77=yes
  31937. - ;;
  31938. -
  31939. - sunos4*)
  31940. - if test "x$host_vendor" = xsequent; then
  31941. - # Use $CC to link under sequent, because it throws in some extra .o
  31942. - # files that make .init and .fini sections work.
  31943. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31944. - else
  31945. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  31946. - fi
  31947. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31948. - hardcode_direct_F77=yes
  31949. - hardcode_minus_L_F77=yes
  31950. - hardcode_shlibpath_var_F77=no
  31951. - ;;
  31952. -
  31953. - sysv4)
  31954. - case $host_vendor in
  31955. - sni)
  31956. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31957. - hardcode_direct_F77=yes # is this really true???
  31958. - ;;
  31959. - siemens)
  31960. - ## LD is ld it makes a PLAMLIB
  31961. - ## CC just makes a GrossModule.
  31962. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31963. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  31964. - hardcode_direct_F77=no
  31965. - ;;
  31966. - motorola)
  31967. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31968. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  31969. - ;;
  31970. - esac
  31971. - runpath_var='LD_RUN_PATH'
  31972. - hardcode_shlibpath_var_F77=no
  31973. - ;;
  31974. -
  31975. - sysv4.3*)
  31976. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31977. - hardcode_shlibpath_var_F77=no
  31978. - export_dynamic_flag_spec_F77='-Bexport'
  31979. - ;;
  31980. -
  31981. - sysv4*MP*)
  31982. - if test -d /usr/nec; then
  31983. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31984. - hardcode_shlibpath_var_F77=no
  31985. - runpath_var=LD_RUN_PATH
  31986. - hardcode_runpath_var=yes
  31987. - ld_shlibs_F77=yes
  31988. - fi
  31989. - ;;
  31990. -
  31991. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  31992. - no_undefined_flag_F77='${wl}-z,text'
  31993. - archive_cmds_need_lc_F77=no
  31994. - hardcode_shlibpath_var_F77=no
  31995. - runpath_var='LD_RUN_PATH'
  31996. -
  31997. - if test "$GCC" = yes; then
  31998. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31999. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32000. - else
  32001. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32002. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  32003. - fi
  32004. - ;;
  32005. -
  32006. - sysv5* | sco3.2v5* | sco5v6*)
  32007. - # Note: We can NOT use -z defs as we might desire, because we do not
  32008. - # link with -lc, and that would cause any symbols used from libc to
  32009. - # always be unresolved, which means just about no library would
  32010. - # ever link correctly. If we're not using GNU ld we use -z text
  32011. - # though, which does catch some bad symbols but isn't as heavy-handed
  32012. - # as -z defs.
  32013. - no_undefined_flag_F77='${wl}-z,text'
  32014. - allow_undefined_flag_F77='${wl}-z,nodefs'
  32015. - archive_cmds_need_lc_F77=no
  32016. - hardcode_shlibpath_var_F77=no
  32017. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  32018. - hardcode_libdir_separator_F77=':'
  32019. - link_all_deplibs_F77=yes
  32020. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  32021. - runpath_var='LD_RUN_PATH'
  32022. -
  32023. - if test "$GCC" = yes; then
  32024. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32025. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32026. - else
  32027. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32028. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  32029. - fi
  32030. - ;;
  32031. -
  32032. - uts4*)
  32033. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  32034. - hardcode_libdir_flag_spec_F77='-L$libdir'
  32035. - hardcode_shlibpath_var_F77=no
  32036. - ;;
  32037. -
  32038. - *)
  32039. - ld_shlibs_F77=no
  32040. - ;;
  32041. - esac
  32042. - fi
  32043. -
  32044. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  32045. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  32046. -test "$ld_shlibs_F77" = no && can_build_shared=no
  32047. -
  32048. -#
  32049. -# Do we need to explicitly link libc?
  32050. -#
  32051. -case "x$archive_cmds_need_lc_F77" in
  32052. -x|xyes)
  32053. - # Assume -lc should be added
  32054. - archive_cmds_need_lc_F77=yes
  32055. -
  32056. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  32057. - case $archive_cmds_F77 in
  32058. - *'~'*)
  32059. - # FIXME: we may have to deal with multi-command sequences.
  32060. - ;;
  32061. - '$CC '*)
  32062. - # Test whether the compiler implicitly links with -lc since on some
  32063. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  32064. - # to ld, don't add -lc before -lgcc.
  32065. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  32066. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  32067. - $rm conftest*
  32068. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  32069. -
  32070. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32071. - (eval $ac_compile) 2>&5
  32072. - ac_status=$?
  32073. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32074. - (exit $ac_status); } 2>conftest.err; then
  32075. - soname=conftest
  32076. - lib=conftest
  32077. - libobjs=conftest.$ac_objext
  32078. - deplibs=
  32079. - wl=$lt_prog_compiler_wl_F77
  32080. - pic_flag=$lt_prog_compiler_pic_F77
  32081. - compiler_flags=-v
  32082. - linker_flags=-v
  32083. - verstring=
  32084. - output_objdir=.
  32085. - libname=conftest
  32086. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  32087. - allow_undefined_flag_F77=
  32088. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  32089. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  32090. - ac_status=$?
  32091. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32092. - (exit $ac_status); }
  32093. - then
  32094. - archive_cmds_need_lc_F77=no
  32095. - else
  32096. - archive_cmds_need_lc_F77=yes
  32097. - fi
  32098. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  32099. - else
  32100. - cat conftest.err 1>&5
  32101. - fi
  32102. - $rm conftest*
  32103. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  32104. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  32105. - ;;
  32106. - esac
  32107. - fi
  32108. - ;;
  32109. -esac
  32110. -
  32111. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  32112. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  32113. -library_names_spec=
  32114. -libname_spec='lib$name'
  32115. -soname_spec=
  32116. -shrext_cmds=".so"
  32117. -postinstall_cmds=
  32118. -postuninstall_cmds=
  32119. -finish_cmds=
  32120. -finish_eval=
  32121. -shlibpath_var=
  32122. -shlibpath_overrides_runpath=unknown
  32123. -version_type=none
  32124. -dynamic_linker="$host_os ld.so"
  32125. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  32126. -if test "$GCC" = yes; then
  32127. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32128. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  32129. - # if the path contains ";" then we assume it to be the separator
  32130. - # otherwise default to the standard path separator (i.e. ":") - it is
  32131. - # assumed that no part of a normal pathname contains ";" but that should
  32132. - # okay in the real world where ";" in dirpaths is itself problematic.
  32133. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32134. - else
  32135. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32136. - fi
  32137. -else
  32138. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  32139. -fi
  32140. -need_lib_prefix=unknown
  32141. -hardcode_into_libs=no
  32142. -
  32143. -# when you set need_version to no, make sure it does not cause -set_version
  32144. -# flags to be left without arguments
  32145. -need_version=unknown
  32146. -
  32147. -case $host_os in
  32148. -aix3*)
  32149. - version_type=linux
  32150. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  32151. - shlibpath_var=LIBPATH
  32152. -
  32153. - # AIX 3 has no versioning support, so we append a major version to the name.
  32154. - soname_spec='${libname}${release}${shared_ext}$major'
  32155. - ;;
  32156. -
  32157. -aix4* | aix5*)
  32158. - version_type=linux
  32159. - need_lib_prefix=no
  32160. - need_version=no
  32161. - hardcode_into_libs=yes
  32162. - if test "$host_cpu" = ia64; then
  32163. - # AIX 5 supports IA64
  32164. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  32165. - shlibpath_var=LD_LIBRARY_PATH
  32166. - else
  32167. - # With GCC up to 2.95.x, collect2 would create an import file
  32168. - # for dependence libraries. The import file would start with
  32169. - # the line `#! .'. This would cause the generated library to
  32170. - # depend on `.', always an invalid library. This was fixed in
  32171. - # development snapshots of GCC prior to 3.0.
  32172. - case $host_os in
  32173. - aix4 | aix4.[01] | aix4.[01].*)
  32174. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  32175. - echo ' yes '
  32176. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  32177. - :
  32178. - else
  32179. - can_build_shared=no
  32180. - fi
  32181. - ;;
  32182. - esac
  32183. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  32184. - # soname into executable. Probably we can add versioning support to
  32185. - # collect2, so additional links can be useful in future.
  32186. - if test "$aix_use_runtimelinking" = yes; then
  32187. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  32188. - # instead of lib<name>.a to let people know that these are not
  32189. - # typical AIX shared libraries.
  32190. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32191. - else
  32192. - # We preserve .a as extension for shared libraries through AIX4.2
  32193. - # and later when we are not doing run time linking.
  32194. - library_names_spec='${libname}${release}.a $libname.a'
  32195. - soname_spec='${libname}${release}${shared_ext}$major'
  32196. - fi
  32197. - shlibpath_var=LIBPATH
  32198. - fi
  32199. - ;;
  32200. -
  32201. -amigaos*)
  32202. - library_names_spec='$libname.ixlibrary $libname.a'
  32203. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  32204. - 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'
  32205. - ;;
  32206. -
  32207. -beos*)
  32208. - library_names_spec='${libname}${shared_ext}'
  32209. - dynamic_linker="$host_os ld.so"
  32210. - shlibpath_var=LIBRARY_PATH
  32211. - ;;
  32212. -
  32213. -bsdi[45]*)
  32214. - version_type=linux
  32215. - need_version=no
  32216. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32217. - soname_spec='${libname}${release}${shared_ext}$major'
  32218. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  32219. - shlibpath_var=LD_LIBRARY_PATH
  32220. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  32221. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  32222. - # the default ld.so.conf also contains /usr/contrib/lib and
  32223. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  32224. - # libtool to hard-code these into programs
  32225. - ;;
  32226. -
  32227. -cygwin* | mingw* | pw32*)
  32228. - version_type=windows
  32229. - shrext_cmds=".dll"
  32230. - need_version=no
  32231. - need_lib_prefix=no
  32232. -
  32233. - case $GCC,$host_os in
  32234. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32235. - library_names_spec='$libname.dll.a'
  32236. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32237. - postinstall_cmds='base_file=`basename \${file}`~
  32238. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32239. - dldir=$destdir/`dirname \$dlpath`~
  32240. - test -d \$dldir || mkdir -p \$dldir~
  32241. - $install_prog $dir/$dlname \$dldir/$dlname~
  32242. - chmod a+x \$dldir/$dlname'
  32243. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32244. - dlpath=$dir/\$dldll~
  32245. - $rm \$dlpath'
  32246. - shlibpath_overrides_runpath=yes
  32247. -
  32248. - case $host_os in
  32249. - cygwin*)
  32250. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32251. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32252. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32253. - ;;
  32254. - mingw*)
  32255. - # MinGW DLLs use traditional 'lib' prefix
  32256. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32257. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32258. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32259. - # It is most probably a Windows format PATH printed by
  32260. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32261. - # path with ; separators, and with drive letters. We can handle the
  32262. - # drive letters (cygwin fileutils understands them), so leave them,
  32263. - # especially as we might pass files found there to a mingw objdump,
  32264. - # which wouldn't understand a cygwinified path. Ahh.
  32265. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32266. - else
  32267. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32268. - fi
  32269. - ;;
  32270. - pw32*)
  32271. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  32272. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32273. - ;;
  32274. - esac
  32275. - ;;
  32276. -
  32277. - *)
  32278. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32279. - ;;
  32280. - esac
  32281. - dynamic_linker='Win32 ld.exe'
  32282. - # FIXME: first we should search . and the directory the executable is in
  32283. - shlibpath_var=PATH
  32284. - ;;
  32285. -
  32286. -darwin* | rhapsody*)
  32287. - dynamic_linker="$host_os dyld"
  32288. - version_type=darwin
  32289. - need_lib_prefix=no
  32290. - need_version=no
  32291. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32292. - soname_spec='${libname}${release}${major}$shared_ext'
  32293. - shlibpath_overrides_runpath=yes
  32294. - shlibpath_var=DYLD_LIBRARY_PATH
  32295. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  32296. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  32297. - if test "$GCC" = yes; then
  32298. - 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"`
  32299. - else
  32300. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  32301. - fi
  32302. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32303. - ;;
  32304. -
  32305. -dgux*)
  32306. - version_type=linux
  32307. - need_lib_prefix=no
  32308. - need_version=no
  32309. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32310. - soname_spec='${libname}${release}${shared_ext}$major'
  32311. - shlibpath_var=LD_LIBRARY_PATH
  32312. - ;;
  32313. -
  32314. -freebsd1*)
  32315. - dynamic_linker=no
  32316. - ;;
  32317. -
  32318. -freebsd* | dragonfly*)
  32319. - # DragonFly does not have aout. When/if they implement a new
  32320. - # versioning mechanism, adjust this.
  32321. - if test -x /usr/bin/objformat; then
  32322. - objformat=`/usr/bin/objformat`
  32323. - else
  32324. - case $host_os in
  32325. - freebsd[123]*) objformat=aout ;;
  32326. - *) objformat=elf ;;
  32327. - esac
  32328. - fi
  32329. - version_type=freebsd-$objformat
  32330. - case $version_type in
  32331. - freebsd-elf*)
  32332. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32333. - need_version=no
  32334. - need_lib_prefix=no
  32335. - ;;
  32336. - freebsd-*)
  32337. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32338. - need_version=yes
  32339. - ;;
  32340. - esac
  32341. - shlibpath_var=LD_LIBRARY_PATH
  32342. - case $host_os in
  32343. - freebsd2*)
  32344. - shlibpath_overrides_runpath=yes
  32345. - ;;
  32346. - freebsd3.[01]* | freebsdelf3.[01]*)
  32347. - shlibpath_overrides_runpath=yes
  32348. - hardcode_into_libs=yes
  32349. - ;;
  32350. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  32351. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  32352. - shlibpath_overrides_runpath=no
  32353. - hardcode_into_libs=yes
  32354. - ;;
  32355. - freebsd*) # from 4.6 on
  32356. - shlibpath_overrides_runpath=yes
  32357. - hardcode_into_libs=yes
  32358. - ;;
  32359. - esac
  32360. - ;;
  32361. -
  32362. -gnu*)
  32363. - version_type=linux
  32364. - need_lib_prefix=no
  32365. - need_version=no
  32366. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32367. - soname_spec='${libname}${release}${shared_ext}$major'
  32368. - shlibpath_var=LD_LIBRARY_PATH
  32369. - hardcode_into_libs=yes
  32370. - ;;
  32371. -
  32372. -hpux9* | hpux10* | hpux11*)
  32373. - # Give a soname corresponding to the major version so that dld.sl refuses to
  32374. - # link against other versions.
  32375. - version_type=sunos
  32376. - need_lib_prefix=no
  32377. - need_version=no
  32378. - case $host_cpu in
  32379. - ia64*)
  32380. - shrext_cmds='.so'
  32381. - hardcode_into_libs=yes
  32382. - dynamic_linker="$host_os dld.so"
  32383. - shlibpath_var=LD_LIBRARY_PATH
  32384. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32385. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32386. - soname_spec='${libname}${release}${shared_ext}$major'
  32387. - if test "X$HPUX_IA64_MODE" = X32; then
  32388. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32389. - else
  32390. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32391. - fi
  32392. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32393. - ;;
  32394. - hppa*64*)
  32395. - shrext_cmds='.sl'
  32396. - hardcode_into_libs=yes
  32397. - dynamic_linker="$host_os dld.sl"
  32398. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32399. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32400. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32401. - soname_spec='${libname}${release}${shared_ext}$major'
  32402. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32403. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32404. - ;;
  32405. - *)
  32406. - shrext_cmds='.sl'
  32407. - dynamic_linker="$host_os dld.sl"
  32408. - shlibpath_var=SHLIB_PATH
  32409. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32410. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32411. - soname_spec='${libname}${release}${shared_ext}$major'
  32412. - ;;
  32413. - esac
  32414. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32415. - postinstall_cmds='chmod 555 $lib'
  32416. - ;;
  32417. -
  32418. -interix3*)
  32419. - version_type=linux
  32420. - need_lib_prefix=no
  32421. - need_version=no
  32422. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32423. - soname_spec='${libname}${release}${shared_ext}$major'
  32424. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  32425. - shlibpath_var=LD_LIBRARY_PATH
  32426. - shlibpath_overrides_runpath=no
  32427. - hardcode_into_libs=yes
  32428. - ;;
  32429. -
  32430. -irix5* | irix6* | nonstopux*)
  32431. - case $host_os in
  32432. - nonstopux*) version_type=nonstopux ;;
  32433. - *)
  32434. - if test "$lt_cv_prog_gnu_ld" = yes; then
  32435. - version_type=linux
  32436. - else
  32437. - version_type=irix
  32438. - fi ;;
  32439. - esac
  32440. - need_lib_prefix=no
  32441. - need_version=no
  32442. - soname_spec='${libname}${release}${shared_ext}$major'
  32443. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32444. - case $host_os in
  32445. - irix5* | nonstopux*)
  32446. - libsuff= shlibsuff=
  32447. - ;;
  32448. - *)
  32449. - case $LD in # libtool.m4 will add one of these switches to LD
  32450. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32451. - libsuff= shlibsuff= libmagic=32-bit;;
  32452. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32453. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  32454. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32455. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32456. - *) libsuff= shlibsuff= libmagic=never-match;;
  32457. - esac
  32458. - ;;
  32459. - esac
  32460. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  32461. - shlibpath_overrides_runpath=no
  32462. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  32463. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32464. - hardcode_into_libs=yes
  32465. - ;;
  32466. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  32467. + # Insert the option either (1) after the last *FLAGS variable, or
  32468. + # (2) before a word containing "conftest.", or (3) at the end.
  32469. + # Note that $ac_compile itself does not contain backslashes and begins
  32470. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  32471. + lt_compile=`echo "$ac_compile" | $SED \
  32472. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32473. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32474. + -e 's:$: $lt_compiler_flag:'`
  32475. + (eval echo "\"\$as_me:7770: $lt_compile\"" >&5)
  32476. + (eval "$lt_compile" 2>out/conftest.err)
  32477. + ac_status=$?
  32478. + cat out/conftest.err >&5
  32479. + echo "$as_me:7774: \$? = $ac_status" >&5
  32480. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  32481. + then
  32482. + # The compiler can only warn and ignore the option if not recognized
  32483. + # So say no if there are warnings
  32484. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  32485. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  32486. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  32487. + lt_cv_prog_compiler_c_o=yes
  32488. + fi
  32489. + fi
  32490. + chmod u+w . 2>&5
  32491. + $RM conftest*
  32492. + # SGI C++ compiler will create directory out/ii_files/ for
  32493. + # template instantiation
  32494. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  32495. + $RM out/* && rmdir out
  32496. + cd ..
  32497. + $RM -r conftest
  32498. + $RM conftest*
  32499. -# No shared lib support for Linux oldld, aout, or coff.
  32500. -linux*oldld* | linux*aout* | linux*coff*)
  32501. - dynamic_linker=no
  32502. - ;;
  32503. +fi
  32504. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  32505. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  32506. -# This must be Linux ELF.
  32507. -linux* | k*bsd*-gnu)
  32508. - version_type=linux
  32509. - need_lib_prefix=no
  32510. - need_version=no
  32511. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32512. - soname_spec='${libname}${release}${shared_ext}$major'
  32513. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  32514. - shlibpath_var=LD_LIBRARY_PATH
  32515. - shlibpath_overrides_runpath=no
  32516. - # This implies no fast_install, which is unacceptable.
  32517. - # Some rework will be needed to allow for fast_install
  32518. - # before this can be enabled.
  32519. - hardcode_into_libs=yes
  32520. - # Append ld.so.conf contents to the search path
  32521. - if test -f /etc/ld.so.conf; then
  32522. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  32523. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  32524. - fi
  32525. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  32526. - # powerpc, because MkLinux only supported shared libraries with the
  32527. - # GNU dynamic linker. Since this was broken with cross compilers,
  32528. - # most powerpc-linux boxes support dynamic linking these days and
  32529. - # people can always --disable-shared, the test was removed, and we
  32530. - # assume the GNU/Linux dynamic linker is in use.
  32531. - dynamic_linker='GNU/Linux ld.so'
  32532. - ;;
  32533. -netbsdelf*-gnu)
  32534. - version_type=linux
  32535. - need_lib_prefix=no
  32536. - need_version=no
  32537. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32538. - soname_spec='${libname}${release}${shared_ext}$major'
  32539. - shlibpath_var=LD_LIBRARY_PATH
  32540. - shlibpath_overrides_runpath=no
  32541. - hardcode_into_libs=yes
  32542. - dynamic_linker='NetBSD ld.elf_so'
  32543. - ;;
  32544. -netbsd*)
  32545. - version_type=sunos
  32546. - need_lib_prefix=no
  32547. - need_version=no
  32548. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32549. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32550. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32551. - dynamic_linker='NetBSD (a.out) ld.so'
  32552. - else
  32553. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32554. - soname_spec='${libname}${release}${shared_ext}$major'
  32555. - dynamic_linker='NetBSD ld.elf_so'
  32556. - fi
  32557. - shlibpath_var=LD_LIBRARY_PATH
  32558. - shlibpath_overrides_runpath=yes
  32559. - hardcode_into_libs=yes
  32560. - ;;
  32561. -newsos6)
  32562. - version_type=linux
  32563. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32564. - shlibpath_var=LD_LIBRARY_PATH
  32565. - shlibpath_overrides_runpath=yes
  32566. - ;;
  32567. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  32568. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  32569. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  32570. + $as_echo_n "(cached) " >&6
  32571. +else
  32572. + lt_cv_prog_compiler_c_o=no
  32573. + $RM -r conftest 2>/dev/null
  32574. + mkdir conftest
  32575. + cd conftest
  32576. + mkdir out
  32577. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  32578. -nto-qnx*)
  32579. - version_type=linux
  32580. - need_lib_prefix=no
  32581. - need_version=no
  32582. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32583. - soname_spec='${libname}${release}${shared_ext}$major'
  32584. - shlibpath_var=LD_LIBRARY_PATH
  32585. - shlibpath_overrides_runpath=yes
  32586. - ;;
  32587. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  32588. + # Insert the option either (1) after the last *FLAGS variable, or
  32589. + # (2) before a word containing "conftest.", or (3) at the end.
  32590. + # Note that $ac_compile itself does not contain backslashes and begins
  32591. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  32592. + lt_compile=`echo "$ac_compile" | $SED \
  32593. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  32594. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  32595. + -e 's:$: $lt_compiler_flag:'`
  32596. + (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
  32597. + (eval "$lt_compile" 2>out/conftest.err)
  32598. + ac_status=$?
  32599. + cat out/conftest.err >&5
  32600. + echo "$as_me:7829: \$? = $ac_status" >&5
  32601. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  32602. + then
  32603. + # The compiler can only warn and ignore the option if not recognized
  32604. + # So say no if there are warnings
  32605. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  32606. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  32607. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  32608. + lt_cv_prog_compiler_c_o=yes
  32609. + fi
  32610. + fi
  32611. + chmod u+w . 2>&5
  32612. + $RM conftest*
  32613. + # SGI C++ compiler will create directory out/ii_files/ for
  32614. + # template instantiation
  32615. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  32616. + $RM out/* && rmdir out
  32617. + cd ..
  32618. + $RM -r conftest
  32619. + $RM conftest*
  32620. -openbsd*)
  32621. - version_type=sunos
  32622. - sys_lib_dlsearch_path_spec="/usr/lib"
  32623. - need_lib_prefix=no
  32624. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  32625. - case $host_os in
  32626. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  32627. - *) need_version=no ;;
  32628. - esac
  32629. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32630. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32631. - shlibpath_var=LD_LIBRARY_PATH
  32632. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32633. - case $host_os in
  32634. - openbsd2.[89] | openbsd2.[89].*)
  32635. - shlibpath_overrides_runpath=no
  32636. - ;;
  32637. - *)
  32638. - shlibpath_overrides_runpath=yes
  32639. - ;;
  32640. - esac
  32641. - else
  32642. - shlibpath_overrides_runpath=yes
  32643. - fi
  32644. - ;;
  32645. +fi
  32646. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  32647. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  32648. -os2*)
  32649. - libname_spec='$name'
  32650. - shrext_cmds=".dll"
  32651. - need_lib_prefix=no
  32652. - library_names_spec='$libname${shared_ext} $libname.a'
  32653. - dynamic_linker='OS/2 ld.exe'
  32654. - shlibpath_var=LIBPATH
  32655. - ;;
  32656. -osf3* | osf4* | osf5*)
  32657. - version_type=osf
  32658. - need_lib_prefix=no
  32659. - need_version=no
  32660. - soname_spec='${libname}${release}${shared_ext}$major'
  32661. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32662. - shlibpath_var=LD_LIBRARY_PATH
  32663. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  32664. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  32665. - ;;
  32666. -solaris*)
  32667. - version_type=linux
  32668. - need_lib_prefix=no
  32669. - need_version=no
  32670. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32671. - soname_spec='${libname}${release}${shared_ext}$major'
  32672. - shlibpath_var=LD_LIBRARY_PATH
  32673. - shlibpath_overrides_runpath=yes
  32674. - hardcode_into_libs=yes
  32675. - # ldd complains unless libraries are executable
  32676. - postinstall_cmds='chmod +x $lib'
  32677. - ;;
  32678. -sunos4*)
  32679. - version_type=sunos
  32680. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32681. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  32682. - shlibpath_var=LD_LIBRARY_PATH
  32683. - shlibpath_overrides_runpath=yes
  32684. - if test "$with_gnu_ld" = yes; then
  32685. - need_lib_prefix=no
  32686. +hard_links="nottested"
  32687. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  32688. + # do not overwrite the value of need_locks provided by the user
  32689. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  32690. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  32691. + hard_links=yes
  32692. + $RM conftest*
  32693. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32694. + touch conftest.a
  32695. + ln conftest.a conftest.b 2>&5 || hard_links=no
  32696. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  32697. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  32698. +$as_echo "$hard_links" >&6; }
  32699. + if test "$hard_links" = no; then
  32700. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  32701. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  32702. + need_locks=warn
  32703. fi
  32704. - need_version=yes
  32705. - ;;
  32706. +else
  32707. + need_locks=no
  32708. +fi
  32709. -sysv4 | sysv4.3*)
  32710. - version_type=linux
  32711. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32712. - soname_spec='${libname}${release}${shared_ext}$major'
  32713. - shlibpath_var=LD_LIBRARY_PATH
  32714. - case $host_vendor in
  32715. - sni)
  32716. - shlibpath_overrides_runpath=no
  32717. - need_lib_prefix=no
  32718. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  32719. - runpath_var=LD_RUN_PATH
  32720. - ;;
  32721. - siemens)
  32722. - need_lib_prefix=no
  32723. - ;;
  32724. - motorola)
  32725. - need_lib_prefix=no
  32726. - need_version=no
  32727. - shlibpath_overrides_runpath=no
  32728. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  32729. - ;;
  32730. +
  32731. +
  32732. +
  32733. +
  32734. +
  32735. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  32736. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  32737. +
  32738. + runpath_var=
  32739. + allow_undefined_flag=
  32740. + always_export_symbols=no
  32741. + archive_cmds=
  32742. + archive_expsym_cmds=
  32743. + compiler_needs_object=no
  32744. + enable_shared_with_static_runtimes=no
  32745. + export_dynamic_flag_spec=
  32746. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  32747. + hardcode_automatic=no
  32748. + hardcode_direct=no
  32749. + hardcode_direct_absolute=no
  32750. + hardcode_libdir_flag_spec=
  32751. + hardcode_libdir_flag_spec_ld=
  32752. + hardcode_libdir_separator=
  32753. + hardcode_minus_L=no
  32754. + hardcode_shlibpath_var=unsupported
  32755. + inherit_rpath=no
  32756. + link_all_deplibs=unknown
  32757. + module_cmds=
  32758. + module_expsym_cmds=
  32759. + old_archive_from_new_cmds=
  32760. + old_archive_from_expsyms_cmds=
  32761. + thread_safe_flag_spec=
  32762. + whole_archive_flag_spec=
  32763. + # include_expsyms should be a list of space-separated symbols to be *always*
  32764. + # included in the symbol list
  32765. + include_expsyms=
  32766. + # exclude_expsyms can be an extended regexp of symbols to exclude
  32767. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  32768. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  32769. + # as well as any symbol that contains `d'.
  32770. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  32771. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  32772. + # platforms (ab)use it in PIC code, but their linkers get confused if
  32773. + # the symbol is explicitly referenced. Since portable code cannot
  32774. + # rely on this symbol name, it's probably fine to never include it in
  32775. + # preloaded symbol tables.
  32776. + # Exclude shared library initialization/finalization symbols.
  32777. + extract_expsyms_cmds=
  32778. +
  32779. + case $host_os in
  32780. + cygwin* | mingw* | pw32* | cegcc*)
  32781. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  32782. + # When not using gcc, we currently assume that we are using
  32783. + # Microsoft Visual C++.
  32784. + if test "$GCC" != yes; then
  32785. + with_gnu_ld=no
  32786. + fi
  32787. + ;;
  32788. + interix*)
  32789. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  32790. + with_gnu_ld=yes
  32791. + ;;
  32792. + openbsd*)
  32793. + with_gnu_ld=no
  32794. + ;;
  32795. + linux* | k*bsd*-gnu)
  32796. + link_all_deplibs=no
  32797. + ;;
  32798. esac
  32799. - ;;
  32800. -
  32801. -sysv4*MP*)
  32802. - if test -d /usr/nec ;then
  32803. - version_type=linux
  32804. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  32805. - soname_spec='$libname${shared_ext}.$major'
  32806. - shlibpath_var=LD_LIBRARY_PATH
  32807. - fi
  32808. - ;;
  32809. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  32810. - version_type=freebsd-elf
  32811. - need_lib_prefix=no
  32812. - need_version=no
  32813. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32814. - soname_spec='${libname}${release}${shared_ext}$major'
  32815. - shlibpath_var=LD_LIBRARY_PATH
  32816. - hardcode_into_libs=yes
  32817. + ld_shlibs=yes
  32818. if test "$with_gnu_ld" = yes; then
  32819. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  32820. - shlibpath_overrides_runpath=no
  32821. - else
  32822. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  32823. - shlibpath_overrides_runpath=yes
  32824. - case $host_os in
  32825. - sco3.2v5*)
  32826. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  32827. - ;;
  32828. - esac
  32829. - fi
  32830. - sys_lib_dlsearch_path_spec='/usr/lib'
  32831. - ;;
  32832. -
  32833. -uts4*)
  32834. - version_type=linux
  32835. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32836. - soname_spec='${libname}${release}${shared_ext}$major'
  32837. - shlibpath_var=LD_LIBRARY_PATH
  32838. - ;;
  32839. -
  32840. -*)
  32841. - dynamic_linker=no
  32842. - ;;
  32843. -esac
  32844. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  32845. -echo "${ECHO_T}$dynamic_linker" >&6; }
  32846. -test "$dynamic_linker" = no && can_build_shared=no
  32847. -
  32848. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  32849. -if test "$GCC" = yes; then
  32850. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  32851. -fi
  32852. -
  32853. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  32854. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  32855. -hardcode_action_F77=
  32856. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  32857. - test -n "$runpath_var_F77" || \
  32858. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  32859. + # If archive_cmds runs LD, not CC, wlarc should be empty
  32860. + wlarc='${wl}'
  32861. - # We can hardcode non-existant directories.
  32862. - if test "$hardcode_direct_F77" != no &&
  32863. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32864. - # have to relink, otherwise we might link with an installed library
  32865. - # when we should be linking with a yet-to-be-installed one
  32866. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  32867. - test "$hardcode_minus_L_F77" != no; then
  32868. - # Linking always hardcodes the temporary library directory.
  32869. - hardcode_action_F77=relink
  32870. - else
  32871. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32872. - hardcode_action_F77=immediate
  32873. - fi
  32874. -else
  32875. - # We cannot hardcode anything, or else we can only hardcode existing
  32876. - # directories.
  32877. - hardcode_action_F77=unsupported
  32878. -fi
  32879. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  32880. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  32881. + # Set some defaults for GNU ld with shared library support. These
  32882. + # are reset later if shared libraries are not supported. Putting them
  32883. + # here allows them to be overridden if necessary.
  32884. + runpath_var=LD_RUN_PATH
  32885. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  32886. + export_dynamic_flag_spec='${wl}--export-dynamic'
  32887. + # ancient GNU ld didn't support --whole-archive et. al.
  32888. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  32889. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  32890. + else
  32891. + whole_archive_flag_spec=
  32892. + fi
  32893. + supports_anon_versioning=no
  32894. + case `$LD -v 2>&1` in
  32895. + *GNU\ gold*) supports_anon_versioning=yes ;;
  32896. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  32897. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  32898. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  32899. + *\ 2.11.*) ;; # other 2.11 versions
  32900. + *) supports_anon_versioning=yes ;;
  32901. + esac
  32902. -if test "$hardcode_action_F77" = relink; then
  32903. - # Fast installation is not supported
  32904. - enable_fast_install=no
  32905. -elif test "$shlibpath_overrides_runpath" = yes ||
  32906. - test "$enable_shared" = no; then
  32907. - # Fast installation is not necessary
  32908. - enable_fast_install=needless
  32909. -fi
  32910. + # See if GNU ld supports shared libraries.
  32911. + case $host_os in
  32912. + aix[3-9]*)
  32913. + # On AIX/PPC, the GNU linker is very broken
  32914. + if test "$host_cpu" != ia64; then
  32915. + ld_shlibs=no
  32916. + cat <<_LT_EOF 1>&2
  32917. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  32918. +*** to be unable to reliably create shared libraries on AIX.
  32919. +*** Therefore, libtool is disabling shared libraries support. If you
  32920. +*** really care for shared libraries, you may want to modify your PATH
  32921. +*** so that a non-GNU linker is found, and then restart.
  32922. -# The else clause should only fire when bootstrapping the
  32923. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32924. -# with your package, and you will get complaints that there are
  32925. -# no rules to generate ltmain.sh.
  32926. -if test -f "$ltmain"; then
  32927. - # See if we are running on zsh, and set the options which allow our commands through
  32928. - # without removal of \ escapes.
  32929. - if test -n "${ZSH_VERSION+set}" ; then
  32930. - setopt NO_GLOB_SUBST
  32931. - fi
  32932. - # Now quote all the things that may contain metacharacters while being
  32933. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32934. - # variables and quote the copies for generation of the libtool script.
  32935. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32936. - SED SHELL STRIP \
  32937. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32938. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32939. - deplibs_check_method reload_flag reload_cmds need_locks \
  32940. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32941. - lt_cv_sys_global_symbol_to_c_name_address \
  32942. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32943. - old_postinstall_cmds old_postuninstall_cmds \
  32944. - compiler_F77 \
  32945. - CC_F77 \
  32946. - LD_F77 \
  32947. - lt_prog_compiler_wl_F77 \
  32948. - lt_prog_compiler_pic_F77 \
  32949. - lt_prog_compiler_static_F77 \
  32950. - lt_prog_compiler_no_builtin_flag_F77 \
  32951. - export_dynamic_flag_spec_F77 \
  32952. - thread_safe_flag_spec_F77 \
  32953. - whole_archive_flag_spec_F77 \
  32954. - enable_shared_with_static_runtimes_F77 \
  32955. - old_archive_cmds_F77 \
  32956. - old_archive_from_new_cmds_F77 \
  32957. - predep_objects_F77 \
  32958. - postdep_objects_F77 \
  32959. - predeps_F77 \
  32960. - postdeps_F77 \
  32961. - compiler_lib_search_path_F77 \
  32962. - archive_cmds_F77 \
  32963. - archive_expsym_cmds_F77 \
  32964. - postinstall_cmds_F77 \
  32965. - postuninstall_cmds_F77 \
  32966. - old_archive_from_expsyms_cmds_F77 \
  32967. - allow_undefined_flag_F77 \
  32968. - no_undefined_flag_F77 \
  32969. - export_symbols_cmds_F77 \
  32970. - hardcode_libdir_flag_spec_F77 \
  32971. - hardcode_libdir_flag_spec_ld_F77 \
  32972. - hardcode_libdir_separator_F77 \
  32973. - hardcode_automatic_F77 \
  32974. - module_cmds_F77 \
  32975. - module_expsym_cmds_F77 \
  32976. - lt_cv_prog_compiler_c_o_F77 \
  32977. - exclude_expsyms_F77 \
  32978. - include_expsyms_F77; do
  32979. -
  32980. - case $var in
  32981. - old_archive_cmds_F77 | \
  32982. - old_archive_from_new_cmds_F77 | \
  32983. - archive_cmds_F77 | \
  32984. - archive_expsym_cmds_F77 | \
  32985. - module_cmds_F77 | \
  32986. - module_expsym_cmds_F77 | \
  32987. - old_archive_from_expsyms_cmds_F77 | \
  32988. - export_symbols_cmds_F77 | \
  32989. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32990. - postinstall_cmds | postuninstall_cmds | \
  32991. - old_postinstall_cmds | old_postuninstall_cmds | \
  32992. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32993. - # Double-quote double-evaled strings.
  32994. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32995. - ;;
  32996. - *)
  32997. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32998. +_LT_EOF
  32999. + fi
  33000. ;;
  33001. - esac
  33002. - done
  33003. - case $lt_echo in
  33004. - *'\$0 --fallback-echo"')
  33005. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  33006. - ;;
  33007. - esac
  33008. -
  33009. -cfgfile="$ofile"
  33010. + amigaos*)
  33011. + case $host_cpu in
  33012. + powerpc)
  33013. + # see comment about AmigaOS4 .so support
  33014. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33015. + archive_expsym_cmds=''
  33016. + ;;
  33017. + m68k)
  33018. + 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)'
  33019. + hardcode_libdir_flag_spec='-L$libdir'
  33020. + hardcode_minus_L=yes
  33021. + ;;
  33022. + esac
  33023. + ;;
  33024. - cat <<__EOF__ >> "$cfgfile"
  33025. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  33026. + beos*)
  33027. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33028. + allow_undefined_flag=unsupported
  33029. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  33030. + # support --undefined. This deserves some investigation. FIXME
  33031. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33032. + else
  33033. + ld_shlibs=no
  33034. + fi
  33035. + ;;
  33036. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  33037. + cygwin* | mingw* | pw32* | cegcc*)
  33038. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  33039. + # as there is no search path for DLLs.
  33040. + hardcode_libdir_flag_spec='-L$libdir'
  33041. + allow_undefined_flag=unsupported
  33042. + always_export_symbols=no
  33043. + enable_shared_with_static_runtimes=yes
  33044. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  33045. -# Shell to use when invoking shell scripts.
  33046. -SHELL=$lt_SHELL
  33047. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  33048. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33049. + # If the export-symbols file already is a .def file (1st line
  33050. + # is EXPORTS), use it as is; otherwise, prepend...
  33051. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  33052. + cp $export_symbols $output_objdir/$soname.def;
  33053. + else
  33054. + echo EXPORTS > $output_objdir/$soname.def;
  33055. + cat $export_symbols >> $output_objdir/$soname.def;
  33056. + fi~
  33057. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  33058. + else
  33059. + ld_shlibs=no
  33060. + fi
  33061. + ;;
  33062. -# Whether or not to build shared libraries.
  33063. -build_libtool_libs=$enable_shared
  33064. + interix[3-9]*)
  33065. + hardcode_direct=no
  33066. + hardcode_shlibpath_var=no
  33067. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  33068. + export_dynamic_flag_spec='${wl}-E'
  33069. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  33070. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  33071. + # default) and relocated if they conflict, which is a slow very memory
  33072. + # consuming and fragmenting process. To avoid this, we pick a random,
  33073. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  33074. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  33075. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  33076. + 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'
  33077. + ;;
  33078. -# Whether or not to build static libraries.
  33079. -build_old_libs=$enable_static
  33080. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  33081. + tmp_diet=no
  33082. + if test "$host_os" = linux-dietlibc; then
  33083. + case $cc_basename in
  33084. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  33085. + esac
  33086. + fi
  33087. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  33088. + && test "$tmp_diet" = no
  33089. + then
  33090. + tmp_addflag=
  33091. + tmp_sharedflag='-shared'
  33092. + case $cc_basename,$host_cpu in
  33093. + pgcc*) # Portland Group C compiler
  33094. + 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'
  33095. + tmp_addflag=' $pic_flag'
  33096. + ;;
  33097. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  33098. + 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'
  33099. + tmp_addflag=' $pic_flag -Mnomain' ;;
  33100. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  33101. + tmp_addflag=' -i_dynamic' ;;
  33102. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  33103. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  33104. + ifc* | ifort*) # Intel Fortran compiler
  33105. + tmp_addflag=' -nofor_main' ;;
  33106. + lf95*) # Lahey Fortran 8.1
  33107. + whole_archive_flag_spec=
  33108. + tmp_sharedflag='--shared' ;;
  33109. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  33110. + tmp_sharedflag='-qmkshrobj'
  33111. + tmp_addflag= ;;
  33112. + esac
  33113. + case `$CC -V 2>&1 | sed 5q` in
  33114. + *Sun\ C*) # Sun C 5.9
  33115. + 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'
  33116. + compiler_needs_object=yes
  33117. + tmp_sharedflag='-G' ;;
  33118. + *Sun\ F*) # Sun Fortran 8.3
  33119. + tmp_sharedflag='-G' ;;
  33120. + esac
  33121. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33122. -# Whether or not to add -lc for building shared libraries.
  33123. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  33124. + if test "x$supports_anon_versioning" = xyes; then
  33125. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  33126. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  33127. + echo "local: *; };" >> $output_objdir/$libname.ver~
  33128. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  33129. + fi
  33130. -# Whether or not to disallow shared libs when runtime libs are static
  33131. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  33132. + case $cc_basename in
  33133. + xlf*)
  33134. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  33135. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  33136. + hardcode_libdir_flag_spec=
  33137. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  33138. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  33139. + if test "x$supports_anon_versioning" = xyes; then
  33140. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  33141. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  33142. + echo "local: *; };" >> $output_objdir/$libname.ver~
  33143. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  33144. + fi
  33145. + ;;
  33146. + esac
  33147. + else
  33148. + ld_shlibs=no
  33149. + fi
  33150. + ;;
  33151. -# Whether or not to optimize for fast installation.
  33152. -fast_install=$enable_fast_install
  33153. + netbsd* | netbsdelf*-gnu)
  33154. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  33155. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  33156. + wlarc=
  33157. + else
  33158. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33159. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33160. + fi
  33161. + ;;
  33162. -# The host system.
  33163. -host_alias=$host_alias
  33164. -host=$host
  33165. -host_os=$host_os
  33166. + solaris*)
  33167. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  33168. + ld_shlibs=no
  33169. + cat <<_LT_EOF 1>&2
  33170. -# The build system.
  33171. -build_alias=$build_alias
  33172. -build=$build
  33173. -build_os=$build_os
  33174. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  33175. +*** create shared libraries on Solaris systems. Therefore, libtool
  33176. +*** is disabling shared libraries support. We urge you to upgrade GNU
  33177. +*** binutils to release 2.9.1 or newer. Another option is to modify
  33178. +*** your PATH or compiler configuration so that the native linker is
  33179. +*** used, and then restart.
  33180. -# An echo program that does not interpret backslashes.
  33181. -echo=$lt_echo
  33182. +_LT_EOF
  33183. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33184. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33185. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33186. + else
  33187. + ld_shlibs=no
  33188. + fi
  33189. + ;;
  33190. -# The archiver.
  33191. -AR=$lt_AR
  33192. -AR_FLAGS=$lt_AR_FLAGS
  33193. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  33194. + case `$LD -v 2>&1` in
  33195. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  33196. + ld_shlibs=no
  33197. + cat <<_LT_EOF 1>&2
  33198. -# A C compiler.
  33199. -LTCC=$lt_LTCC
  33200. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  33201. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  33202. +*** is disabling shared libraries support. We urge you to upgrade GNU
  33203. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  33204. +*** your PATH or compiler configuration so that the native linker is
  33205. +*** used, and then restart.
  33206. -# LTCC compiler flags.
  33207. -LTCFLAGS=$lt_LTCFLAGS
  33208. +_LT_EOF
  33209. + ;;
  33210. + *)
  33211. + # For security reasons, it is highly recommended that you always
  33212. + # use absolute paths for naming shared libraries, and exclude the
  33213. + # DT_RUNPATH tag from executables and libraries. But doing so
  33214. + # requires that you compile everything twice, which is a pain.
  33215. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33216. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  33217. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33218. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33219. + else
  33220. + ld_shlibs=no
  33221. + fi
  33222. + ;;
  33223. + esac
  33224. + ;;
  33225. -# A language-specific compiler.
  33226. -CC=$lt_compiler_F77
  33227. + sunos4*)
  33228. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33229. + wlarc=
  33230. + hardcode_direct=yes
  33231. + hardcode_shlibpath_var=no
  33232. + ;;
  33233. -# Is the compiler the GNU C compiler?
  33234. -with_gcc=$GCC_F77
  33235. + *)
  33236. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  33237. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33238. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33239. + else
  33240. + ld_shlibs=no
  33241. + fi
  33242. + ;;
  33243. + esac
  33244. -# An ERE matcher.
  33245. -EGREP=$lt_EGREP
  33246. + if test "$ld_shlibs" = no; then
  33247. + runpath_var=
  33248. + hardcode_libdir_flag_spec=
  33249. + export_dynamic_flag_spec=
  33250. + whole_archive_flag_spec=
  33251. + fi
  33252. + else
  33253. + # PORTME fill in a description of your system's linker (not GNU ld)
  33254. + case $host_os in
  33255. + aix3*)
  33256. + allow_undefined_flag=unsupported
  33257. + always_export_symbols=yes
  33258. + 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'
  33259. + # Note: this linker hardcodes the directories in LIBPATH if there
  33260. + # are no directories specified by -L.
  33261. + hardcode_minus_L=yes
  33262. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  33263. + # Neither direct hardcoding nor static linking is supported with a
  33264. + # broken collect2.
  33265. + hardcode_direct=unsupported
  33266. + fi
  33267. + ;;
  33268. -# The linker used to build libraries.
  33269. -LD=$lt_LD_F77
  33270. + aix[4-9]*)
  33271. + if test "$host_cpu" = ia64; then
  33272. + # On IA64, the linker does run time linking by default, so we don't
  33273. + # have to do anything special.
  33274. + aix_use_runtimelinking=no
  33275. + exp_sym_flag='-Bexport'
  33276. + no_entry_flag=""
  33277. + else
  33278. + # If we're using GNU nm, then we don't want the "-C" option.
  33279. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33280. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  33281. + 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'
  33282. + else
  33283. + 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'
  33284. + fi
  33285. + aix_use_runtimelinking=no
  33286. -# Whether we need hard or soft links.
  33287. -LN_S=$lt_LN_S
  33288. + # Test if we are trying to use run time linking or normal
  33289. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  33290. + # need to do runtime linking.
  33291. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  33292. + for ld_flag in $LDFLAGS; do
  33293. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  33294. + aix_use_runtimelinking=yes
  33295. + break
  33296. + fi
  33297. + done
  33298. + ;;
  33299. + esac
  33300. -# A BSD-compatible nm program.
  33301. -NM=$lt_NM
  33302. + exp_sym_flag='-bexport'
  33303. + no_entry_flag='-bnoentry'
  33304. + fi
  33305. -# A symbol stripping program
  33306. -STRIP=$lt_STRIP
  33307. + # When large executables or shared objects are built, AIX ld can
  33308. + # have problems creating the table of contents. If linking a library
  33309. + # or program results in "error TOC overflow" add -mminimal-toc to
  33310. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  33311. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  33312. -# Used to examine libraries when file_magic_cmd begins "file"
  33313. -MAGIC_CMD=$MAGIC_CMD
  33314. + archive_cmds=''
  33315. + hardcode_direct=yes
  33316. + hardcode_direct_absolute=yes
  33317. + hardcode_libdir_separator=':'
  33318. + link_all_deplibs=yes
  33319. + file_list_spec='${wl}-f,'
  33320. -# Used on cygwin: DLL creation program.
  33321. -DLLTOOL="$DLLTOOL"
  33322. + if test "$GCC" = yes; then
  33323. + case $host_os in aix4.[012]|aix4.[012].*)
  33324. + # We only want to do this on AIX 4.2 and lower, the check
  33325. + # below for broken collect2 doesn't work under 4.3+
  33326. + collect2name=`${CC} -print-prog-name=collect2`
  33327. + if test -f "$collect2name" &&
  33328. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  33329. + then
  33330. + # We have reworked collect2
  33331. + :
  33332. + else
  33333. + # We have old collect2
  33334. + hardcode_direct=unsupported
  33335. + # It fails to find uninstalled libraries when the uninstalled
  33336. + # path is not listed in the libpath. Setting hardcode_minus_L
  33337. + # to unsupported forces relinking
  33338. + hardcode_minus_L=yes
  33339. + hardcode_libdir_flag_spec='-L$libdir'
  33340. + hardcode_libdir_separator=
  33341. + fi
  33342. + ;;
  33343. + esac
  33344. + shared_flag='-shared'
  33345. + if test "$aix_use_runtimelinking" = yes; then
  33346. + shared_flag="$shared_flag "'${wl}-G'
  33347. + fi
  33348. + link_all_deplibs=no
  33349. + else
  33350. + # not using gcc
  33351. + if test "$host_cpu" = ia64; then
  33352. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  33353. + # chokes on -Wl,-G. The following line is correct:
  33354. + shared_flag='-G'
  33355. + else
  33356. + if test "$aix_use_runtimelinking" = yes; then
  33357. + shared_flag='${wl}-G'
  33358. + else
  33359. + shared_flag='${wl}-bM:SRE'
  33360. + fi
  33361. + fi
  33362. + fi
  33363. -# Used on cygwin: object dumper.
  33364. -OBJDUMP="$OBJDUMP"
  33365. + export_dynamic_flag_spec='${wl}-bexpall'
  33366. + # It seems that -bexpall does not export symbols beginning with
  33367. + # underscore (_), so it is better to generate a list of symbols to export.
  33368. + always_export_symbols=yes
  33369. + if test "$aix_use_runtimelinking" = yes; then
  33370. + # Warning - without using the other runtime loading flags (-brtl),
  33371. + # -berok will link without error, but may produce a broken library.
  33372. + allow_undefined_flag='-berok'
  33373. + # Determine the default libpath from the value encoded in an
  33374. + # empty executable.
  33375. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33376. +/* end confdefs.h. */
  33377. -# Used on cygwin: assembler.
  33378. -AS="$AS"
  33379. +int
  33380. +main ()
  33381. +{
  33382. -# The name of the directory that contains temporary libtool files.
  33383. -objdir=$objdir
  33384. + ;
  33385. + return 0;
  33386. +}
  33387. +_ACEOF
  33388. +if ac_fn_c_try_link "$LINENO"; then :
  33389. -# How to create reloadable object files.
  33390. -reload_flag=$lt_reload_flag
  33391. -reload_cmds=$lt_reload_cmds
  33392. +lt_aix_libpath_sed='
  33393. + /Import File Strings/,/^$/ {
  33394. + /^0/ {
  33395. + s/^0 *\(.*\)$/\1/
  33396. + p
  33397. + }
  33398. + }'
  33399. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33400. +# Check for a 64-bit object if we didn't find anything.
  33401. +if test -z "$aix_libpath"; then
  33402. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33403. +fi
  33404. +fi
  33405. +rm -f core conftest.err conftest.$ac_objext \
  33406. + conftest$ac_exeext conftest.$ac_ext
  33407. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33408. -# How to pass a linker flag through the compiler.
  33409. -wl=$lt_lt_prog_compiler_wl_F77
  33410. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  33411. + 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"
  33412. + else
  33413. + if test "$host_cpu" = ia64; then
  33414. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  33415. + allow_undefined_flag="-z nodefs"
  33416. + 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"
  33417. + else
  33418. + # Determine the default libpath from the value encoded in an
  33419. + # empty executable.
  33420. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33421. +/* end confdefs.h. */
  33422. -# Object file suffix (normally "o").
  33423. -objext="$ac_objext"
  33424. +int
  33425. +main ()
  33426. +{
  33427. -# Old archive suffix (normally "a").
  33428. -libext="$libext"
  33429. + ;
  33430. + return 0;
  33431. +}
  33432. +_ACEOF
  33433. +if ac_fn_c_try_link "$LINENO"; then :
  33434. -# Shared library suffix (normally ".so").
  33435. -shrext_cmds='$shrext_cmds'
  33436. +lt_aix_libpath_sed='
  33437. + /Import File Strings/,/^$/ {
  33438. + /^0/ {
  33439. + s/^0 *\(.*\)$/\1/
  33440. + p
  33441. + }
  33442. + }'
  33443. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33444. +# Check for a 64-bit object if we didn't find anything.
  33445. +if test -z "$aix_libpath"; then
  33446. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  33447. +fi
  33448. +fi
  33449. +rm -f core conftest.err conftest.$ac_objext \
  33450. + conftest$ac_exeext conftest.$ac_ext
  33451. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33452. -# Executable file suffix (normally "").
  33453. -exeext="$exeext"
  33454. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  33455. + # Warning - without using the other run time loading flags,
  33456. + # -berok will link without error, but may produce a broken library.
  33457. + no_undefined_flag=' ${wl}-bernotok'
  33458. + allow_undefined_flag=' ${wl}-berok'
  33459. + # Exported symbols can be pulled into shared objects from archives
  33460. + whole_archive_flag_spec='$convenience'
  33461. + archive_cmds_need_lc=yes
  33462. + # This is similar to how AIX traditionally builds its shared libraries.
  33463. + 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'
  33464. + fi
  33465. + fi
  33466. + ;;
  33467. -# Additional compiler flags for building library objects.
  33468. -pic_flag=$lt_lt_prog_compiler_pic_F77
  33469. -pic_mode=$pic_mode
  33470. + amigaos*)
  33471. + case $host_cpu in
  33472. + powerpc)
  33473. + # see comment about AmigaOS4 .so support
  33474. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33475. + archive_expsym_cmds=''
  33476. + ;;
  33477. + m68k)
  33478. + 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)'
  33479. + hardcode_libdir_flag_spec='-L$libdir'
  33480. + hardcode_minus_L=yes
  33481. + ;;
  33482. + esac
  33483. + ;;
  33484. -# What is the maximum length of a command?
  33485. -max_cmd_len=$lt_cv_sys_max_cmd_len
  33486. + bsdi[45]*)
  33487. + export_dynamic_flag_spec=-rdynamic
  33488. + ;;
  33489. -# Does compiler simultaneously support -c and -o options?
  33490. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  33491. + cygwin* | mingw* | pw32* | cegcc*)
  33492. + # When not using gcc, we currently assume that we are using
  33493. + # Microsoft Visual C++.
  33494. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  33495. + # no search path for DLLs.
  33496. + hardcode_libdir_flag_spec=' '
  33497. + allow_undefined_flag=unsupported
  33498. + # Tell ltmain to make .lib files, not .a files.
  33499. + libext=lib
  33500. + # Tell ltmain to make .dll files, not .so files.
  33501. + shrext_cmds=".dll"
  33502. + # FIXME: Setting linknames here is a bad hack.
  33503. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  33504. + # The linker will automatically build a .lib file if we build a DLL.
  33505. + old_archive_from_new_cmds='true'
  33506. + # FIXME: Should let the user specify the lib program.
  33507. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  33508. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  33509. + enable_shared_with_static_runtimes=yes
  33510. + ;;
  33511. -# Must we lock files when doing compilation?
  33512. -need_locks=$lt_need_locks
  33513. + darwin* | rhapsody*)
  33514. -# Do we need the lib prefix for modules?
  33515. -need_lib_prefix=$need_lib_prefix
  33516. -# Do we need a version for libraries?
  33517. -need_version=$need_version
  33518. + archive_cmds_need_lc=no
  33519. + hardcode_direct=no
  33520. + hardcode_automatic=yes
  33521. + hardcode_shlibpath_var=unsupported
  33522. + whole_archive_flag_spec=''
  33523. + link_all_deplibs=yes
  33524. + allow_undefined_flag="$_lt_dar_allow_undefined"
  33525. + case $cc_basename in
  33526. + ifort*) _lt_dar_can_shared=yes ;;
  33527. + *) _lt_dar_can_shared=$GCC ;;
  33528. + esac
  33529. + if test "$_lt_dar_can_shared" = "yes"; then
  33530. + output_verbose_link_cmd=echo
  33531. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  33532. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  33533. + 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}"
  33534. + 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}"
  33535. -# Whether dlopen is supported.
  33536. -dlopen_support=$enable_dlopen
  33537. + else
  33538. + ld_shlibs=no
  33539. + fi
  33540. -# Whether dlopen of programs is supported.
  33541. -dlopen_self=$enable_dlopen_self
  33542. + ;;
  33543. -# Whether dlopen of statically linked programs is supported.
  33544. -dlopen_self_static=$enable_dlopen_self_static
  33545. + dgux*)
  33546. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33547. + hardcode_libdir_flag_spec='-L$libdir'
  33548. + hardcode_shlibpath_var=no
  33549. + ;;
  33550. -# Compiler flag to prevent dynamic linking.
  33551. -link_static_flag=$lt_lt_prog_compiler_static_F77
  33552. + freebsd1*)
  33553. + ld_shlibs=no
  33554. + ;;
  33555. -# Compiler flag to turn off builtin functions.
  33556. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  33557. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  33558. + # support. Future versions do this automatically, but an explicit c++rt0.o
  33559. + # does not break anything, and helps significantly (at the cost of a little
  33560. + # extra space).
  33561. + freebsd2.2*)
  33562. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  33563. + hardcode_libdir_flag_spec='-R$libdir'
  33564. + hardcode_direct=yes
  33565. + hardcode_shlibpath_var=no
  33566. + ;;
  33567. -# Compiler flag to allow reflexive dlopens.
  33568. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  33569. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  33570. + freebsd2*)
  33571. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33572. + hardcode_direct=yes
  33573. + hardcode_minus_L=yes
  33574. + hardcode_shlibpath_var=no
  33575. + ;;
  33576. -# Compiler flag to generate shared objects directly from archives.
  33577. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  33578. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  33579. + freebsd* | dragonfly*)
  33580. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  33581. + hardcode_libdir_flag_spec='-R$libdir'
  33582. + hardcode_direct=yes
  33583. + hardcode_shlibpath_var=no
  33584. + ;;
  33585. -# Compiler flag to generate thread-safe objects.
  33586. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  33587. + hpux9*)
  33588. + if test "$GCC" = yes; then
  33589. + 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'
  33590. + else
  33591. + 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'
  33592. + fi
  33593. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  33594. + hardcode_libdir_separator=:
  33595. + hardcode_direct=yes
  33596. -# Library versioning type.
  33597. -version_type=$version_type
  33598. + # hardcode_minus_L: Not really in the search PATH,
  33599. + # but as the default location of the library.
  33600. + hardcode_minus_L=yes
  33601. + export_dynamic_flag_spec='${wl}-E'
  33602. + ;;
  33603. -# Format of library name prefix.
  33604. -libname_spec=$lt_libname_spec
  33605. + hpux10*)
  33606. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33607. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33608. + else
  33609. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  33610. + fi
  33611. + if test "$with_gnu_ld" = no; then
  33612. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  33613. + hardcode_libdir_flag_spec_ld='+b $libdir'
  33614. + hardcode_libdir_separator=:
  33615. + hardcode_direct=yes
  33616. + hardcode_direct_absolute=yes
  33617. + export_dynamic_flag_spec='${wl}-E'
  33618. + # hardcode_minus_L: Not really in the search PATH,
  33619. + # but as the default location of the library.
  33620. + hardcode_minus_L=yes
  33621. + fi
  33622. + ;;
  33623. -# List of archive names. First name is the real one, the rest are links.
  33624. -# The last name is the one that the linker finds with -lNAME.
  33625. -library_names_spec=$lt_library_names_spec
  33626. + hpux11*)
  33627. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  33628. + case $host_cpu in
  33629. + hppa*64*)
  33630. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33631. + ;;
  33632. + ia64*)
  33633. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  33634. + ;;
  33635. + *)
  33636. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33637. + ;;
  33638. + esac
  33639. + else
  33640. + case $host_cpu in
  33641. + hppa*64*)
  33642. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33643. + ;;
  33644. + ia64*)
  33645. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  33646. + ;;
  33647. + *)
  33648. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  33649. + ;;
  33650. + esac
  33651. + fi
  33652. + if test "$with_gnu_ld" = no; then
  33653. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  33654. + hardcode_libdir_separator=:
  33655. -# The coded name of the library, if different from the real name.
  33656. -soname_spec=$lt_soname_spec
  33657. + case $host_cpu in
  33658. + hppa*64*|ia64*)
  33659. + hardcode_direct=no
  33660. + hardcode_shlibpath_var=no
  33661. + ;;
  33662. + *)
  33663. + hardcode_direct=yes
  33664. + hardcode_direct_absolute=yes
  33665. + export_dynamic_flag_spec='${wl}-E'
  33666. -# Commands used to build and install an old-style archive.
  33667. -RANLIB=$lt_RANLIB
  33668. -old_archive_cmds=$lt_old_archive_cmds_F77
  33669. -old_postinstall_cmds=$lt_old_postinstall_cmds
  33670. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  33671. + # hardcode_minus_L: Not really in the search PATH,
  33672. + # but as the default location of the library.
  33673. + hardcode_minus_L=yes
  33674. + ;;
  33675. + esac
  33676. + fi
  33677. + ;;
  33678. -# Create an old-style archive from a shared archive.
  33679. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  33680. + irix5* | irix6* | nonstopux*)
  33681. + if test "$GCC" = yes; then
  33682. + 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'
  33683. + # Try to use the -exported_symbol ld option, if it does not
  33684. + # work, assume that -exports_file does not work either and
  33685. + # implicitly export all symbols.
  33686. + save_LDFLAGS="$LDFLAGS"
  33687. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  33688. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33689. +/* end confdefs.h. */
  33690. +int foo(void) {}
  33691. +_ACEOF
  33692. +if ac_fn_c_try_link "$LINENO"; then :
  33693. + 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'
  33694. -# Create a temporary old-style archive to link instead of a shared archive.
  33695. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  33696. +fi
  33697. +rm -f core conftest.err conftest.$ac_objext \
  33698. + conftest$ac_exeext conftest.$ac_ext
  33699. + LDFLAGS="$save_LDFLAGS"
  33700. + else
  33701. + 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'
  33702. + 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'
  33703. + fi
  33704. + archive_cmds_need_lc='no'
  33705. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  33706. + hardcode_libdir_separator=:
  33707. + inherit_rpath=yes
  33708. + link_all_deplibs=yes
  33709. + ;;
  33710. -# Commands used to build and install a shared archive.
  33711. -archive_cmds=$lt_archive_cmds_F77
  33712. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  33713. -postinstall_cmds=$lt_postinstall_cmds
  33714. -postuninstall_cmds=$lt_postuninstall_cmds
  33715. + netbsd* | netbsdelf*-gnu)
  33716. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  33717. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  33718. + else
  33719. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  33720. + fi
  33721. + hardcode_libdir_flag_spec='-R$libdir'
  33722. + hardcode_direct=yes
  33723. + hardcode_shlibpath_var=no
  33724. + ;;
  33725. -# Commands used to build a loadable module (assumed same as above if empty)
  33726. -module_cmds=$lt_module_cmds_F77
  33727. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  33728. + newsos6)
  33729. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33730. + hardcode_direct=yes
  33731. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  33732. + hardcode_libdir_separator=:
  33733. + hardcode_shlibpath_var=no
  33734. + ;;
  33735. -# Commands to strip libraries.
  33736. -old_striplib=$lt_old_striplib
  33737. -striplib=$lt_striplib
  33738. + *nto* | *qnx*)
  33739. + ;;
  33740. -# Dependencies to place before the objects being linked to create a
  33741. -# shared library.
  33742. -predep_objects=$lt_predep_objects_F77
  33743. -
  33744. -# Dependencies to place after the objects being linked to create a
  33745. -# shared library.
  33746. -postdep_objects=$lt_postdep_objects_F77
  33747. -
  33748. -# Dependencies to place before the objects being linked to create a
  33749. -# shared library.
  33750. -predeps=$lt_predeps_F77
  33751. -
  33752. -# Dependencies to place after the objects being linked to create a
  33753. -# shared library.
  33754. -postdeps=$lt_postdeps_F77
  33755. -
  33756. -# The library search path used internally by the compiler when linking
  33757. -# a shared library.
  33758. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  33759. + openbsd*)
  33760. + if test -f /usr/libexec/ld.so; then
  33761. + hardcode_direct=yes
  33762. + hardcode_shlibpath_var=no
  33763. + hardcode_direct_absolute=yes
  33764. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33765. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  33766. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  33767. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  33768. + export_dynamic_flag_spec='${wl}-E'
  33769. + else
  33770. + case $host_os in
  33771. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  33772. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33773. + hardcode_libdir_flag_spec='-R$libdir'
  33774. + ;;
  33775. + *)
  33776. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  33777. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  33778. + ;;
  33779. + esac
  33780. + fi
  33781. + else
  33782. + ld_shlibs=no
  33783. + fi
  33784. + ;;
  33785. -# Method to check whether dependent libraries are shared objects.
  33786. -deplibs_check_method=$lt_deplibs_check_method
  33787. + os2*)
  33788. + hardcode_libdir_flag_spec='-L$libdir'
  33789. + hardcode_minus_L=yes
  33790. + allow_undefined_flag=unsupported
  33791. + 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'
  33792. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  33793. + ;;
  33794. -# Command to use when deplibs_check_method == file_magic.
  33795. -file_magic_cmd=$lt_file_magic_cmd
  33796. + osf3*)
  33797. + if test "$GCC" = yes; then
  33798. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  33799. + 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'
  33800. + else
  33801. + allow_undefined_flag=' -expect_unresolved \*'
  33802. + 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'
  33803. + fi
  33804. + archive_cmds_need_lc='no'
  33805. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  33806. + hardcode_libdir_separator=:
  33807. + ;;
  33808. -# Flag that allows shared libraries with undefined symbols to be built.
  33809. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  33810. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  33811. + if test "$GCC" = yes; then
  33812. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  33813. + 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'
  33814. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  33815. + else
  33816. + allow_undefined_flag=' -expect_unresolved \*'
  33817. + 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'
  33818. + 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~
  33819. + $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'
  33820. -# Flag that forces no undefined symbols.
  33821. -no_undefined_flag=$lt_no_undefined_flag_F77
  33822. + # Both c and cxx compiler support -rpath directly
  33823. + hardcode_libdir_flag_spec='-rpath $libdir'
  33824. + fi
  33825. + archive_cmds_need_lc='no'
  33826. + hardcode_libdir_separator=:
  33827. + ;;
  33828. -# Commands used to finish a libtool library installation in a directory.
  33829. -finish_cmds=$lt_finish_cmds
  33830. + solaris*)
  33831. + no_undefined_flag=' -z defs'
  33832. + if test "$GCC" = yes; then
  33833. + wlarc='${wl}'
  33834. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  33835. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  33836. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  33837. + else
  33838. + case `$CC -V 2>&1` in
  33839. + *"Compilers 5.0"*)
  33840. + wlarc=''
  33841. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33842. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  33843. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  33844. + ;;
  33845. + *)
  33846. + wlarc='${wl}'
  33847. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  33848. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  33849. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  33850. + ;;
  33851. + esac
  33852. + fi
  33853. + hardcode_libdir_flag_spec='-R$libdir'
  33854. + hardcode_shlibpath_var=no
  33855. + case $host_os in
  33856. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  33857. + *)
  33858. + # The compiler driver will combine and reorder linker options,
  33859. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  33860. + # but is careful enough not to reorder.
  33861. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  33862. + if test "$GCC" = yes; then
  33863. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  33864. + else
  33865. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  33866. + fi
  33867. + ;;
  33868. + esac
  33869. + link_all_deplibs=yes
  33870. + ;;
  33871. -# Same as above, but a single script fragment to be evaled but not shown.
  33872. -finish_eval=$lt_finish_eval
  33873. + sunos4*)
  33874. + if test "x$host_vendor" = xsequent; then
  33875. + # Use $CC to link under sequent, because it throws in some extra .o
  33876. + # files that make .init and .fini sections work.
  33877. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  33878. + else
  33879. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  33880. + fi
  33881. + hardcode_libdir_flag_spec='-L$libdir'
  33882. + hardcode_direct=yes
  33883. + hardcode_minus_L=yes
  33884. + hardcode_shlibpath_var=no
  33885. + ;;
  33886. -# Take the output of nm and produce a listing of raw symbols and C names.
  33887. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  33888. + sysv4)
  33889. + case $host_vendor in
  33890. + sni)
  33891. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33892. + hardcode_direct=yes # is this really true???
  33893. + ;;
  33894. + siemens)
  33895. + ## LD is ld it makes a PLAMLIB
  33896. + ## CC just makes a GrossModule.
  33897. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  33898. + reload_cmds='$CC -r -o $output$reload_objs'
  33899. + hardcode_direct=no
  33900. + ;;
  33901. + motorola)
  33902. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33903. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  33904. + ;;
  33905. + esac
  33906. + runpath_var='LD_RUN_PATH'
  33907. + hardcode_shlibpath_var=no
  33908. + ;;
  33909. -# Transform the output of nm in a proper C declaration
  33910. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  33911. + sysv4.3*)
  33912. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33913. + hardcode_shlibpath_var=no
  33914. + export_dynamic_flag_spec='-Bexport'
  33915. + ;;
  33916. -# Transform the output of nm in a C name address pair
  33917. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  33918. + sysv4*MP*)
  33919. + if test -d /usr/nec; then
  33920. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33921. + hardcode_shlibpath_var=no
  33922. + runpath_var=LD_RUN_PATH
  33923. + hardcode_runpath_var=yes
  33924. + ld_shlibs=yes
  33925. + fi
  33926. + ;;
  33927. -# This is the shared library runtime path variable.
  33928. -runpath_var=$runpath_var
  33929. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  33930. + no_undefined_flag='${wl}-z,text'
  33931. + archive_cmds_need_lc=no
  33932. + hardcode_shlibpath_var=no
  33933. + runpath_var='LD_RUN_PATH'
  33934. -# This is the shared library path variable.
  33935. -shlibpath_var=$shlibpath_var
  33936. + if test "$GCC" = yes; then
  33937. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33938. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33939. + else
  33940. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33941. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33942. + fi
  33943. + ;;
  33944. -# Is shlibpath searched before the hard-coded library search path?
  33945. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  33946. + sysv5* | sco3.2v5* | sco5v6*)
  33947. + # Note: We can NOT use -z defs as we might desire, because we do not
  33948. + # link with -lc, and that would cause any symbols used from libc to
  33949. + # always be unresolved, which means just about no library would
  33950. + # ever link correctly. If we're not using GNU ld we use -z text
  33951. + # though, which does catch some bad symbols but isn't as heavy-handed
  33952. + # as -z defs.
  33953. + no_undefined_flag='${wl}-z,text'
  33954. + allow_undefined_flag='${wl}-z,nodefs'
  33955. + archive_cmds_need_lc=no
  33956. + hardcode_shlibpath_var=no
  33957. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  33958. + hardcode_libdir_separator=':'
  33959. + link_all_deplibs=yes
  33960. + export_dynamic_flag_spec='${wl}-Bexport'
  33961. + runpath_var='LD_RUN_PATH'
  33962. -# How to hardcode a shared library path into an executable.
  33963. -hardcode_action=$hardcode_action_F77
  33964. + if test "$GCC" = yes; then
  33965. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33966. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33967. + else
  33968. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33969. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  33970. + fi
  33971. + ;;
  33972. -# Whether we should hardcode library paths into libraries.
  33973. -hardcode_into_libs=$hardcode_into_libs
  33974. + uts4*)
  33975. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  33976. + hardcode_libdir_flag_spec='-L$libdir'
  33977. + hardcode_shlibpath_var=no
  33978. + ;;
  33979. -# Flag to hardcode \$libdir into a binary during linking.
  33980. -# This must work even if \$libdir does not exist.
  33981. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  33982. + *)
  33983. + ld_shlibs=no
  33984. + ;;
  33985. + esac
  33986. -# If ld is used when linking, flag to hardcode \$libdir into
  33987. -# a binary during linking. This must work even if \$libdir does
  33988. -# not exist.
  33989. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  33990. -
  33991. -# Whether we need a single -rpath flag with a separated argument.
  33992. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  33993. -
  33994. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  33995. -# resulting binary.
  33996. -hardcode_direct=$hardcode_direct_F77
  33997. -
  33998. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  33999. -# resulting binary.
  34000. -hardcode_minus_L=$hardcode_minus_L_F77
  34001. -
  34002. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  34003. -# the resulting binary.
  34004. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  34005. -
  34006. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  34007. -# and all subsequent libraries and executables linked against it.
  34008. -hardcode_automatic=$hardcode_automatic_F77
  34009. + if test x$host_vendor = xsni; then
  34010. + case $host in
  34011. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  34012. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  34013. + ;;
  34014. + esac
  34015. + fi
  34016. + fi
  34017. -# Variables whose values should be saved in libtool wrapper scripts and
  34018. -# restored at relink time.
  34019. -variables_saved_for_relink="$variables_saved_for_relink"
  34020. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  34021. +$as_echo "$ld_shlibs" >&6; }
  34022. +test "$ld_shlibs" = no && can_build_shared=no
  34023. -# Whether libtool must link a program against all its dependency libraries.
  34024. -link_all_deplibs=$link_all_deplibs_F77
  34025. +with_gnu_ld=$with_gnu_ld
  34026. -# Compile-time system search path for libraries
  34027. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34028. -# Run-time system search path for libraries
  34029. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34030. -# Fix the shell variable \$srcfile for the compiler.
  34031. -fix_srcfile_path="$fix_srcfile_path_F77"
  34032. -# Set to yes if exported symbols are required.
  34033. -always_export_symbols=$always_export_symbols_F77
  34034. -# The commands to list exported symbols.
  34035. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  34036. -# The commands to extract the exported symbol list from a shared archive.
  34037. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34038. -# Symbols that should not be listed in the preloaded symbols.
  34039. -exclude_expsyms=$lt_exclude_expsyms_F77
  34040. -# Symbols that must always be exported.
  34041. -include_expsyms=$lt_include_expsyms_F77
  34042. -# ### END LIBTOOL TAG CONFIG: $tagname
  34043. -__EOF__
  34044. -else
  34045. - # If there is no Makefile yet, we rely on a make rule to execute
  34046. - # `config.status --recheck' to rerun these tests and create the
  34047. - # libtool script then.
  34048. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  34049. - if test -f "$ltmain_in"; then
  34050. - test -f Makefile && make "$ltmain"
  34051. - fi
  34052. -fi
  34053. -ac_ext=c
  34054. -ac_cpp='$CPP $CPPFLAGS'
  34055. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34056. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34057. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34058. -CC="$lt_save_CC"
  34059. +#
  34060. +# Do we need to explicitly link libc?
  34061. +#
  34062. +case "x$archive_cmds_need_lc" in
  34063. +x|xyes)
  34064. + # Assume -lc should be added
  34065. + archive_cmds_need_lc=yes
  34066. +
  34067. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  34068. + case $archive_cmds in
  34069. + *'~'*)
  34070. + # FIXME: we may have to deal with multi-command sequences.
  34071. + ;;
  34072. + '$CC '*)
  34073. + # Test whether the compiler implicitly links with -lc since on some
  34074. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  34075. + # to ld, don't add -lc before -lgcc.
  34076. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  34077. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  34078. + $RM conftest*
  34079. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34080. +
  34081. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  34082. + (eval $ac_compile) 2>&5
  34083. + ac_status=$?
  34084. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34085. + test $ac_status = 0; } 2>conftest.err; then
  34086. + soname=conftest
  34087. + lib=conftest
  34088. + libobjs=conftest.$ac_objext
  34089. + deplibs=
  34090. + wl=$lt_prog_compiler_wl
  34091. + pic_flag=$lt_prog_compiler_pic
  34092. + compiler_flags=-v
  34093. + linker_flags=-v
  34094. + verstring=
  34095. + output_objdir=.
  34096. + libname=conftest
  34097. + lt_save_allow_undefined_flag=$allow_undefined_flag
  34098. + allow_undefined_flag=
  34099. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  34100. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  34101. + ac_status=$?
  34102. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34103. + test $ac_status = 0; }
  34104. + then
  34105. + archive_cmds_need_lc=no
  34106. + else
  34107. + archive_cmds_need_lc=yes
  34108. + fi
  34109. + allow_undefined_flag=$lt_save_allow_undefined_flag
  34110. + else
  34111. + cat conftest.err 1>&5
  34112. + fi
  34113. + $RM conftest*
  34114. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  34115. +$as_echo "$archive_cmds_need_lc" >&6; }
  34116. + ;;
  34117. + esac
  34118. + fi
  34119. + ;;
  34120. +esac
  34121. +
  34122. +
  34123. - else
  34124. - tagname=""
  34125. - fi
  34126. - ;;
  34127. - GCJ)
  34128. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  34129. -# Source file extension for Java test sources.
  34130. -ac_ext=java
  34131. -# Object file extension for compiled Java test sources.
  34132. -objext=o
  34133. -objext_GCJ=$objext
  34134. -# Code to be used in simple compile tests
  34135. -lt_simple_compile_test_code="class foo {}\n"
  34136. -# Code to be used in simple link tests
  34137. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  34138. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  34139. -# If no C compiler was specified, use CC.
  34140. -LTCC=${LTCC-"$CC"}
  34141. -# If no C compiler flags were specified, use CFLAGS.
  34142. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  34143. -# Allow CC to be a program name with arguments.
  34144. -compiler=$CC
  34145. -# save warnings/boilerplate of simple test code
  34146. -ac_outfile=conftest.$ac_objext
  34147. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  34148. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34149. -_lt_compiler_boilerplate=`cat conftest.err`
  34150. -$rm conftest*
  34151. -ac_outfile=conftest.$ac_objext
  34152. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  34153. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  34154. -_lt_linker_boilerplate=`cat conftest.err`
  34155. -$rm conftest*
  34156. -# Allow CC to be a program name with arguments.
  34157. -lt_save_CC="$CC"
  34158. -CC=${GCJ-"gcj"}
  34159. -compiler=$CC
  34160. -compiler_GCJ=$CC
  34161. -for cc_temp in $compiler""; do
  34162. - case $cc_temp in
  34163. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34164. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34165. - \-*) ;;
  34166. - *) break;;
  34167. - esac
  34168. -done
  34169. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34170. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  34171. -archive_cmds_need_lc_GCJ=no
  34172. -old_archive_cmds_GCJ=$old_archive_cmds
  34173. -lt_prog_compiler_no_builtin_flag_GCJ=
  34174. -if test "$GCC" = yes; then
  34175. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  34176. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  34177. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  34178. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  34179. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34180. -else
  34181. - lt_cv_prog_compiler_rtti_exceptions=no
  34182. - ac_outfile=conftest.$ac_objext
  34183. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  34184. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  34185. - # Insert the option either (1) after the last *FLAGS variable, or
  34186. - # (2) before a word containing "conftest.", or (3) at the end.
  34187. - # Note that $ac_compile itself does not contain backslashes and begins
  34188. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34189. - # The option is referenced via a variable to avoid confusing sed.
  34190. - lt_compile=`echo "$ac_compile" | $SED \
  34191. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34192. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34193. - -e 's:$: $lt_compiler_flag:'`
  34194. - (eval echo "\"\$as_me:16206: $lt_compile\"" >&5)
  34195. - (eval "$lt_compile" 2>conftest.err)
  34196. - ac_status=$?
  34197. - cat conftest.err >&5
  34198. - echo "$as_me:16210: \$? = $ac_status" >&5
  34199. - if (exit $ac_status) && test -s "$ac_outfile"; then
  34200. - # The compiler can only warn and ignore the option if not recognized
  34201. - # So say no if there are warnings other than the usual output.
  34202. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34203. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34204. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34205. - lt_cv_prog_compiler_rtti_exceptions=yes
  34206. - fi
  34207. - fi
  34208. - $rm conftest*
  34209. -fi
  34210. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  34211. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  34212. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  34213. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  34214. -else
  34215. - :
  34216. -fi
  34217. -fi
  34218. -lt_prog_compiler_wl_GCJ=
  34219. -lt_prog_compiler_pic_GCJ=
  34220. -lt_prog_compiler_static_GCJ=
  34221. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  34222. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  34223. - if test "$GCC" = yes; then
  34224. - lt_prog_compiler_wl_GCJ='-Wl,'
  34225. - lt_prog_compiler_static_GCJ='-static'
  34226. - case $host_os in
  34227. - aix*)
  34228. - # All AIX code is PIC.
  34229. - if test "$host_cpu" = ia64; then
  34230. - # AIX 5 now supports IA64 processor
  34231. - lt_prog_compiler_static_GCJ='-Bstatic'
  34232. - fi
  34233. - ;;
  34234. - amigaos*)
  34235. - # FIXME: we need at least 68020 code to build shared libraries, but
  34236. - # adding the `-m68020' flag to GCC prevents building anything better,
  34237. - # like `-m68040'.
  34238. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  34239. - ;;
  34240. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  34241. - # PIC is the default for these OSes.
  34242. - ;;
  34243. - mingw* | pw32* | os2*)
  34244. - # This hack is so that the source file can tell whether it is being
  34245. - # built for inclusion in a dll (and should export symbols for example).
  34246. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  34247. - ;;
  34248. - darwin* | rhapsody*)
  34249. - # PIC is the default on this platform
  34250. - # Common symbols not allowed in MH_DYLIB files
  34251. - lt_prog_compiler_pic_GCJ='-fno-common'
  34252. - ;;
  34253. - interix3*)
  34254. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  34255. - # Instead, we relocate shared libraries at runtime.
  34256. - ;;
  34257. - msdosdjgpp*)
  34258. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  34259. - # on systems that don't support them.
  34260. - lt_prog_compiler_can_build_shared_GCJ=no
  34261. - enable_shared=no
  34262. - ;;
  34263. - sysv4*MP*)
  34264. - if test -d /usr/nec; then
  34265. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  34266. - fi
  34267. - ;;
  34268. - hpux*)
  34269. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34270. - # not for PA HP-UX.
  34271. - case $host_cpu in
  34272. - hppa*64*|ia64*)
  34273. - # +Z the default
  34274. - ;;
  34275. - *)
  34276. - lt_prog_compiler_pic_GCJ='-fPIC'
  34277. - ;;
  34278. - esac
  34279. - ;;
  34280. - *)
  34281. - lt_prog_compiler_pic_GCJ='-fPIC'
  34282. - ;;
  34283. - esac
  34284. - else
  34285. - # PORTME Check for flag to pass linker flags through the system compiler.
  34286. - case $host_os in
  34287. - aix*)
  34288. - lt_prog_compiler_wl_GCJ='-Wl,'
  34289. - if test "$host_cpu" = ia64; then
  34290. - # AIX 5 now supports IA64 processor
  34291. - lt_prog_compiler_static_GCJ='-Bstatic'
  34292. - else
  34293. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  34294. - fi
  34295. - ;;
  34296. - darwin*)
  34297. - # PIC is the default on this platform
  34298. - # Common symbols not allowed in MH_DYLIB files
  34299. - case $cc_basename in
  34300. - xlc*)
  34301. - lt_prog_compiler_pic_GCJ='-qnocommon'
  34302. - lt_prog_compiler_wl_GCJ='-Wl,'
  34303. - ;;
  34304. - esac
  34305. - ;;
  34306. - mingw* | pw32* | os2*)
  34307. - # This hack is so that the source file can tell whether it is being
  34308. - # built for inclusion in a dll (and should export symbols for example).
  34309. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  34310. - ;;
  34311. - hpux9* | hpux10* | hpux11*)
  34312. - lt_prog_compiler_wl_GCJ='-Wl,'
  34313. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34314. - # not for PA HP-UX.
  34315. - case $host_cpu in
  34316. - hppa*64*|ia64*)
  34317. - # +Z the default
  34318. - ;;
  34319. - *)
  34320. - lt_prog_compiler_pic_GCJ='+Z'
  34321. - ;;
  34322. - esac
  34323. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  34324. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  34325. - ;;
  34326. - irix5* | irix6* | nonstopux*)
  34327. - lt_prog_compiler_wl_GCJ='-Wl,'
  34328. - # PIC (with -KPIC) is the default.
  34329. - lt_prog_compiler_static_GCJ='-non_shared'
  34330. - ;;
  34331. - newsos6)
  34332. - lt_prog_compiler_pic_GCJ='-KPIC'
  34333. - lt_prog_compiler_static_GCJ='-Bstatic'
  34334. - ;;
  34335. - linux* | k*bsd*-gnu)
  34336. - case $cc_basename in
  34337. - icc* | ecc*)
  34338. - lt_prog_compiler_wl_GCJ='-Wl,'
  34339. - lt_prog_compiler_pic_GCJ='-KPIC'
  34340. - lt_prog_compiler_static_GCJ='-static'
  34341. - ;;
  34342. - pgcc* | pgf77* | pgf90* | pgf95*)
  34343. - # Portland Group compilers (*not* the Pentium gcc compiler,
  34344. - # which looks to be a dead project)
  34345. - lt_prog_compiler_wl_GCJ='-Wl,'
  34346. - lt_prog_compiler_pic_GCJ='-fpic'
  34347. - lt_prog_compiler_static_GCJ='-Bstatic'
  34348. - ;;
  34349. - ccc*)
  34350. - lt_prog_compiler_wl_GCJ='-Wl,'
  34351. - # All Alpha code is PIC.
  34352. - lt_prog_compiler_static_GCJ='-non_shared'
  34353. - ;;
  34354. - esac
  34355. - ;;
  34356. - osf3* | osf4* | osf5*)
  34357. - lt_prog_compiler_wl_GCJ='-Wl,'
  34358. - # All OSF/1 code is PIC.
  34359. - lt_prog_compiler_static_GCJ='-non_shared'
  34360. - ;;
  34361. - solaris*)
  34362. - lt_prog_compiler_pic_GCJ='-KPIC'
  34363. - lt_prog_compiler_static_GCJ='-Bstatic'
  34364. - case $cc_basename in
  34365. - f77* | f90* | f95*)
  34366. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  34367. - *)
  34368. - lt_prog_compiler_wl_GCJ='-Wl,';;
  34369. - esac
  34370. - ;;
  34371. - sunos4*)
  34372. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  34373. - lt_prog_compiler_pic_GCJ='-PIC'
  34374. - lt_prog_compiler_static_GCJ='-Bstatic'
  34375. - ;;
  34376. - sysv4 | sysv4.2uw2* | sysv4.3*)
  34377. - lt_prog_compiler_wl_GCJ='-Wl,'
  34378. - lt_prog_compiler_pic_GCJ='-KPIC'
  34379. - lt_prog_compiler_static_GCJ='-Bstatic'
  34380. - ;;
  34381. - sysv4*MP*)
  34382. - if test -d /usr/nec ;then
  34383. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  34384. - lt_prog_compiler_static_GCJ='-Bstatic'
  34385. - fi
  34386. - ;;
  34387. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  34388. - lt_prog_compiler_wl_GCJ='-Wl,'
  34389. - lt_prog_compiler_pic_GCJ='-KPIC'
  34390. - lt_prog_compiler_static_GCJ='-Bstatic'
  34391. - ;;
  34392. - unicos*)
  34393. - lt_prog_compiler_wl_GCJ='-Wl,'
  34394. - lt_prog_compiler_can_build_shared_GCJ=no
  34395. - ;;
  34396. - uts4*)
  34397. - lt_prog_compiler_pic_GCJ='-pic'
  34398. - lt_prog_compiler_static_GCJ='-Bstatic'
  34399. - ;;
  34400. - *)
  34401. - lt_prog_compiler_can_build_shared_GCJ=no
  34402. - ;;
  34403. - esac
  34404. - fi
  34405. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  34406. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  34407. -#
  34408. -# Check to make sure the PIC flag actually works.
  34409. -#
  34410. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  34411. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  34412. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  34413. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  34414. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34415. -else
  34416. - lt_prog_compiler_pic_works_GCJ=no
  34417. - ac_outfile=conftest.$ac_objext
  34418. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  34419. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  34420. - # Insert the option either (1) after the last *FLAGS variable, or
  34421. - # (2) before a word containing "conftest.", or (3) at the end.
  34422. - # Note that $ac_compile itself does not contain backslashes and begins
  34423. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34424. - # The option is referenced via a variable to avoid confusing sed.
  34425. - lt_compile=`echo "$ac_compile" | $SED \
  34426. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34427. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34428. - -e 's:$: $lt_compiler_flag:'`
  34429. - (eval echo "\"\$as_me:16474: $lt_compile\"" >&5)
  34430. - (eval "$lt_compile" 2>conftest.err)
  34431. - ac_status=$?
  34432. - cat conftest.err >&5
  34433. - echo "$as_me:16478: \$? = $ac_status" >&5
  34434. - if (exit $ac_status) && test -s "$ac_outfile"; then
  34435. - # The compiler can only warn and ignore the option if not recognized
  34436. - # So say no if there are warnings other than the usual output.
  34437. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34438. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34439. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34440. - lt_prog_compiler_pic_works_GCJ=yes
  34441. - fi
  34442. - fi
  34443. - $rm conftest*
  34444. -fi
  34445. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  34446. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  34447. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  34448. - case $lt_prog_compiler_pic_GCJ in
  34449. - "" | " "*) ;;
  34450. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  34451. - esac
  34452. -else
  34453. - lt_prog_compiler_pic_GCJ=
  34454. - lt_prog_compiler_can_build_shared_GCJ=no
  34455. -fi
  34456. -fi
  34457. -case $host_os in
  34458. - # For platforms which do not support PIC, -DPIC is meaningless:
  34459. - *djgpp*)
  34460. - lt_prog_compiler_pic_GCJ=
  34461. - ;;
  34462. - *)
  34463. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  34464. - ;;
  34465. -esac
  34466. -#
  34467. -# Check to make sure the static flag actually works.
  34468. -#
  34469. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  34470. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34471. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  34472. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  34473. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34474. -else
  34475. - lt_prog_compiler_static_works_GCJ=no
  34476. - save_LDFLAGS="$LDFLAGS"
  34477. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  34478. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  34479. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  34480. - # The linker can only warn and ignore the option if not recognized
  34481. - # So say no if there are warnings
  34482. - if test -s conftest.err; then
  34483. - # Append any errors to the config.log.
  34484. - cat conftest.err 1>&5
  34485. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34486. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34487. - if diff conftest.exp conftest.er2 >/dev/null; then
  34488. - lt_prog_compiler_static_works_GCJ=yes
  34489. - fi
  34490. - else
  34491. - lt_prog_compiler_static_works_GCJ=yes
  34492. - fi
  34493. - fi
  34494. - $rm conftest*
  34495. - LDFLAGS="$save_LDFLAGS"
  34496. -fi
  34497. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  34498. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  34499. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  34500. - :
  34501. -else
  34502. - lt_prog_compiler_static_GCJ=
  34503. -fi
  34504. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  34505. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  34506. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  34507. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34508. -else
  34509. - lt_cv_prog_compiler_c_o_GCJ=no
  34510. - $rm -r conftest 2>/dev/null
  34511. - mkdir conftest
  34512. - cd conftest
  34513. - mkdir out
  34514. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  34515. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  34516. - # Insert the option either (1) after the last *FLAGS variable, or
  34517. - # (2) before a word containing "conftest.", or (3) at the end.
  34518. - # Note that $ac_compile itself does not contain backslashes and begins
  34519. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  34520. - lt_compile=`echo "$ac_compile" | $SED \
  34521. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34522. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34523. - -e 's:$: $lt_compiler_flag:'`
  34524. - (eval echo "\"\$as_me:16578: $lt_compile\"" >&5)
  34525. - (eval "$lt_compile" 2>out/conftest.err)
  34526. - ac_status=$?
  34527. - cat out/conftest.err >&5
  34528. - echo "$as_me:16582: \$? = $ac_status" >&5
  34529. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  34530. - then
  34531. - # The compiler can only warn and ignore the option if not recognized
  34532. - # So say no if there are warnings
  34533. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  34534. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  34535. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  34536. - lt_cv_prog_compiler_c_o_GCJ=yes
  34537. - fi
  34538. - fi
  34539. - chmod u+w . 2>&5
  34540. - $rm conftest*
  34541. - # SGI C++ compiler will create directory out/ii_files/ for
  34542. - # template instantiation
  34543. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  34544. - $rm out/* && rmdir out
  34545. - cd ..
  34546. - rmdir conftest
  34547. - $rm conftest*
  34548. -fi
  34549. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  34550. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  34551. -hard_links="nottested"
  34552. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  34553. - # do not overwrite the value of need_locks provided by the user
  34554. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  34555. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  34556. - hard_links=yes
  34557. - $rm conftest*
  34558. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34559. - touch conftest.a
  34560. - ln conftest.a conftest.b 2>&5 || hard_links=no
  34561. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  34562. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  34563. -echo "${ECHO_T}$hard_links" >&6; }
  34564. - if test "$hard_links" = no; then
  34565. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  34566. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  34567. - need_locks=warn
  34568. - fi
  34569. -else
  34570. - need_locks=no
  34571. -fi
  34572. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  34573. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  34574. - runpath_var=
  34575. - allow_undefined_flag_GCJ=
  34576. - enable_shared_with_static_runtimes_GCJ=no
  34577. - archive_cmds_GCJ=
  34578. - archive_expsym_cmds_GCJ=
  34579. - old_archive_From_new_cmds_GCJ=
  34580. - old_archive_from_expsyms_cmds_GCJ=
  34581. - export_dynamic_flag_spec_GCJ=
  34582. - whole_archive_flag_spec_GCJ=
  34583. - thread_safe_flag_spec_GCJ=
  34584. - hardcode_libdir_flag_spec_GCJ=
  34585. - hardcode_libdir_flag_spec_ld_GCJ=
  34586. - hardcode_libdir_separator_GCJ=
  34587. - hardcode_direct_GCJ=no
  34588. - hardcode_minus_L_GCJ=no
  34589. - hardcode_shlibpath_var_GCJ=unsupported
  34590. - link_all_deplibs_GCJ=unknown
  34591. - hardcode_automatic_GCJ=no
  34592. - module_cmds_GCJ=
  34593. - module_expsym_cmds_GCJ=
  34594. - always_export_symbols_GCJ=no
  34595. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  34596. - # include_expsyms should be a list of space-separated symbols to be *always*
  34597. - # included in the symbol list
  34598. - include_expsyms_GCJ=
  34599. - # exclude_expsyms can be an extended regexp of symbols to exclude
  34600. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  34601. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  34602. - # as well as any symbol that contains `d'.
  34603. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  34604. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  34605. - # platforms (ab)use it in PIC code, but their linkers get confused if
  34606. - # the symbol is explicitly referenced. Since portable code cannot
  34607. - # rely on this symbol name, it's probably fine to never include it in
  34608. - # preloaded symbol tables.
  34609. - extract_expsyms_cmds=
  34610. - # Just being paranoid about ensuring that cc_basename is set.
  34611. - for cc_temp in $compiler""; do
  34612. - case $cc_temp in
  34613. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  34614. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  34615. - \-*) ;;
  34616. - *) break;;
  34617. - esac
  34618. -done
  34619. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34620. - case $host_os in
  34621. - cygwin* | mingw* | pw32*)
  34622. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  34623. - # When not using gcc, we currently assume that we are using
  34624. - # Microsoft Visual C++.
  34625. - if test "$GCC" != yes; then
  34626. - with_gnu_ld=no
  34627. - fi
  34628. - ;;
  34629. - interix*)
  34630. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  34631. - with_gnu_ld=yes
  34632. - ;;
  34633. - openbsd*)
  34634. - with_gnu_ld=no
  34635. - ;;
  34636. - esac
  34637. - ld_shlibs_GCJ=yes
  34638. - if test "$with_gnu_ld" = yes; then
  34639. - # If archive_cmds runs LD, not CC, wlarc should be empty
  34640. - wlarc='${wl}'
  34641. - # Set some defaults for GNU ld with shared library support. These
  34642. - # are reset later if shared libraries are not supported. Putting them
  34643. - # here allows them to be overridden if necessary.
  34644. - runpath_var=LD_RUN_PATH
  34645. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  34646. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  34647. - # ancient GNU ld didn't support --whole-archive et. al.
  34648. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  34649. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34650. - else
  34651. - whole_archive_flag_spec_GCJ=
  34652. - fi
  34653. - supports_anon_versioning=no
  34654. - case `$LD -v 2>/dev/null` in
  34655. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34656. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34657. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34658. - *\ 2.11.*) ;; # other 2.11 versions
  34659. - *) supports_anon_versioning=yes ;;
  34660. - esac
  34661. - # See if GNU ld supports shared libraries.
  34662. - case $host_os in
  34663. - aix3* | aix4* | aix5*)
  34664. - # On AIX/PPC, the GNU linker is very broken
  34665. - if test "$host_cpu" != ia64; then
  34666. - ld_shlibs_GCJ=no
  34667. - cat <<EOF 1>&2
  34668. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  34669. -*** to be unable to reliably create shared libraries on AIX.
  34670. -*** Therefore, libtool is disabling shared libraries support. If you
  34671. -*** really care for shared libraries, you may want to modify your PATH
  34672. -*** so that a non-GNU linker is found, and then restart.
  34673. -EOF
  34674. - fi
  34675. - ;;
  34676. - amigaos*)
  34677. - 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)'
  34678. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34679. - hardcode_minus_L_GCJ=yes
  34680. -
  34681. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  34682. - # that the semantics of dynamic libraries on AmigaOS, at least up
  34683. - # to version 4, is to share data among multiple programs linked
  34684. - # with the same dynamic library. Since this doesn't match the
  34685. - # behavior of shared libraries on other platforms, we can't use
  34686. - # them.
  34687. - ld_shlibs_GCJ=no
  34688. - ;;
  34689. - beos*)
  34690. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34691. - allow_undefined_flag_GCJ=unsupported
  34692. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34693. - # support --undefined. This deserves some investigation. FIXME
  34694. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34695. - else
  34696. - ld_shlibs_GCJ=no
  34697. - fi
  34698. - ;;
  34699. - cygwin* | mingw* | pw32*)
  34700. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  34701. - # as there is no search path for DLLs.
  34702. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34703. - allow_undefined_flag_GCJ=unsupported
  34704. - always_export_symbols_GCJ=no
  34705. - enable_shared_with_static_runtimes_GCJ=yes
  34706. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  34707. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  34708. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34709. - # If the export-symbols file already is a .def file (1st line
  34710. - # is EXPORTS), use it as is; otherwise, prepend...
  34711. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34712. - cp $export_symbols $output_objdir/$soname.def;
  34713. - else
  34714. - echo EXPORTS > $output_objdir/$soname.def;
  34715. - cat $export_symbols >> $output_objdir/$soname.def;
  34716. - fi~
  34717. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34718. - else
  34719. - ld_shlibs_GCJ=no
  34720. - fi
  34721. - ;;
  34722. - interix3*)
  34723. - hardcode_direct_GCJ=no
  34724. - hardcode_shlibpath_var_GCJ=no
  34725. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  34726. - export_dynamic_flag_spec_GCJ='${wl}-E'
  34727. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34728. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  34729. - # default) and relocated if they conflict, which is a slow very memory
  34730. - # consuming and fragmenting process. To avoid this, we pick a random,
  34731. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34732. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34733. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34734. - archive_expsym_cmds_GCJ='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'
  34735. - ;;
  34736. - linux* | k*bsd*-gnu)
  34737. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34738. - tmp_addflag=
  34739. - case $cc_basename,$host_cpu in
  34740. - pgcc*) # Portland Group C compiler
  34741. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  34742. - tmp_addflag=' $pic_flag'
  34743. - ;;
  34744. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34745. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  34746. - tmp_addflag=' $pic_flag -Mnomain' ;;
  34747. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34748. - tmp_addflag=' -i_dynamic' ;;
  34749. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34750. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  34751. - ifc* | ifort*) # Intel Fortran compiler
  34752. - tmp_addflag=' -nofor_main' ;;
  34753. - esac
  34754. - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34755. - if test $supports_anon_versioning = yes; then
  34756. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  34757. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34758. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  34759. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34760. - fi
  34761. - link_all_deplibs_GCJ=no
  34762. - else
  34763. - ld_shlibs_GCJ=no
  34764. - fi
  34765. - ;;
  34766. - netbsd* | netbsdelf*-gnu)
  34767. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34768. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34769. - wlarc=
  34770. - else
  34771. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34772. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34773. - fi
  34774. - ;;
  34775. - solaris*)
  34776. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  34777. - ld_shlibs_GCJ=no
  34778. - cat <<EOF 1>&2
  34779. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34780. -*** create shared libraries on Solaris systems. Therefore, libtool
  34781. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34782. -*** binutils to release 2.9.1 or newer. Another option is to modify
  34783. -*** your PATH or compiler configuration so that the native linker is
  34784. -*** used, and then restart.
  34785. -EOF
  34786. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34787. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34788. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34789. - else
  34790. - ld_shlibs_GCJ=no
  34791. - fi
  34792. - ;;
  34793. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34794. - case `$LD -v 2>&1` in
  34795. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34796. - ld_shlibs_GCJ=no
  34797. - cat <<_LT_EOF 1>&2
  34798. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34799. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  34800. -*** is disabling shared libraries support. We urge you to upgrade GNU
  34801. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34802. -*** your PATH or compiler configuration so that the native linker is
  34803. -*** used, and then restart.
  34804. -_LT_EOF
  34805. - ;;
  34806. - *)
  34807. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34808. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  34809. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  34810. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  34811. - else
  34812. - ld_shlibs_GCJ=no
  34813. - fi
  34814. - ;;
  34815. - esac
  34816. - ;;
  34817. - sunos4*)
  34818. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34819. - wlarc=
  34820. - hardcode_direct_GCJ=yes
  34821. - hardcode_shlibpath_var_GCJ=no
  34822. - ;;
  34823. - *)
  34824. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34825. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34826. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34827. - else
  34828. - ld_shlibs_GCJ=no
  34829. - fi
  34830. - ;;
  34831. - esac
  34832. - if test "$ld_shlibs_GCJ" = no; then
  34833. - runpath_var=
  34834. - hardcode_libdir_flag_spec_GCJ=
  34835. - export_dynamic_flag_spec_GCJ=
  34836. - whole_archive_flag_spec_GCJ=
  34837. - fi
  34838. - else
  34839. - # PORTME fill in a description of your system's linker (not GNU ld)
  34840. - case $host_os in
  34841. - aix3*)
  34842. - allow_undefined_flag_GCJ=unsupported
  34843. - always_export_symbols_GCJ=yes
  34844. - 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'
  34845. - # Note: this linker hardcodes the directories in LIBPATH if there
  34846. - # are no directories specified by -L.
  34847. - hardcode_minus_L_GCJ=yes
  34848. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34849. - # Neither direct hardcoding nor static linking is supported with a
  34850. - # broken collect2.
  34851. - hardcode_direct_GCJ=unsupported
  34852. - fi
  34853. - ;;
  34854. - aix4* | aix5*)
  34855. - if test "$host_cpu" = ia64; then
  34856. - # On IA64, the linker does run time linking by default, so we don't
  34857. - # have to do anything special.
  34858. - aix_use_runtimelinking=no
  34859. - exp_sym_flag='-Bexport'
  34860. - no_entry_flag=""
  34861. - else
  34862. - # If we're using GNU nm, then we don't want the "-C" option.
  34863. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34864. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  34865. - 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'
  34866. - else
  34867. - 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'
  34868. - fi
  34869. - aix_use_runtimelinking=no
  34870. - # Test if we are trying to use run time linking or normal
  34871. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34872. - # need to do runtime linking.
  34873. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  34874. - for ld_flag in $LDFLAGS; do
  34875. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34876. - aix_use_runtimelinking=yes
  34877. - break
  34878. - fi
  34879. - done
  34880. - ;;
  34881. - esac
  34882. - exp_sym_flag='-bexport'
  34883. - no_entry_flag='-bnoentry'
  34884. - fi
  34885. - # When large executables or shared objects are built, AIX ld can
  34886. - # have problems creating the table of contents. If linking a library
  34887. - # or program results in "error TOC overflow" add -mminimal-toc to
  34888. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34889. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34890. - archive_cmds_GCJ=''
  34891. - hardcode_direct_GCJ=yes
  34892. - hardcode_libdir_separator_GCJ=':'
  34893. - link_all_deplibs_GCJ=yes
  34894. - if test "$GCC" = yes; then
  34895. - case $host_os in aix4.[012]|aix4.[012].*)
  34896. - # We only want to do this on AIX 4.2 and lower, the check
  34897. - # below for broken collect2 doesn't work under 4.3+
  34898. - collect2name=`${CC} -print-prog-name=collect2`
  34899. - if test -f "$collect2name" && \
  34900. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  34901. - then
  34902. - # We have reworked collect2
  34903. - hardcode_direct_GCJ=yes
  34904. - else
  34905. - # We have old collect2
  34906. - hardcode_direct_GCJ=unsupported
  34907. - # It fails to find uninstalled libraries when the uninstalled
  34908. - # path is not listed in the libpath. Setting hardcode_minus_L
  34909. - # to unsupported forces relinking
  34910. - hardcode_minus_L_GCJ=yes
  34911. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34912. - hardcode_libdir_separator_GCJ=
  34913. - fi
  34914. - ;;
  34915. - esac
  34916. - shared_flag='-shared'
  34917. - if test "$aix_use_runtimelinking" = yes; then
  34918. - shared_flag="$shared_flag "'${wl}-G'
  34919. - fi
  34920. - else
  34921. - # not using gcc
  34922. - if test "$host_cpu" = ia64; then
  34923. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34924. - # chokes on -Wl,-G. The following line is correct:
  34925. - shared_flag='-G'
  34926. - else
  34927. - if test "$aix_use_runtimelinking" = yes; then
  34928. - shared_flag='${wl}-G'
  34929. - else
  34930. - shared_flag='${wl}-bM:SRE'
  34931. - fi
  34932. - fi
  34933. - fi
  34934. - # It seems that -bexpall does not export symbols beginning with
  34935. - # underscore (_), so it is better to generate a list of symbols to export.
  34936. - always_export_symbols_GCJ=yes
  34937. - if test "$aix_use_runtimelinking" = yes; then
  34938. - # Warning - without using the other runtime loading flags (-brtl),
  34939. - # -berok will link without error, but may produce a broken library.
  34940. - allow_undefined_flag_GCJ='-berok'
  34941. - # Determine the default libpath from the value encoded in an empty executable.
  34942. - cat >conftest.$ac_ext <<_ACEOF
  34943. -/* confdefs.h. */
  34944. -_ACEOF
  34945. -cat confdefs.h >>conftest.$ac_ext
  34946. -cat >>conftest.$ac_ext <<_ACEOF
  34947. -/* end confdefs.h. */
  34948. -int
  34949. -main ()
  34950. -{
  34951. - ;
  34952. - return 0;
  34953. -}
  34954. -_ACEOF
  34955. -rm -f conftest.$ac_objext conftest$ac_exeext
  34956. -if { (ac_try="$ac_link"
  34957. -case "(($ac_try" in
  34958. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34959. - *) ac_try_echo=$ac_try;;
  34960. -esac
  34961. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34962. - (eval "$ac_link") 2>conftest.er1
  34963. - ac_status=$?
  34964. - grep -v '^ *+' conftest.er1 >conftest.err
  34965. - rm -f conftest.er1
  34966. - cat conftest.err >&5
  34967. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34968. - (exit $ac_status); } && {
  34969. - test -z "$ac_c_werror_flag" ||
  34970. - test ! -s conftest.err
  34971. - } && test -s conftest$ac_exeext &&
  34972. - $as_test_x conftest$ac_exeext; then
  34973. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34974. -}'`
  34975. -# Check for a 64-bit object if we didn't find anything.
  34976. -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; }
  34977. -}'`; fi
  34978. -else
  34979. - echo "$as_me: failed program was:" >&5
  34980. -sed 's/^/| /' conftest.$ac_ext >&5
  34981. -fi
  34982. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34983. - conftest$ac_exeext conftest.$ac_ext
  34984. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34985. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  34986. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  34987. - else
  34988. - if test "$host_cpu" = ia64; then
  34989. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  34990. - allow_undefined_flag_GCJ="-z nodefs"
  34991. - archive_expsym_cmds_GCJ="\$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"
  34992. - else
  34993. - # Determine the default libpath from the value encoded in an empty executable.
  34994. - cat >conftest.$ac_ext <<_ACEOF
  34995. -/* confdefs.h. */
  34996. -_ACEOF
  34997. -cat confdefs.h >>conftest.$ac_ext
  34998. -cat >>conftest.$ac_ext <<_ACEOF
  34999. -/* end confdefs.h. */
  35000. -int
  35001. -main ()
  35002. -{
  35003. - ;
  35004. - return 0;
  35005. -}
  35006. -_ACEOF
  35007. -rm -f conftest.$ac_objext conftest$ac_exeext
  35008. -if { (ac_try="$ac_link"
  35009. -case "(($ac_try" in
  35010. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35011. - *) ac_try_echo=$ac_try;;
  35012. -esac
  35013. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35014. - (eval "$ac_link") 2>conftest.er1
  35015. - ac_status=$?
  35016. - grep -v '^ *+' conftest.er1 >conftest.err
  35017. - rm -f conftest.er1
  35018. - cat conftest.err >&5
  35019. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35020. - (exit $ac_status); } && {
  35021. - test -z "$ac_c_werror_flag" ||
  35022. - test ! -s conftest.err
  35023. - } && test -s conftest$ac_exeext &&
  35024. - $as_test_x conftest$ac_exeext; then
  35025. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35026. -}'`
  35027. -# Check for a 64-bit object if we didn't find anything.
  35028. -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; }
  35029. -}'`; fi
  35030. -else
  35031. - echo "$as_me: failed program was:" >&5
  35032. -sed 's/^/| /' conftest.$ac_ext >&5
  35033. -fi
  35034. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35035. - conftest$ac_exeext conftest.$ac_ext
  35036. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35037. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  35038. - # Warning - without using the other run time loading flags,
  35039. - # -berok will link without error, but may produce a broken library.
  35040. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  35041. - allow_undefined_flag_GCJ=' ${wl}-berok'
  35042. - # Exported symbols can be pulled into shared objects from archives
  35043. - whole_archive_flag_spec_GCJ='$convenience'
  35044. - archive_cmds_need_lc_GCJ=yes
  35045. - # This is similar to how AIX traditionally builds its shared libraries.
  35046. - archive_expsym_cmds_GCJ="\$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'
  35047. - fi
  35048. - fi
  35049. - ;;
  35050. - amigaos*)
  35051. - 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)'
  35052. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35053. - hardcode_minus_L_GCJ=yes
  35054. - # see comment about different semantics on the GNU ld section
  35055. - ld_shlibs_GCJ=no
  35056. - ;;
  35057. - bsdi[45]*)
  35058. - export_dynamic_flag_spec_GCJ=-rdynamic
  35059. - ;;
  35060. - cygwin* | mingw* | pw32*)
  35061. - # When not using gcc, we currently assume that we are using
  35062. - # Microsoft Visual C++.
  35063. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  35064. - # no search path for DLLs.
  35065. - hardcode_libdir_flag_spec_GCJ=' '
  35066. - allow_undefined_flag_GCJ=unsupported
  35067. - # Tell ltmain to make .lib files, not .a files.
  35068. - libext=lib
  35069. - # Tell ltmain to make .dll files, not .so files.
  35070. - shrext_cmds=".dll"
  35071. - # FIXME: Setting linknames here is a bad hack.
  35072. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  35073. - # The linker will automatically build a .lib file if we build a DLL.
  35074. - old_archive_From_new_cmds_GCJ='true'
  35075. - # FIXME: Should let the user specify the lib program.
  35076. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  35077. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  35078. - enable_shared_with_static_runtimes_GCJ=yes
  35079. - ;;
  35080. - darwin* | rhapsody*)
  35081. - case $host_os in
  35082. - rhapsody* | darwin1.[012])
  35083. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  35084. - ;;
  35085. - *) # Darwin 1.3 on
  35086. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  35087. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35088. - else
  35089. - case ${MACOSX_DEPLOYMENT_TARGET} in
  35090. - 10.[012])
  35091. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  35092. - ;;
  35093. - 10.*)
  35094. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  35095. - ;;
  35096. - esac
  35097. - fi
  35098. - ;;
  35099. - esac
  35100. - archive_cmds_need_lc_GCJ=no
  35101. - hardcode_direct_GCJ=no
  35102. - hardcode_automatic_GCJ=yes
  35103. - hardcode_shlibpath_var_GCJ=unsupported
  35104. - whole_archive_flag_spec_GCJ=''
  35105. - link_all_deplibs_GCJ=yes
  35106. - if test "$GCC" = yes ; then
  35107. - output_verbose_link_cmd='echo'
  35108. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  35109. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35110. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35111. - archive_expsym_cmds_GCJ='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}'
  35112. - 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}'
  35113. - else
  35114. - case $cc_basename in
  35115. - xlc*)
  35116. - output_verbose_link_cmd='echo'
  35117. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  35118. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  35119. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  35120. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35121. - 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}'
  35122. - ;;
  35123. - *)
  35124. - ld_shlibs_GCJ=no
  35125. - ;;
  35126. - esac
  35127. - fi
  35128. - ;;
  35129. - dgux*)
  35130. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35131. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35132. - hardcode_shlibpath_var_GCJ=no
  35133. - ;;
  35134. - freebsd1*)
  35135. - ld_shlibs_GCJ=no
  35136. - ;;
  35137. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  35138. - # support. Future versions do this automatically, but an explicit c++rt0.o
  35139. - # does not break anything, and helps significantly (at the cost of a little
  35140. - # extra space).
  35141. - freebsd2.2*)
  35142. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  35143. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35144. - hardcode_direct_GCJ=yes
  35145. - hardcode_shlibpath_var_GCJ=no
  35146. - ;;
  35147. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  35148. - freebsd2*)
  35149. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35150. - hardcode_direct_GCJ=yes
  35151. - hardcode_minus_L_GCJ=yes
  35152. - hardcode_shlibpath_var_GCJ=no
  35153. - ;;
  35154. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  35155. - freebsd* | dragonfly*)
  35156. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  35157. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35158. - hardcode_direct_GCJ=yes
  35159. - hardcode_shlibpath_var_GCJ=no
  35160. - ;;
  35161. - hpux9*)
  35162. - if test "$GCC" = yes; then
  35163. - 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'
  35164. - else
  35165. - 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'
  35166. - fi
  35167. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35168. - hardcode_libdir_separator_GCJ=:
  35169. - hardcode_direct_GCJ=yes
  35170. - # hardcode_minus_L: Not really in the search PATH,
  35171. - # but as the default location of the library.
  35172. - hardcode_minus_L_GCJ=yes
  35173. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35174. - ;;
  35175. - hpux10*)
  35176. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35177. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35178. - else
  35179. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  35180. - fi
  35181. - if test "$with_gnu_ld" = no; then
  35182. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35183. - hardcode_libdir_separator_GCJ=:
  35184. - hardcode_direct_GCJ=yes
  35185. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35186. - # hardcode_minus_L: Not really in the search PATH,
  35187. - # but as the default location of the library.
  35188. - hardcode_minus_L_GCJ=yes
  35189. - fi
  35190. - ;;
  35191. - hpux11*)
  35192. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  35193. - case $host_cpu in
  35194. - hppa*64*)
  35195. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35196. - ;;
  35197. - ia64*)
  35198. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35199. - ;;
  35200. - *)
  35201. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35202. - ;;
  35203. - esac
  35204. - else
  35205. - case $host_cpu in
  35206. - hppa*64*)
  35207. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35208. - ;;
  35209. - ia64*)
  35210. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  35211. - ;;
  35212. - *)
  35213. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  35214. - ;;
  35215. - esac
  35216. - fi
  35217. - if test "$with_gnu_ld" = no; then
  35218. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  35219. - hardcode_libdir_separator_GCJ=:
  35220. - case $host_cpu in
  35221. - hppa*64*|ia64*)
  35222. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  35223. - hardcode_direct_GCJ=no
  35224. - hardcode_shlibpath_var_GCJ=no
  35225. - ;;
  35226. - *)
  35227. - hardcode_direct_GCJ=yes
  35228. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35229. - # hardcode_minus_L: Not really in the search PATH,
  35230. - # but as the default location of the library.
  35231. - hardcode_minus_L_GCJ=yes
  35232. - ;;
  35233. - esac
  35234. - fi
  35235. - ;;
  35236. - irix5* | irix6* | nonstopux*)
  35237. - if test "$GCC" = yes; then
  35238. - 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'
  35239. - else
  35240. - 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'
  35241. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  35242. - fi
  35243. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35244. - hardcode_libdir_separator_GCJ=:
  35245. - link_all_deplibs_GCJ=yes
  35246. - ;;
  35247. - netbsd* | netbsdelf*-gnu)
  35248. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35249. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  35250. - else
  35251. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  35252. - fi
  35253. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35254. - hardcode_direct_GCJ=yes
  35255. - hardcode_shlibpath_var_GCJ=no
  35256. - ;;
  35257. - newsos6)
  35258. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35259. - hardcode_direct_GCJ=yes
  35260. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35261. - hardcode_libdir_separator_GCJ=:
  35262. - hardcode_shlibpath_var_GCJ=no
  35263. - ;;
  35264. - openbsd*)
  35265. - hardcode_direct_GCJ=yes
  35266. - hardcode_shlibpath_var_GCJ=no
  35267. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35268. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35269. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  35270. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35271. - export_dynamic_flag_spec_GCJ='${wl}-E'
  35272. - else
  35273. - case $host_os in
  35274. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  35275. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35276. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35277. - ;;
  35278. - *)
  35279. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  35280. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  35281. - ;;
  35282. - esac
  35283. - fi
  35284. - ;;
  35285. - os2*)
  35286. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35287. - hardcode_minus_L_GCJ=yes
  35288. - allow_undefined_flag_GCJ=unsupported
  35289. - 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'
  35290. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35291. - ;;
  35292. - osf3*)
  35293. - if test "$GCC" = yes; then
  35294. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35295. - 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'
  35296. - else
  35297. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35298. - 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'
  35299. - fi
  35300. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35301. - hardcode_libdir_separator_GCJ=:
  35302. - ;;
  35303. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  35304. - if test "$GCC" = yes; then
  35305. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35306. - 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'
  35307. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35308. - else
  35309. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35310. - 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'
  35311. - 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~
  35312. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  35313. - # Both c and cxx compiler support -rpath directly
  35314. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  35315. - fi
  35316. - hardcode_libdir_separator_GCJ=:
  35317. - ;;
  35318. - solaris*)
  35319. - no_undefined_flag_GCJ=' -z text'
  35320. - if test "$GCC" = yes; then
  35321. - wlarc='${wl}'
  35322. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35323. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35324. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  35325. - else
  35326. - wlarc=''
  35327. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35328. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35329. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35330. - fi
  35331. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35332. - hardcode_shlibpath_var_GCJ=no
  35333. - case $host_os in
  35334. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  35335. - *)
  35336. - # The compiler driver will combine linker options so we
  35337. - # cannot just pass the convience library names through
  35338. - # without $wl, iff we do not link with $LD.
  35339. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  35340. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  35341. - case $wlarc in
  35342. - '')
  35343. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  35344. - *)
  35345. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  35346. - esac ;;
  35347. - esac
  35348. - link_all_deplibs_GCJ=yes
  35349. - ;;
  35350. - sunos4*)
  35351. - if test "x$host_vendor" = xsequent; then
  35352. - # Use $CC to link under sequent, because it throws in some extra .o
  35353. - # files that make .init and .fini sections work.
  35354. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35355. - else
  35356. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35357. - fi
  35358. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35359. - hardcode_direct_GCJ=yes
  35360. - hardcode_minus_L_GCJ=yes
  35361. - hardcode_shlibpath_var_GCJ=no
  35362. - ;;
  35363. - sysv4)
  35364. - case $host_vendor in
  35365. - sni)
  35366. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35367. - hardcode_direct_GCJ=yes # is this really true???
  35368. - ;;
  35369. - siemens)
  35370. - ## LD is ld it makes a PLAMLIB
  35371. - ## CC just makes a GrossModule.
  35372. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35373. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  35374. - hardcode_direct_GCJ=no
  35375. - ;;
  35376. - motorola)
  35377. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35378. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  35379. - ;;
  35380. - esac
  35381. - runpath_var='LD_RUN_PATH'
  35382. - hardcode_shlibpath_var_GCJ=no
  35383. - ;;
  35384. - sysv4.3*)
  35385. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35386. - hardcode_shlibpath_var_GCJ=no
  35387. - export_dynamic_flag_spec_GCJ='-Bexport'
  35388. - ;;
  35389. - sysv4*MP*)
  35390. - if test -d /usr/nec; then
  35391. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35392. - hardcode_shlibpath_var_GCJ=no
  35393. - runpath_var=LD_RUN_PATH
  35394. - hardcode_runpath_var=yes
  35395. - ld_shlibs_GCJ=yes
  35396. - fi
  35397. - ;;
  35398. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  35399. - no_undefined_flag_GCJ='${wl}-z,text'
  35400. - archive_cmds_need_lc_GCJ=no
  35401. - hardcode_shlibpath_var_GCJ=no
  35402. - runpath_var='LD_RUN_PATH'
  35403. - if test "$GCC" = yes; then
  35404. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35405. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35406. - else
  35407. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35408. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35409. - fi
  35410. - ;;
  35411. - sysv5* | sco3.2v5* | sco5v6*)
  35412. - # Note: We can NOT use -z defs as we might desire, because we do not
  35413. - # link with -lc, and that would cause any symbols used from libc to
  35414. - # always be unresolved, which means just about no library would
  35415. - # ever link correctly. If we're not using GNU ld we use -z text
  35416. - # though, which does catch some bad symbols but isn't as heavy-handed
  35417. - # as -z defs.
  35418. - no_undefined_flag_GCJ='${wl}-z,text'
  35419. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  35420. - archive_cmds_need_lc_GCJ=no
  35421. - hardcode_shlibpath_var_GCJ=no
  35422. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  35423. - hardcode_libdir_separator_GCJ=':'
  35424. - link_all_deplibs_GCJ=yes
  35425. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  35426. - runpath_var='LD_RUN_PATH'
  35427. - if test "$GCC" = yes; then
  35428. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35429. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35430. - else
  35431. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35432. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35433. - fi
  35434. - ;;
  35435. - uts4*)
  35436. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35437. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35438. - hardcode_shlibpath_var_GCJ=no
  35439. - ;;
  35440. - *)
  35441. - ld_shlibs_GCJ=no
  35442. - ;;
  35443. - esac
  35444. - fi
  35445. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  35446. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  35447. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  35448. -#
  35449. -# Do we need to explicitly link libc?
  35450. -#
  35451. -case "x$archive_cmds_need_lc_GCJ" in
  35452. -x|xyes)
  35453. - # Assume -lc should be added
  35454. - archive_cmds_need_lc_GCJ=yes
  35455. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  35456. - case $archive_cmds_GCJ in
  35457. - *'~'*)
  35458. - # FIXME: we may have to deal with multi-command sequences.
  35459. - ;;
  35460. - '$CC '*)
  35461. - # Test whether the compiler implicitly links with -lc since on some
  35462. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35463. - # to ld, don't add -lc before -lgcc.
  35464. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  35465. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  35466. - $rm conftest*
  35467. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35468. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35469. - (eval $ac_compile) 2>&5
  35470. - ac_status=$?
  35471. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35472. - (exit $ac_status); } 2>conftest.err; then
  35473. - soname=conftest
  35474. - lib=conftest
  35475. - libobjs=conftest.$ac_objext
  35476. - deplibs=
  35477. - wl=$lt_prog_compiler_wl_GCJ
  35478. - pic_flag=$lt_prog_compiler_pic_GCJ
  35479. - compiler_flags=-v
  35480. - linker_flags=-v
  35481. - verstring=
  35482. - output_objdir=.
  35483. - libname=conftest
  35484. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  35485. - allow_undefined_flag_GCJ=
  35486. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  35487. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35488. - ac_status=$?
  35489. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35490. - (exit $ac_status); }
  35491. - then
  35492. - archive_cmds_need_lc_GCJ=no
  35493. - else
  35494. - archive_cmds_need_lc_GCJ=yes
  35495. - fi
  35496. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  35497. - else
  35498. - cat conftest.err 1>&5
  35499. - fi
  35500. - $rm conftest*
  35501. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  35502. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  35503. - ;;
  35504. - esac
  35505. - fi
  35506. - ;;
  35507. -esac
  35508. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  35509. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  35510. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  35511. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  35512. +if test "$GCC" = yes; then
  35513. + case $host_os in
  35514. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  35515. + *) lt_awk_arg="/^libraries:/" ;;
  35516. + esac
  35517. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35518. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  35519. + # if the path contains ";" then we assume it to be the separator
  35520. + # otherwise default to the standard path separator (i.e. ":") - it is
  35521. + # assumed that no part of a normal pathname contains ";" but that should
  35522. + # okay in the real world where ";" in dirpaths is itself problematic.
  35523. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  35524. + else
  35525. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35526. + fi
  35527. + # Ok, now we have the path, separated by spaces, we can step through it
  35528. + # and add multilib dir if necessary.
  35529. + lt_tmp_lt_search_path_spec=
  35530. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  35531. + for lt_sys_path in $lt_search_path_spec; do
  35532. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  35533. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  35534. + else
  35535. + test -d "$lt_sys_path" && \
  35536. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  35537. + fi
  35538. + done
  35539. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  35540. +BEGIN {RS=" "; FS="/|\n";} {
  35541. + lt_foo="";
  35542. + lt_count=0;
  35543. + for (lt_i = NF; lt_i > 0; lt_i--) {
  35544. + if ($lt_i != "" && $lt_i != ".") {
  35545. + if ($lt_i == "..") {
  35546. + lt_count++;
  35547. + } else {
  35548. + if (lt_count == 0) {
  35549. + lt_foo="/" $lt_i lt_foo;
  35550. + } else {
  35551. + lt_count--;
  35552. + }
  35553. + }
  35554. + }
  35555. + }
  35556. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  35557. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  35558. +}'`
  35559. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  35560. +else
  35561. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  35562. +fi
  35563. library_names_spec=
  35564. libname_spec='lib$name'
  35565. soname_spec=
  35566. @@ -17664,20 +9178,6 @@
  35567. version_type=none
  35568. dynamic_linker="$host_os ld.so"
  35569. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35570. -if test "$GCC" = yes; then
  35571. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35572. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  35573. - # if the path contains ";" then we assume it to be the separator
  35574. - # otherwise default to the standard path separator (i.e. ":") - it is
  35575. - # assumed that no part of a normal pathname contains ";" but that should
  35576. - # okay in the real world where ";" in dirpaths is itself problematic.
  35577. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35578. - else
  35579. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35580. - fi
  35581. -else
  35582. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  35583. -fi
  35584. need_lib_prefix=unknown
  35585. hardcode_into_libs=no
  35586. @@ -17695,7 +9195,7 @@
  35587. soname_spec='${libname}${release}${shared_ext}$major'
  35588. ;;
  35589. -aix4* | aix5*)
  35590. +aix[4-9]*)
  35591. version_type=linux
  35592. need_lib_prefix=no
  35593. need_version=no
  35594. @@ -17714,7 +9214,7 @@
  35595. aix4 | aix4.[01] | aix4.[01].*)
  35596. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35597. echo ' yes '
  35598. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  35599. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  35600. :
  35601. else
  35602. can_build_shared=no
  35603. @@ -17740,9 +9240,18 @@
  35604. ;;
  35605. amigaos*)
  35606. - library_names_spec='$libname.ixlibrary $libname.a'
  35607. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35608. - 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'
  35609. + case $host_cpu in
  35610. + powerpc)
  35611. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  35612. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  35613. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35614. + ;;
  35615. + m68k)
  35616. + library_names_spec='$libname.ixlibrary $libname.a'
  35617. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35618. + 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'
  35619. + ;;
  35620. + esac
  35621. ;;
  35622. beos*)
  35623. @@ -17765,25 +9274,28 @@
  35624. # libtool to hard-code these into programs
  35625. ;;
  35626. -cygwin* | mingw* | pw32*)
  35627. +cygwin* | mingw* | pw32* | cegcc*)
  35628. version_type=windows
  35629. shrext_cmds=".dll"
  35630. need_version=no
  35631. need_lib_prefix=no
  35632. case $GCC,$host_os in
  35633. - yes,cygwin* | yes,mingw* | yes,pw32*)
  35634. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  35635. library_names_spec='$libname.dll.a'
  35636. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  35637. postinstall_cmds='base_file=`basename \${file}`~
  35638. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  35639. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  35640. dldir=$destdir/`dirname \$dlpath`~
  35641. test -d \$dldir || mkdir -p \$dldir~
  35642. $install_prog $dir/$dlname \$dldir/$dlname~
  35643. - chmod a+x \$dldir/$dlname'
  35644. + chmod a+x \$dldir/$dlname~
  35645. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  35646. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  35647. + fi'
  35648. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  35649. dlpath=$dir/\$dldll~
  35650. - $rm \$dlpath'
  35651. + $RM \$dlpath'
  35652. shlibpath_overrides_runpath=yes
  35653. case $host_os in
  35654. @@ -17792,20 +9304,20 @@
  35655. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35656. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  35657. ;;
  35658. - mingw*)
  35659. + mingw* | cegcc*)
  35660. # MinGW DLLs use traditional 'lib' prefix
  35661. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35662. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35663. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  35664. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35665. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  35666. # It is most probably a Windows format PATH printed by
  35667. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  35668. # path with ; separators, and with drive letters. We can handle the
  35669. # drive letters (cygwin fileutils understands them), so leave them,
  35670. # especially as we might pass files found there to a mingw objdump,
  35671. # which wouldn't understand a cygwinified path. Ahh.
  35672. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35673. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35674. else
  35675. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35676. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35677. fi
  35678. ;;
  35679. pw32*)
  35680. @@ -17829,17 +9341,13 @@
  35681. version_type=darwin
  35682. need_lib_prefix=no
  35683. need_version=no
  35684. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  35685. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  35686. soname_spec='${libname}${release}${major}$shared_ext'
  35687. shlibpath_overrides_runpath=yes
  35688. shlibpath_var=DYLD_LIBRARY_PATH
  35689. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  35690. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  35691. - if test "$GCC" = yes; then
  35692. - 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"`
  35693. - else
  35694. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  35695. - fi
  35696. +
  35697. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  35698. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  35699. ;;
  35700. @@ -17893,7 +9401,7 @@
  35701. shlibpath_overrides_runpath=no
  35702. hardcode_into_libs=yes
  35703. ;;
  35704. - freebsd*) # from 4.6 on
  35705. + *) # from 4.6 on, and DragonFly
  35706. shlibpath_overrides_runpath=yes
  35707. hardcode_into_libs=yes
  35708. ;;
  35709. @@ -17932,18 +9440,18 @@
  35710. fi
  35711. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35712. ;;
  35713. - hppa*64*)
  35714. - shrext_cmds='.sl'
  35715. - hardcode_into_libs=yes
  35716. - dynamic_linker="$host_os dld.sl"
  35717. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  35718. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35719. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35720. - soname_spec='${libname}${release}${shared_ext}$major'
  35721. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  35722. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35723. - ;;
  35724. - *)
  35725. + hppa*64*)
  35726. + shrext_cmds='.sl'
  35727. + hardcode_into_libs=yes
  35728. + dynamic_linker="$host_os dld.sl"
  35729. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  35730. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35731. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35732. + soname_spec='${libname}${release}${shared_ext}$major'
  35733. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  35734. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35735. + ;;
  35736. + *)
  35737. shrext_cmds='.sl'
  35738. dynamic_linker="$host_os dld.sl"
  35739. shlibpath_var=SHLIB_PATH
  35740. @@ -17956,7 +9464,7 @@
  35741. postinstall_cmds='chmod 555 $lib'
  35742. ;;
  35743. -interix3*)
  35744. +interix[3-9]*)
  35745. version_type=linux
  35746. need_lib_prefix=no
  35747. need_version=no
  35748. @@ -18011,7 +9519,7 @@
  35749. ;;
  35750. # This must be Linux ELF.
  35751. -linux* | k*bsd*-gnu)
  35752. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  35753. version_type=linux
  35754. need_lib_prefix=no
  35755. need_version=no
  35756. @@ -18020,6 +9528,32 @@
  35757. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  35758. shlibpath_var=LD_LIBRARY_PATH
  35759. shlibpath_overrides_runpath=no
  35760. + # Some binutils ld are patched to set DT_RUNPATH
  35761. + save_LDFLAGS=$LDFLAGS
  35762. + save_libdir=$libdir
  35763. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  35764. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  35765. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35766. +/* end confdefs.h. */
  35767. +
  35768. +int
  35769. +main ()
  35770. +{
  35771. +
  35772. + ;
  35773. + return 0;
  35774. +}
  35775. +_ACEOF
  35776. +if ac_fn_c_try_link "$LINENO"; then :
  35777. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  35778. + shlibpath_overrides_runpath=yes
  35779. +fi
  35780. +fi
  35781. +rm -f core conftest.err conftest.$ac_objext \
  35782. + conftest$ac_exeext conftest.$ac_ext
  35783. + LDFLAGS=$save_LDFLAGS
  35784. + libdir=$save_libdir
  35785. +
  35786. # This implies no fast_install, which is unacceptable.
  35787. # Some rework will be needed to allow for fast_install
  35788. # before this can be enabled.
  35789. @@ -18027,7 +9561,7 @@
  35790. # Append ld.so.conf contents to the search path
  35791. if test -f /etc/ld.so.conf; then
  35792. - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  35793. + 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' ' '`
  35794. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  35795. fi
  35796. @@ -18056,7 +9590,7 @@
  35797. version_type=sunos
  35798. need_lib_prefix=no
  35799. need_version=no
  35800. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35801. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  35802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35803. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35804. dynamic_linker='NetBSD (a.out) ld.so'
  35805. @@ -18077,14 +9611,16 @@
  35806. shlibpath_overrides_runpath=yes
  35807. ;;
  35808. -nto-qnx*)
  35809. - version_type=linux
  35810. +*nto* | *qnx*)
  35811. + version_type=qnx
  35812. need_lib_prefix=no
  35813. need_version=no
  35814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35815. soname_spec='${libname}${release}${shared_ext}$major'
  35816. shlibpath_var=LD_LIBRARY_PATH
  35817. - shlibpath_overrides_runpath=yes
  35818. + shlibpath_overrides_runpath=no
  35819. + hardcode_into_libs=yes
  35820. + dynamic_linker='ldqnx.so'
  35821. ;;
  35822. openbsd*)
  35823. @@ -18093,13 +9629,13 @@
  35824. need_lib_prefix=no
  35825. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  35826. case $host_os in
  35827. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  35828. - *) need_version=no ;;
  35829. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  35830. + *) need_version=no ;;
  35831. esac
  35832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35833. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35834. shlibpath_var=LD_LIBRARY_PATH
  35835. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35836. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35837. case $host_os in
  35838. openbsd2.[89] | openbsd2.[89].*)
  35839. shlibpath_overrides_runpath=no
  35840. @@ -18133,6 +9669,10 @@
  35841. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  35842. ;;
  35843. +rdos*)
  35844. + dynamic_linker=no
  35845. + ;;
  35846. +
  35847. solaris*)
  35848. version_type=linux
  35849. need_lib_prefix=no
  35850. @@ -18167,7 +9707,6 @@
  35851. sni)
  35852. shlibpath_overrides_runpath=no
  35853. need_lib_prefix=no
  35854. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  35855. runpath_var=LD_RUN_PATH
  35856. ;;
  35857. siemens)
  35858. @@ -18182,3914 +9721,4049 @@
  35859. esac
  35860. ;;
  35861. -sysv4*MP*)
  35862. - if test -d /usr/nec ;then
  35863. - version_type=linux
  35864. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  35865. - soname_spec='$libname${shared_ext}.$major'
  35866. - shlibpath_var=LD_LIBRARY_PATH
  35867. - fi
  35868. - ;;
  35869. +sysv4*MP*)
  35870. + if test -d /usr/nec ;then
  35871. + version_type=linux
  35872. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  35873. + soname_spec='$libname${shared_ext}.$major'
  35874. + shlibpath_var=LD_LIBRARY_PATH
  35875. + fi
  35876. + ;;
  35877. +
  35878. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  35879. + version_type=freebsd-elf
  35880. + need_lib_prefix=no
  35881. + need_version=no
  35882. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  35883. + soname_spec='${libname}${release}${shared_ext}$major'
  35884. + shlibpath_var=LD_LIBRARY_PATH
  35885. + shlibpath_overrides_runpath=yes
  35886. + hardcode_into_libs=yes
  35887. + if test "$with_gnu_ld" = yes; then
  35888. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  35889. + else
  35890. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  35891. + case $host_os in
  35892. + sco3.2v5*)
  35893. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  35894. + ;;
  35895. + esac
  35896. + fi
  35897. + sys_lib_dlsearch_path_spec='/usr/lib'
  35898. + ;;
  35899. +
  35900. +tpf*)
  35901. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  35902. + version_type=linux
  35903. + need_lib_prefix=no
  35904. + need_version=no
  35905. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35906. + shlibpath_var=LD_LIBRARY_PATH
  35907. + shlibpath_overrides_runpath=no
  35908. + hardcode_into_libs=yes
  35909. + ;;
  35910. +
  35911. +uts4*)
  35912. + version_type=linux
  35913. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35914. + soname_spec='${libname}${release}${shared_ext}$major'
  35915. + shlibpath_var=LD_LIBRARY_PATH
  35916. + ;;
  35917. +
  35918. +*)
  35919. + dynamic_linker=no
  35920. + ;;
  35921. +esac
  35922. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  35923. +$as_echo "$dynamic_linker" >&6; }
  35924. +test "$dynamic_linker" = no && can_build_shared=no
  35925. +
  35926. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  35927. +if test "$GCC" = yes; then
  35928. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  35929. +fi
  35930. +
  35931. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  35932. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  35933. +fi
  35934. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  35935. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  35936. +fi
  35937. +
  35938. +
  35939. +
  35940. +
  35941. +
  35942. +
  35943. +
  35944. +
  35945. +
  35946. +
  35947. +
  35948. +
  35949. +
  35950. +
  35951. +
  35952. +
  35953. +
  35954. +
  35955. +
  35956. +
  35957. +
  35958. +
  35959. +
  35960. +
  35961. +
  35962. +
  35963. +
  35964. +
  35965. +
  35966. +
  35967. +
  35968. +
  35969. +
  35970. +
  35971. +
  35972. +
  35973. +
  35974. +
  35975. +
  35976. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  35977. - version_type=freebsd-elf
  35978. - need_lib_prefix=no
  35979. - need_version=no
  35980. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  35981. - soname_spec='${libname}${release}${shared_ext}$major'
  35982. - shlibpath_var=LD_LIBRARY_PATH
  35983. - hardcode_into_libs=yes
  35984. - if test "$with_gnu_ld" = yes; then
  35985. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  35986. - shlibpath_overrides_runpath=no
  35987. - else
  35988. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  35989. - shlibpath_overrides_runpath=yes
  35990. - case $host_os in
  35991. - sco3.2v5*)
  35992. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  35993. - ;;
  35994. - esac
  35995. - fi
  35996. - sys_lib_dlsearch_path_spec='/usr/lib'
  35997. - ;;
  35998. -uts4*)
  35999. - version_type=linux
  36000. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36001. - soname_spec='${libname}${release}${shared_ext}$major'
  36002. - shlibpath_var=LD_LIBRARY_PATH
  36003. - ;;
  36004. -*)
  36005. - dynamic_linker=no
  36006. - ;;
  36007. -esac
  36008. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36009. -echo "${ECHO_T}$dynamic_linker" >&6; }
  36010. -test "$dynamic_linker" = no && can_build_shared=no
  36011. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36012. -if test "$GCC" = yes; then
  36013. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36014. -fi
  36015. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36016. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  36017. -hardcode_action_GCJ=
  36018. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  36019. - test -n "$runpath_var_GCJ" || \
  36020. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  36021. - # We can hardcode non-existant directories.
  36022. - if test "$hardcode_direct_GCJ" != no &&
  36023. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36024. - # have to relink, otherwise we might link with an installed library
  36025. - # when we should be linking with a yet-to-be-installed one
  36026. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  36027. - test "$hardcode_minus_L_GCJ" != no; then
  36028. - # Linking always hardcodes the temporary library directory.
  36029. - hardcode_action_GCJ=relink
  36030. - else
  36031. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36032. - hardcode_action_GCJ=immediate
  36033. - fi
  36034. -else
  36035. - # We cannot hardcode anything, or else we can only hardcode existing
  36036. - # directories.
  36037. - hardcode_action_GCJ=unsupported
  36038. -fi
  36039. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  36040. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  36041. -if test "$hardcode_action_GCJ" = relink; then
  36042. - # Fast installation is not supported
  36043. - enable_fast_install=no
  36044. -elif test "$shlibpath_overrides_runpath" = yes ||
  36045. - test "$enable_shared" = no; then
  36046. - # Fast installation is not necessary
  36047. - enable_fast_install=needless
  36048. -fi
  36049. -# The else clause should only fire when bootstrapping the
  36050. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36051. -# with your package, and you will get complaints that there are
  36052. -# no rules to generate ltmain.sh.
  36053. -if test -f "$ltmain"; then
  36054. - # See if we are running on zsh, and set the options which allow our commands through
  36055. - # without removal of \ escapes.
  36056. - if test -n "${ZSH_VERSION+set}" ; then
  36057. - setopt NO_GLOB_SUBST
  36058. - fi
  36059. - # Now quote all the things that may contain metacharacters while being
  36060. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36061. - # variables and quote the copies for generation of the libtool script.
  36062. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36063. - SED SHELL STRIP \
  36064. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36065. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36066. - deplibs_check_method reload_flag reload_cmds need_locks \
  36067. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36068. - lt_cv_sys_global_symbol_to_c_name_address \
  36069. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36070. - old_postinstall_cmds old_postuninstall_cmds \
  36071. - compiler_GCJ \
  36072. - CC_GCJ \
  36073. - LD_GCJ \
  36074. - lt_prog_compiler_wl_GCJ \
  36075. - lt_prog_compiler_pic_GCJ \
  36076. - lt_prog_compiler_static_GCJ \
  36077. - lt_prog_compiler_no_builtin_flag_GCJ \
  36078. - export_dynamic_flag_spec_GCJ \
  36079. - thread_safe_flag_spec_GCJ \
  36080. - whole_archive_flag_spec_GCJ \
  36081. - enable_shared_with_static_runtimes_GCJ \
  36082. - old_archive_cmds_GCJ \
  36083. - old_archive_from_new_cmds_GCJ \
  36084. - predep_objects_GCJ \
  36085. - postdep_objects_GCJ \
  36086. - predeps_GCJ \
  36087. - postdeps_GCJ \
  36088. - compiler_lib_search_path_GCJ \
  36089. - archive_cmds_GCJ \
  36090. - archive_expsym_cmds_GCJ \
  36091. - postinstall_cmds_GCJ \
  36092. - postuninstall_cmds_GCJ \
  36093. - old_archive_from_expsyms_cmds_GCJ \
  36094. - allow_undefined_flag_GCJ \
  36095. - no_undefined_flag_GCJ \
  36096. - export_symbols_cmds_GCJ \
  36097. - hardcode_libdir_flag_spec_GCJ \
  36098. - hardcode_libdir_flag_spec_ld_GCJ \
  36099. - hardcode_libdir_separator_GCJ \
  36100. - hardcode_automatic_GCJ \
  36101. - module_cmds_GCJ \
  36102. - module_expsym_cmds_GCJ \
  36103. - lt_cv_prog_compiler_c_o_GCJ \
  36104. - exclude_expsyms_GCJ \
  36105. - include_expsyms_GCJ; do
  36106. -
  36107. - case $var in
  36108. - old_archive_cmds_GCJ | \
  36109. - old_archive_from_new_cmds_GCJ | \
  36110. - archive_cmds_GCJ | \
  36111. - archive_expsym_cmds_GCJ | \
  36112. - module_cmds_GCJ | \
  36113. - module_expsym_cmds_GCJ | \
  36114. - old_archive_from_expsyms_cmds_GCJ | \
  36115. - export_symbols_cmds_GCJ | \
  36116. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36117. - postinstall_cmds | postuninstall_cmds | \
  36118. - old_postinstall_cmds | old_postuninstall_cmds | \
  36119. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36120. - # Double-quote double-evaled strings.
  36121. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36122. - ;;
  36123. - *)
  36124. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36125. - ;;
  36126. - esac
  36127. - done
  36128. - case $lt_echo in
  36129. - *'\$0 --fallback-echo"')
  36130. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36131. - ;;
  36132. - esac
  36133. -cfgfile="$ofile"
  36134. - cat <<__EOF__ >> "$cfgfile"
  36135. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  36136. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  36137. -# Shell to use when invoking shell scripts.
  36138. -SHELL=$lt_SHELL
  36139. -# Whether or not to build shared libraries.
  36140. -build_libtool_libs=$enable_shared
  36141. -# Whether or not to build static libraries.
  36142. -build_old_libs=$enable_static
  36143. -# Whether or not to add -lc for building shared libraries.
  36144. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  36145. -# Whether or not to disallow shared libs when runtime libs are static
  36146. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  36147. -# Whether or not to optimize for fast installation.
  36148. -fast_install=$enable_fast_install
  36149. -# The host system.
  36150. -host_alias=$host_alias
  36151. -host=$host
  36152. -host_os=$host_os
  36153. -# The build system.
  36154. -build_alias=$build_alias
  36155. -build=$build
  36156. -build_os=$build_os
  36157. -# An echo program that does not interpret backslashes.
  36158. -echo=$lt_echo
  36159. -# The archiver.
  36160. -AR=$lt_AR
  36161. -AR_FLAGS=$lt_AR_FLAGS
  36162. -# A C compiler.
  36163. -LTCC=$lt_LTCC
  36164. -# LTCC compiler flags.
  36165. -LTCFLAGS=$lt_LTCFLAGS
  36166. -# A language-specific compiler.
  36167. -CC=$lt_compiler_GCJ
  36168. -# Is the compiler the GNU C compiler?
  36169. -with_gcc=$GCC_GCJ
  36170. -# An ERE matcher.
  36171. -EGREP=$lt_EGREP
  36172. -# The linker used to build libraries.
  36173. -LD=$lt_LD_GCJ
  36174. -# Whether we need hard or soft links.
  36175. -LN_S=$lt_LN_S
  36176. -# A BSD-compatible nm program.
  36177. -NM=$lt_NM
  36178. -# A symbol stripping program
  36179. -STRIP=$lt_STRIP
  36180. -# Used to examine libraries when file_magic_cmd begins "file"
  36181. -MAGIC_CMD=$MAGIC_CMD
  36182. -# Used on cygwin: DLL creation program.
  36183. -DLLTOOL="$DLLTOOL"
  36184. -# Used on cygwin: object dumper.
  36185. -OBJDUMP="$OBJDUMP"
  36186. -# Used on cygwin: assembler.
  36187. -AS="$AS"
  36188. -# The name of the directory that contains temporary libtool files.
  36189. -objdir=$objdir
  36190. -# How to create reloadable object files.
  36191. -reload_flag=$lt_reload_flag
  36192. -reload_cmds=$lt_reload_cmds
  36193. -# How to pass a linker flag through the compiler.
  36194. -wl=$lt_lt_prog_compiler_wl_GCJ
  36195. -# Object file suffix (normally "o").
  36196. -objext="$ac_objext"
  36197. -# Old archive suffix (normally "a").
  36198. -libext="$libext"
  36199. -# Shared library suffix (normally ".so").
  36200. -shrext_cmds='$shrext_cmds'
  36201. -# Executable file suffix (normally "").
  36202. -exeext="$exeext"
  36203. -# Additional compiler flags for building library objects.
  36204. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  36205. -pic_mode=$pic_mode
  36206. -# What is the maximum length of a command?
  36207. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36208. -# Does compiler simultaneously support -c and -o options?
  36209. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  36210. -# Must we lock files when doing compilation?
  36211. -need_locks=$lt_need_locks
  36212. -# Do we need the lib prefix for modules?
  36213. -need_lib_prefix=$need_lib_prefix
  36214. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  36215. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  36216. +hardcode_action=
  36217. +if test -n "$hardcode_libdir_flag_spec" ||
  36218. + test -n "$runpath_var" ||
  36219. + test "X$hardcode_automatic" = "Xyes" ; then
  36220. -# Do we need a version for libraries?
  36221. -need_version=$need_version
  36222. + # We can hardcode non-existent directories.
  36223. + if test "$hardcode_direct" != no &&
  36224. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36225. + # have to relink, otherwise we might link with an installed library
  36226. + # when we should be linking with a yet-to-be-installed one
  36227. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  36228. + test "$hardcode_minus_L" != no; then
  36229. + # Linking always hardcodes the temporary library directory.
  36230. + hardcode_action=relink
  36231. + else
  36232. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36233. + hardcode_action=immediate
  36234. + fi
  36235. +else
  36236. + # We cannot hardcode anything, or else we can only hardcode existing
  36237. + # directories.
  36238. + hardcode_action=unsupported
  36239. +fi
  36240. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  36241. +$as_echo "$hardcode_action" >&6; }
  36242. -# Whether dlopen is supported.
  36243. -dlopen_support=$enable_dlopen
  36244. +if test "$hardcode_action" = relink ||
  36245. + test "$inherit_rpath" = yes; then
  36246. + # Fast installation is not supported
  36247. + enable_fast_install=no
  36248. +elif test "$shlibpath_overrides_runpath" = yes ||
  36249. + test "$enable_shared" = no; then
  36250. + # Fast installation is not necessary
  36251. + enable_fast_install=needless
  36252. +fi
  36253. -# Whether dlopen of programs is supported.
  36254. -dlopen_self=$enable_dlopen_self
  36255. -# Whether dlopen of statically linked programs is supported.
  36256. -dlopen_self_static=$enable_dlopen_self_static
  36257. -# Compiler flag to prevent dynamic linking.
  36258. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  36259. -# Compiler flag to turn off builtin functions.
  36260. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  36261. -# Compiler flag to allow reflexive dlopens.
  36262. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  36263. -# Compiler flag to generate shared objects directly from archives.
  36264. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  36265. + if test "x$enable_dlopen" != xyes; then
  36266. + enable_dlopen=unknown
  36267. + enable_dlopen_self=unknown
  36268. + enable_dlopen_self_static=unknown
  36269. +else
  36270. + lt_cv_dlopen=no
  36271. + lt_cv_dlopen_libs=
  36272. -# Compiler flag to generate thread-safe objects.
  36273. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  36274. + case $host_os in
  36275. + beos*)
  36276. + lt_cv_dlopen="load_add_on"
  36277. + lt_cv_dlopen_libs=
  36278. + lt_cv_dlopen_self=yes
  36279. + ;;
  36280. -# Library versioning type.
  36281. -version_type=$version_type
  36282. + mingw* | pw32* | cegcc*)
  36283. + lt_cv_dlopen="LoadLibrary"
  36284. + lt_cv_dlopen_libs=
  36285. + ;;
  36286. -# Format of library name prefix.
  36287. -libname_spec=$lt_libname_spec
  36288. + cygwin*)
  36289. + lt_cv_dlopen="dlopen"
  36290. + lt_cv_dlopen_libs=
  36291. + ;;
  36292. -# List of archive names. First name is the real one, the rest are links.
  36293. -# The last name is the one that the linker finds with -lNAME.
  36294. -library_names_spec=$lt_library_names_spec
  36295. + darwin*)
  36296. + # if libdl is installed we need to link against it
  36297. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  36298. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  36299. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  36300. + $as_echo_n "(cached) " >&6
  36301. +else
  36302. + ac_check_lib_save_LIBS=$LIBS
  36303. +LIBS="-ldl $LIBS"
  36304. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36305. +/* end confdefs.h. */
  36306. -# The coded name of the library, if different from the real name.
  36307. -soname_spec=$lt_soname_spec
  36308. +/* Override any GCC internal prototype to avoid an error.
  36309. + Use char because int might match the return type of a GCC
  36310. + builtin and then its argument prototype would still apply. */
  36311. +#ifdef __cplusplus
  36312. +extern "C"
  36313. +#endif
  36314. +char dlopen ();
  36315. +int
  36316. +main ()
  36317. +{
  36318. +return dlopen ();
  36319. + ;
  36320. + return 0;
  36321. +}
  36322. +_ACEOF
  36323. +if ac_fn_c_try_link "$LINENO"; then :
  36324. + ac_cv_lib_dl_dlopen=yes
  36325. +else
  36326. + ac_cv_lib_dl_dlopen=no
  36327. +fi
  36328. +rm -f core conftest.err conftest.$ac_objext \
  36329. + conftest$ac_exeext conftest.$ac_ext
  36330. +LIBS=$ac_check_lib_save_LIBS
  36331. +fi
  36332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  36333. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  36334. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  36335. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  36336. +else
  36337. -# Commands used to build and install an old-style archive.
  36338. -RANLIB=$lt_RANLIB
  36339. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  36340. -old_postinstall_cmds=$lt_old_postinstall_cmds
  36341. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  36342. + lt_cv_dlopen="dyld"
  36343. + lt_cv_dlopen_libs=
  36344. + lt_cv_dlopen_self=yes
  36345. +
  36346. +fi
  36347. +
  36348. + ;;
  36349. +
  36350. + *)
  36351. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  36352. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  36353. + lt_cv_dlopen="shl_load"
  36354. +else
  36355. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  36356. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  36357. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  36358. + $as_echo_n "(cached) " >&6
  36359. +else
  36360. + ac_check_lib_save_LIBS=$LIBS
  36361. +LIBS="-ldld $LIBS"
  36362. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36363. +/* end confdefs.h. */
  36364. +
  36365. +/* Override any GCC internal prototype to avoid an error.
  36366. + Use char because int might match the return type of a GCC
  36367. + builtin and then its argument prototype would still apply. */
  36368. +#ifdef __cplusplus
  36369. +extern "C"
  36370. +#endif
  36371. +char shl_load ();
  36372. +int
  36373. +main ()
  36374. +{
  36375. +return shl_load ();
  36376. + ;
  36377. + return 0;
  36378. +}
  36379. +_ACEOF
  36380. +if ac_fn_c_try_link "$LINENO"; then :
  36381. + ac_cv_lib_dld_shl_load=yes
  36382. +else
  36383. + ac_cv_lib_dld_shl_load=no
  36384. +fi
  36385. +rm -f core conftest.err conftest.$ac_objext \
  36386. + conftest$ac_exeext conftest.$ac_ext
  36387. +LIBS=$ac_check_lib_save_LIBS
  36388. +fi
  36389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  36390. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  36391. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  36392. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  36393. +else
  36394. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  36395. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  36396. + lt_cv_dlopen="dlopen"
  36397. +else
  36398. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  36399. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  36400. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  36401. + $as_echo_n "(cached) " >&6
  36402. +else
  36403. + ac_check_lib_save_LIBS=$LIBS
  36404. +LIBS="-ldl $LIBS"
  36405. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36406. +/* end confdefs.h. */
  36407. -# Create an old-style archive from a shared archive.
  36408. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  36409. +/* Override any GCC internal prototype to avoid an error.
  36410. + Use char because int might match the return type of a GCC
  36411. + builtin and then its argument prototype would still apply. */
  36412. +#ifdef __cplusplus
  36413. +extern "C"
  36414. +#endif
  36415. +char dlopen ();
  36416. +int
  36417. +main ()
  36418. +{
  36419. +return dlopen ();
  36420. + ;
  36421. + return 0;
  36422. +}
  36423. +_ACEOF
  36424. +if ac_fn_c_try_link "$LINENO"; then :
  36425. + ac_cv_lib_dl_dlopen=yes
  36426. +else
  36427. + ac_cv_lib_dl_dlopen=no
  36428. +fi
  36429. +rm -f core conftest.err conftest.$ac_objext \
  36430. + conftest$ac_exeext conftest.$ac_ext
  36431. +LIBS=$ac_check_lib_save_LIBS
  36432. +fi
  36433. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  36434. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  36435. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  36436. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  36437. +else
  36438. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  36439. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  36440. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  36441. + $as_echo_n "(cached) " >&6
  36442. +else
  36443. + ac_check_lib_save_LIBS=$LIBS
  36444. +LIBS="-lsvld $LIBS"
  36445. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36446. +/* end confdefs.h. */
  36447. -# Create a temporary old-style archive to link instead of a shared archive.
  36448. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  36449. +/* Override any GCC internal prototype to avoid an error.
  36450. + Use char because int might match the return type of a GCC
  36451. + builtin and then its argument prototype would still apply. */
  36452. +#ifdef __cplusplus
  36453. +extern "C"
  36454. +#endif
  36455. +char dlopen ();
  36456. +int
  36457. +main ()
  36458. +{
  36459. +return dlopen ();
  36460. + ;
  36461. + return 0;
  36462. +}
  36463. +_ACEOF
  36464. +if ac_fn_c_try_link "$LINENO"; then :
  36465. + ac_cv_lib_svld_dlopen=yes
  36466. +else
  36467. + ac_cv_lib_svld_dlopen=no
  36468. +fi
  36469. +rm -f core conftest.err conftest.$ac_objext \
  36470. + conftest$ac_exeext conftest.$ac_ext
  36471. +LIBS=$ac_check_lib_save_LIBS
  36472. +fi
  36473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  36474. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  36475. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  36476. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  36477. +else
  36478. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  36479. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  36480. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  36481. + $as_echo_n "(cached) " >&6
  36482. +else
  36483. + ac_check_lib_save_LIBS=$LIBS
  36484. +LIBS="-ldld $LIBS"
  36485. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36486. +/* end confdefs.h. */
  36487. -# Commands used to build and install a shared archive.
  36488. -archive_cmds=$lt_archive_cmds_GCJ
  36489. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  36490. -postinstall_cmds=$lt_postinstall_cmds
  36491. -postuninstall_cmds=$lt_postuninstall_cmds
  36492. +/* Override any GCC internal prototype to avoid an error.
  36493. + Use char because int might match the return type of a GCC
  36494. + builtin and then its argument prototype would still apply. */
  36495. +#ifdef __cplusplus
  36496. +extern "C"
  36497. +#endif
  36498. +char dld_link ();
  36499. +int
  36500. +main ()
  36501. +{
  36502. +return dld_link ();
  36503. + ;
  36504. + return 0;
  36505. +}
  36506. +_ACEOF
  36507. +if ac_fn_c_try_link "$LINENO"; then :
  36508. + ac_cv_lib_dld_dld_link=yes
  36509. +else
  36510. + ac_cv_lib_dld_dld_link=no
  36511. +fi
  36512. +rm -f core conftest.err conftest.$ac_objext \
  36513. + conftest$ac_exeext conftest.$ac_ext
  36514. +LIBS=$ac_check_lib_save_LIBS
  36515. +fi
  36516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  36517. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  36518. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  36519. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  36520. +fi
  36521. -# Commands used to build a loadable module (assumed same as above if empty)
  36522. -module_cmds=$lt_module_cmds_GCJ
  36523. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  36524. -# Commands to strip libraries.
  36525. -old_striplib=$lt_old_striplib
  36526. -striplib=$lt_striplib
  36527. +fi
  36528. -# Dependencies to place before the objects being linked to create a
  36529. -# shared library.
  36530. -predep_objects=$lt_predep_objects_GCJ
  36531. -
  36532. -# Dependencies to place after the objects being linked to create a
  36533. -# shared library.
  36534. -postdep_objects=$lt_postdep_objects_GCJ
  36535. -
  36536. -# Dependencies to place before the objects being linked to create a
  36537. -# shared library.
  36538. -predeps=$lt_predeps_GCJ
  36539. -
  36540. -# Dependencies to place after the objects being linked to create a
  36541. -# shared library.
  36542. -postdeps=$lt_postdeps_GCJ
  36543. -
  36544. -# The library search path used internally by the compiler when linking
  36545. -# a shared library.
  36546. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  36547. -# Method to check whether dependent libraries are shared objects.
  36548. -deplibs_check_method=$lt_deplibs_check_method
  36549. +fi
  36550. -# Command to use when deplibs_check_method == file_magic.
  36551. -file_magic_cmd=$lt_file_magic_cmd
  36552. -# Flag that allows shared libraries with undefined symbols to be built.
  36553. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  36554. +fi
  36555. -# Flag that forces no undefined symbols.
  36556. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  36557. -# Commands used to finish a libtool library installation in a directory.
  36558. -finish_cmds=$lt_finish_cmds
  36559. +fi
  36560. -# Same as above, but a single script fragment to be evaled but not shown.
  36561. -finish_eval=$lt_finish_eval
  36562. -# Take the output of nm and produce a listing of raw symbols and C names.
  36563. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  36564. +fi
  36565. -# Transform the output of nm in a proper C declaration
  36566. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  36567. + ;;
  36568. + esac
  36569. -# Transform the output of nm in a C name address pair
  36570. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  36571. + if test "x$lt_cv_dlopen" != xno; then
  36572. + enable_dlopen=yes
  36573. + else
  36574. + enable_dlopen=no
  36575. + fi
  36576. -# This is the shared library runtime path variable.
  36577. -runpath_var=$runpath_var
  36578. + case $lt_cv_dlopen in
  36579. + dlopen)
  36580. + save_CPPFLAGS="$CPPFLAGS"
  36581. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  36582. -# This is the shared library path variable.
  36583. -shlibpath_var=$shlibpath_var
  36584. + save_LDFLAGS="$LDFLAGS"
  36585. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  36586. -# Is shlibpath searched before the hard-coded library search path?
  36587. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  36588. + save_LIBS="$LIBS"
  36589. + LIBS="$lt_cv_dlopen_libs $LIBS"
  36590. -# How to hardcode a shared library path into an executable.
  36591. -hardcode_action=$hardcode_action_GCJ
  36592. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  36593. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  36594. +if test "${lt_cv_dlopen_self+set}" = set; then :
  36595. + $as_echo_n "(cached) " >&6
  36596. +else
  36597. + if test "$cross_compiling" = yes; then :
  36598. + lt_cv_dlopen_self=cross
  36599. +else
  36600. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  36601. + lt_status=$lt_dlunknown
  36602. + cat > conftest.$ac_ext <<_LT_EOF
  36603. +#line 10209 "configure"
  36604. +#include "confdefs.h"
  36605. -# Whether we should hardcode library paths into libraries.
  36606. -hardcode_into_libs=$hardcode_into_libs
  36607. +#if HAVE_DLFCN_H
  36608. +#include <dlfcn.h>
  36609. +#endif
  36610. -# Flag to hardcode \$libdir into a binary during linking.
  36611. -# This must work even if \$libdir does not exist.
  36612. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  36613. +#include <stdio.h>
  36614. -# If ld is used when linking, flag to hardcode \$libdir into
  36615. -# a binary during linking. This must work even if \$libdir does
  36616. -# not exist.
  36617. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  36618. -
  36619. -# Whether we need a single -rpath flag with a separated argument.
  36620. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  36621. -
  36622. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  36623. -# resulting binary.
  36624. -hardcode_direct=$hardcode_direct_GCJ
  36625. -
  36626. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  36627. -# resulting binary.
  36628. -hardcode_minus_L=$hardcode_minus_L_GCJ
  36629. -
  36630. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  36631. -# the resulting binary.
  36632. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  36633. -
  36634. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  36635. -# and all subsequent libraries and executables linked against it.
  36636. -hardcode_automatic=$hardcode_automatic_GCJ
  36637. +#ifdef RTLD_GLOBAL
  36638. +# define LT_DLGLOBAL RTLD_GLOBAL
  36639. +#else
  36640. +# ifdef DL_GLOBAL
  36641. +# define LT_DLGLOBAL DL_GLOBAL
  36642. +# else
  36643. +# define LT_DLGLOBAL 0
  36644. +# endif
  36645. +#endif
  36646. -# Variables whose values should be saved in libtool wrapper scripts and
  36647. -# restored at relink time.
  36648. -variables_saved_for_relink="$variables_saved_for_relink"
  36649. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  36650. + find out it does not work in some platform. */
  36651. +#ifndef LT_DLLAZY_OR_NOW
  36652. +# ifdef RTLD_LAZY
  36653. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  36654. +# else
  36655. +# ifdef DL_LAZY
  36656. +# define LT_DLLAZY_OR_NOW DL_LAZY
  36657. +# else
  36658. +# ifdef RTLD_NOW
  36659. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  36660. +# else
  36661. +# ifdef DL_NOW
  36662. +# define LT_DLLAZY_OR_NOW DL_NOW
  36663. +# else
  36664. +# define LT_DLLAZY_OR_NOW 0
  36665. +# endif
  36666. +# endif
  36667. +# endif
  36668. +# endif
  36669. +#endif
  36670. -# Whether libtool must link a program against all its dependency libraries.
  36671. -link_all_deplibs=$link_all_deplibs_GCJ
  36672. +void fnord() { int i=42;}
  36673. +int main ()
  36674. +{
  36675. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  36676. + int status = $lt_dlunknown;
  36677. -# Compile-time system search path for libraries
  36678. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  36679. + if (self)
  36680. + {
  36681. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  36682. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  36683. + /* dlclose (self); */
  36684. + }
  36685. + else
  36686. + puts (dlerror ());
  36687. -# Run-time system search path for libraries
  36688. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  36689. + return status;
  36690. +}
  36691. +_LT_EOF
  36692. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  36693. + (eval $ac_link) 2>&5
  36694. + ac_status=$?
  36695. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36696. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  36697. + (./conftest; exit; ) >&5 2>/dev/null
  36698. + lt_status=$?
  36699. + case x$lt_status in
  36700. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  36701. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  36702. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  36703. + esac
  36704. + else :
  36705. + # compilation failed
  36706. + lt_cv_dlopen_self=no
  36707. + fi
  36708. +fi
  36709. +rm -fr conftest*
  36710. -# Fix the shell variable \$srcfile for the compiler.
  36711. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  36712. -# Set to yes if exported symbols are required.
  36713. -always_export_symbols=$always_export_symbols_GCJ
  36714. +fi
  36715. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  36716. +$as_echo "$lt_cv_dlopen_self" >&6; }
  36717. -# The commands to list exported symbols.
  36718. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  36719. + if test "x$lt_cv_dlopen_self" = xyes; then
  36720. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  36721. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  36722. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  36723. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  36724. + $as_echo_n "(cached) " >&6
  36725. +else
  36726. + if test "$cross_compiling" = yes; then :
  36727. + lt_cv_dlopen_self_static=cross
  36728. +else
  36729. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  36730. + lt_status=$lt_dlunknown
  36731. + cat > conftest.$ac_ext <<_LT_EOF
  36732. +#line 10305 "configure"
  36733. +#include "confdefs.h"
  36734. -# The commands to extract the exported symbol list from a shared archive.
  36735. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  36736. +#if HAVE_DLFCN_H
  36737. +#include <dlfcn.h>
  36738. +#endif
  36739. -# Symbols that should not be listed in the preloaded symbols.
  36740. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  36741. +#include <stdio.h>
  36742. -# Symbols that must always be exported.
  36743. -include_expsyms=$lt_include_expsyms_GCJ
  36744. +#ifdef RTLD_GLOBAL
  36745. +# define LT_DLGLOBAL RTLD_GLOBAL
  36746. +#else
  36747. +# ifdef DL_GLOBAL
  36748. +# define LT_DLGLOBAL DL_GLOBAL
  36749. +# else
  36750. +# define LT_DLGLOBAL 0
  36751. +# endif
  36752. +#endif
  36753. -# ### END LIBTOOL TAG CONFIG: $tagname
  36754. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  36755. + find out it does not work in some platform. */
  36756. +#ifndef LT_DLLAZY_OR_NOW
  36757. +# ifdef RTLD_LAZY
  36758. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  36759. +# else
  36760. +# ifdef DL_LAZY
  36761. +# define LT_DLLAZY_OR_NOW DL_LAZY
  36762. +# else
  36763. +# ifdef RTLD_NOW
  36764. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  36765. +# else
  36766. +# ifdef DL_NOW
  36767. +# define LT_DLLAZY_OR_NOW DL_NOW
  36768. +# else
  36769. +# define LT_DLLAZY_OR_NOW 0
  36770. +# endif
  36771. +# endif
  36772. +# endif
  36773. +# endif
  36774. +#endif
  36775. -__EOF__
  36776. +void fnord() { int i=42;}
  36777. +int main ()
  36778. +{
  36779. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  36780. + int status = $lt_dlunknown;
  36781. + if (self)
  36782. + {
  36783. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  36784. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  36785. + /* dlclose (self); */
  36786. + }
  36787. + else
  36788. + puts (dlerror ());
  36789. -else
  36790. - # If there is no Makefile yet, we rely on a make rule to execute
  36791. - # `config.status --recheck' to rerun these tests and create the
  36792. - # libtool script then.
  36793. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  36794. - if test -f "$ltmain_in"; then
  36795. - test -f Makefile && make "$ltmain"
  36796. + return status;
  36797. +}
  36798. +_LT_EOF
  36799. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  36800. + (eval $ac_link) 2>&5
  36801. + ac_status=$?
  36802. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36803. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  36804. + (./conftest; exit; ) >&5 2>/dev/null
  36805. + lt_status=$?
  36806. + case x$lt_status in
  36807. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  36808. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  36809. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  36810. + esac
  36811. + else :
  36812. + # compilation failed
  36813. + lt_cv_dlopen_self_static=no
  36814. fi
  36815. fi
  36816. +rm -fr conftest*
  36817. -ac_ext=c
  36818. -ac_cpp='$CPP $CPPFLAGS'
  36819. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36820. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36821. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36822. +fi
  36823. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  36824. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  36825. + fi
  36826. -CC="$lt_save_CC"
  36827. + CPPFLAGS="$save_CPPFLAGS"
  36828. + LDFLAGS="$save_LDFLAGS"
  36829. + LIBS="$save_LIBS"
  36830. + ;;
  36831. + esac
  36832. - else
  36833. - tagname=""
  36834. - fi
  36835. - ;;
  36836. + case $lt_cv_dlopen_self in
  36837. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  36838. + *) enable_dlopen_self=unknown ;;
  36839. + esac
  36840. - RC)
  36841. + case $lt_cv_dlopen_self_static in
  36842. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  36843. + *) enable_dlopen_self_static=unknown ;;
  36844. + esac
  36845. +fi
  36846. -# Source file extension for RC test sources.
  36847. -ac_ext=rc
  36848. -# Object file extension for compiled RC test sources.
  36849. -objext=o
  36850. -objext_RC=$objext
  36851. -# Code to be used in simple compile tests
  36852. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  36853. -# Code to be used in simple link tests
  36854. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  36855. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  36856. -# If no C compiler was specified, use CC.
  36857. -LTCC=${LTCC-"$CC"}
  36858. -# If no C compiler flags were specified, use CFLAGS.
  36859. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  36860. -# Allow CC to be a program name with arguments.
  36861. -compiler=$CC
  36862. -# save warnings/boilerplate of simple test code
  36863. -ac_outfile=conftest.$ac_objext
  36864. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  36865. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  36866. -_lt_compiler_boilerplate=`cat conftest.err`
  36867. -$rm conftest*
  36868. -ac_outfile=conftest.$ac_objext
  36869. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  36870. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  36871. -_lt_linker_boilerplate=`cat conftest.err`
  36872. -$rm conftest*
  36873. -# Allow CC to be a program name with arguments.
  36874. -lt_save_CC="$CC"
  36875. -CC=${RC-"windres"}
  36876. -compiler=$CC
  36877. -compiler_RC=$CC
  36878. -for cc_temp in $compiler""; do
  36879. - case $cc_temp in
  36880. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  36881. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  36882. - \-*) ;;
  36883. - *) break;;
  36884. - esac
  36885. -done
  36886. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  36887. -lt_cv_prog_compiler_c_o_RC=yes
  36888. -# The else clause should only fire when bootstrapping the
  36889. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  36890. -# with your package, and you will get complaints that there are
  36891. -# no rules to generate ltmain.sh.
  36892. -if test -f "$ltmain"; then
  36893. - # See if we are running on zsh, and set the options which allow our commands through
  36894. - # without removal of \ escapes.
  36895. - if test -n "${ZSH_VERSION+set}" ; then
  36896. - setopt NO_GLOB_SUBST
  36897. - fi
  36898. - # Now quote all the things that may contain metacharacters while being
  36899. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  36900. - # variables and quote the copies for generation of the libtool script.
  36901. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  36902. - SED SHELL STRIP \
  36903. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  36904. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  36905. - deplibs_check_method reload_flag reload_cmds need_locks \
  36906. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  36907. - lt_cv_sys_global_symbol_to_c_name_address \
  36908. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  36909. - old_postinstall_cmds old_postuninstall_cmds \
  36910. - compiler_RC \
  36911. - CC_RC \
  36912. - LD_RC \
  36913. - lt_prog_compiler_wl_RC \
  36914. - lt_prog_compiler_pic_RC \
  36915. - lt_prog_compiler_static_RC \
  36916. - lt_prog_compiler_no_builtin_flag_RC \
  36917. - export_dynamic_flag_spec_RC \
  36918. - thread_safe_flag_spec_RC \
  36919. - whole_archive_flag_spec_RC \
  36920. - enable_shared_with_static_runtimes_RC \
  36921. - old_archive_cmds_RC \
  36922. - old_archive_from_new_cmds_RC \
  36923. - predep_objects_RC \
  36924. - postdep_objects_RC \
  36925. - predeps_RC \
  36926. - postdeps_RC \
  36927. - compiler_lib_search_path_RC \
  36928. - archive_cmds_RC \
  36929. - archive_expsym_cmds_RC \
  36930. - postinstall_cmds_RC \
  36931. - postuninstall_cmds_RC \
  36932. - old_archive_from_expsyms_cmds_RC \
  36933. - allow_undefined_flag_RC \
  36934. - no_undefined_flag_RC \
  36935. - export_symbols_cmds_RC \
  36936. - hardcode_libdir_flag_spec_RC \
  36937. - hardcode_libdir_flag_spec_ld_RC \
  36938. - hardcode_libdir_separator_RC \
  36939. - hardcode_automatic_RC \
  36940. - module_cmds_RC \
  36941. - module_expsym_cmds_RC \
  36942. - lt_cv_prog_compiler_c_o_RC \
  36943. - exclude_expsyms_RC \
  36944. - include_expsyms_RC; do
  36945. -
  36946. - case $var in
  36947. - old_archive_cmds_RC | \
  36948. - old_archive_from_new_cmds_RC | \
  36949. - archive_cmds_RC | \
  36950. - archive_expsym_cmds_RC | \
  36951. - module_cmds_RC | \
  36952. - module_expsym_cmds_RC | \
  36953. - old_archive_from_expsyms_cmds_RC | \
  36954. - export_symbols_cmds_RC | \
  36955. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  36956. - postinstall_cmds | postuninstall_cmds | \
  36957. - old_postinstall_cmds | old_postuninstall_cmds | \
  36958. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  36959. - # Double-quote double-evaled strings.
  36960. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  36961. - ;;
  36962. - *)
  36963. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  36964. - ;;
  36965. - esac
  36966. - done
  36967. - case $lt_echo in
  36968. - *'\$0 --fallback-echo"')
  36969. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  36970. +striplib=
  36971. +old_striplib=
  36972. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  36973. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  36974. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  36975. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  36976. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  36977. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36978. +$as_echo "yes" >&6; }
  36979. +else
  36980. +# FIXME - insert some real tests, host_os isn't really good enough
  36981. + case $host_os in
  36982. + darwin*)
  36983. + if test -n "$STRIP" ; then
  36984. + striplib="$STRIP -x"
  36985. + old_striplib="$STRIP -S"
  36986. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36987. +$as_echo "yes" >&6; }
  36988. + else
  36989. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36990. +$as_echo "no" >&6; }
  36991. + fi
  36992. + ;;
  36993. + *)
  36994. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36995. +$as_echo "no" >&6; }
  36996. ;;
  36997. esac
  36998. +fi
  36999. -cfgfile="$ofile"
  37000. -
  37001. - cat <<__EOF__ >> "$cfgfile"
  37002. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37003. -
  37004. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37005. -
  37006. -# Shell to use when invoking shell scripts.
  37007. -SHELL=$lt_SHELL
  37008. -
  37009. -# Whether or not to build shared libraries.
  37010. -build_libtool_libs=$enable_shared
  37011. -# Whether or not to build static libraries.
  37012. -build_old_libs=$enable_static
  37013. -# Whether or not to add -lc for building shared libraries.
  37014. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  37015. -# Whether or not to disallow shared libs when runtime libs are static
  37016. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  37017. -# Whether or not to optimize for fast installation.
  37018. -fast_install=$enable_fast_install
  37019. -# The host system.
  37020. -host_alias=$host_alias
  37021. -host=$host
  37022. -host_os=$host_os
  37023. -# The build system.
  37024. -build_alias=$build_alias
  37025. -build=$build
  37026. -build_os=$build_os
  37027. -# An echo program that does not interpret backslashes.
  37028. -echo=$lt_echo
  37029. -# The archiver.
  37030. -AR=$lt_AR
  37031. -AR_FLAGS=$lt_AR_FLAGS
  37032. -# A C compiler.
  37033. -LTCC=$lt_LTCC
  37034. -# LTCC compiler flags.
  37035. -LTCFLAGS=$lt_LTCFLAGS
  37036. -# A language-specific compiler.
  37037. -CC=$lt_compiler_RC
  37038. + # Report which library types will actually be built
  37039. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  37040. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  37041. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  37042. +$as_echo "$can_build_shared" >&6; }
  37043. -# Is the compiler the GNU C compiler?
  37044. -with_gcc=$GCC_RC
  37045. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  37046. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  37047. + test "$can_build_shared" = "no" && enable_shared=no
  37048. -# An ERE matcher.
  37049. -EGREP=$lt_EGREP
  37050. + # On AIX, shared libraries and static libraries use the same namespace, and
  37051. + # are all built from PIC.
  37052. + case $host_os in
  37053. + aix3*)
  37054. + test "$enable_shared" = yes && enable_static=no
  37055. + if test -n "$RANLIB"; then
  37056. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  37057. + postinstall_cmds='$RANLIB $lib'
  37058. + fi
  37059. + ;;
  37060. -# The linker used to build libraries.
  37061. -LD=$lt_LD_RC
  37062. + aix[4-9]*)
  37063. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  37064. + test "$enable_shared" = yes && enable_static=no
  37065. + fi
  37066. + ;;
  37067. + esac
  37068. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  37069. +$as_echo "$enable_shared" >&6; }
  37070. -# Whether we need hard or soft links.
  37071. -LN_S=$lt_LN_S
  37072. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  37073. +$as_echo_n "checking whether to build static libraries... " >&6; }
  37074. + # Make sure either enable_shared or enable_static is yes.
  37075. + test "$enable_shared" = yes || enable_static=yes
  37076. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  37077. +$as_echo "$enable_static" >&6; }
  37078. -# A BSD-compatible nm program.
  37079. -NM=$lt_NM
  37080. -# A symbol stripping program
  37081. -STRIP=$lt_STRIP
  37082. -# Used to examine libraries when file_magic_cmd begins "file"
  37083. -MAGIC_CMD=$MAGIC_CMD
  37084. -# Used on cygwin: DLL creation program.
  37085. -DLLTOOL="$DLLTOOL"
  37086. +fi
  37087. +ac_ext=c
  37088. +ac_cpp='$CPP $CPPFLAGS'
  37089. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37090. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37091. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37092. -# Used on cygwin: object dumper.
  37093. -OBJDUMP="$OBJDUMP"
  37094. +CC="$lt_save_CC"
  37095. -# Used on cygwin: assembler.
  37096. -AS="$AS"
  37097. -# The name of the directory that contains temporary libtool files.
  37098. -objdir=$objdir
  37099. -# How to create reloadable object files.
  37100. -reload_flag=$lt_reload_flag
  37101. -reload_cmds=$lt_reload_cmds
  37102. -# How to pass a linker flag through the compiler.
  37103. -wl=$lt_lt_prog_compiler_wl_RC
  37104. -# Object file suffix (normally "o").
  37105. -objext="$ac_objext"
  37106. -# Old archive suffix (normally "a").
  37107. -libext="$libext"
  37108. -# Shared library suffix (normally ".so").
  37109. -shrext_cmds='$shrext_cmds'
  37110. -# Executable file suffix (normally "").
  37111. -exeext="$exeext"
  37112. -# Additional compiler flags for building library objects.
  37113. -pic_flag=$lt_lt_prog_compiler_pic_RC
  37114. -pic_mode=$pic_mode
  37115. -# What is the maximum length of a command?
  37116. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37117. -# Does compiler simultaneously support -c and -o options?
  37118. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  37119. -# Must we lock files when doing compilation?
  37120. -need_locks=$lt_need_locks
  37121. -# Do we need the lib prefix for modules?
  37122. -need_lib_prefix=$need_lib_prefix
  37123. + ac_config_commands="$ac_config_commands libtool"
  37124. -# Do we need a version for libraries?
  37125. -need_version=$need_version
  37126. -# Whether dlopen is supported.
  37127. -dlopen_support=$enable_dlopen
  37128. -# Whether dlopen of programs is supported.
  37129. -dlopen_self=$enable_dlopen_self
  37130. -# Whether dlopen of statically linked programs is supported.
  37131. -dlopen_self_static=$enable_dlopen_self_static
  37132. +# Only expand once:
  37133. -# Compiler flag to prevent dynamic linking.
  37134. -link_static_flag=$lt_lt_prog_compiler_static_RC
  37135. -# Compiler flag to turn off builtin functions.
  37136. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  37137. -# Compiler flag to allow reflexive dlopens.
  37138. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  37139. +# Check whether --enable-docs was given.
  37140. +if test "${enable_docs+set}" = set; then :
  37141. + enableval=$enable_docs; case "${enableval}" in
  37142. + yes) build_docs=true;;
  37143. + no) build_docs=false;;
  37144. + *) as_fn_error "unknown value ${enableval} for --enable-docs" "$LINENO" 5;;
  37145. + esac
  37146. +else
  37147. + build_docs=false
  37148. +fi
  37149. -# Compiler flag to generate shared objects directly from archives.
  37150. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  37151. -# Compiler flag to generate thread-safe objects.
  37152. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  37153. +if test x$build_docs = xtrue; then
  37154. + for ac_prog in xsltproc
  37155. +do
  37156. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  37157. +set dummy $ac_prog; ac_word=$2
  37158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37159. +$as_echo_n "checking for $ac_word... " >&6; }
  37160. +if test "${ac_cv_prog_XSLTPROC+set}" = set; then :
  37161. + $as_echo_n "(cached) " >&6
  37162. +else
  37163. + if test -n "$XSLTPROC"; then
  37164. + ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
  37165. +else
  37166. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37167. +for as_dir in $PATH
  37168. +do
  37169. + IFS=$as_save_IFS
  37170. + test -z "$as_dir" && as_dir=.
  37171. + for ac_exec_ext in '' $ac_executable_extensions; do
  37172. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37173. + ac_cv_prog_XSLTPROC="$ac_prog"
  37174. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37175. + break 2
  37176. + fi
  37177. +done
  37178. + done
  37179. +IFS=$as_save_IFS
  37180. -# Library versioning type.
  37181. -version_type=$version_type
  37182. +fi
  37183. +fi
  37184. +XSLTPROC=$ac_cv_prog_XSLTPROC
  37185. +if test -n "$XSLTPROC"; then
  37186. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  37187. +$as_echo "$XSLTPROC" >&6; }
  37188. +else
  37189. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37190. +$as_echo "no" >&6; }
  37191. +fi
  37192. -# Format of library name prefix.
  37193. -libname_spec=$lt_libname_spec
  37194. -# List of archive names. First name is the real one, the rest are links.
  37195. -# The last name is the one that the linker finds with -lNAME.
  37196. -library_names_spec=$lt_library_names_spec
  37197. + test -n "$XSLTPROC" && break
  37198. +done
  37199. +test -n "$XSLTPROC" || XSLTPROC="/bin/false"
  37200. -# The coded name of the library, if different from the real name.
  37201. -soname_spec=$lt_soname_spec
  37202. + for ac_prog in pdfxmltex
  37203. +do
  37204. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  37205. +set dummy $ac_prog; ac_word=$2
  37206. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37207. +$as_echo_n "checking for $ac_word... " >&6; }
  37208. +if test "${ac_cv_prog_PDFXMLTEX+set}" = set; then :
  37209. + $as_echo_n "(cached) " >&6
  37210. +else
  37211. + if test -n "$PDFXMLTEX"; then
  37212. + ac_cv_prog_PDFXMLTEX="$PDFXMLTEX" # Let the user override the test.
  37213. +else
  37214. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37215. +for as_dir in $PATH
  37216. +do
  37217. + IFS=$as_save_IFS
  37218. + test -z "$as_dir" && as_dir=.
  37219. + for ac_exec_ext in '' $ac_executable_extensions; do
  37220. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37221. + ac_cv_prog_PDFXMLTEX="$ac_prog"
  37222. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37223. + break 2
  37224. + fi
  37225. +done
  37226. + done
  37227. +IFS=$as_save_IFS
  37228. -# Commands used to build and install an old-style archive.
  37229. -RANLIB=$lt_RANLIB
  37230. -old_archive_cmds=$lt_old_archive_cmds_RC
  37231. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37232. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37233. +fi
  37234. +fi
  37235. +PDFXMLTEX=$ac_cv_prog_PDFXMLTEX
  37236. +if test -n "$PDFXMLTEX"; then
  37237. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFXMLTEX" >&5
  37238. +$as_echo "$PDFXMLTEX" >&6; }
  37239. +else
  37240. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37241. +$as_echo "no" >&6; }
  37242. +fi
  37243. -# Create an old-style archive from a shared archive.
  37244. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  37245. -# Create a temporary old-style archive to link instead of a shared archive.
  37246. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  37247. + test -n "$PDFXMLTEX" && break
  37248. +done
  37249. +test -n "$PDFXMLTEX" || PDFXMLTEX="/bin/false"
  37250. -# Commands used to build and install a shared archive.
  37251. -archive_cmds=$lt_archive_cmds_RC
  37252. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  37253. -postinstall_cmds=$lt_postinstall_cmds
  37254. -postuninstall_cmds=$lt_postuninstall_cmds
  37255. + if test "x$XSLTPROC" = "x/bin/false" || test "x$PDFXMLTEX" = "x/bin/false"; then
  37256. + build_docs=false
  37257. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5
  37258. +$as_echo "$as_me: WARNING: Documentation will not be built!" >&2;}
  37259. + fi
  37260. +fi
  37261. -# Commands used to build a loadable module (assumed same as above if empty)
  37262. -module_cmds=$lt_module_cmds_RC
  37263. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  37264. + if test x$build_docs = xtrue; then
  37265. + BUILD_DOCS_TRUE=
  37266. + BUILD_DOCS_FALSE='#'
  37267. +else
  37268. + BUILD_DOCS_TRUE='#'
  37269. + BUILD_DOCS_FALSE=
  37270. +fi
  37271. -# Commands to strip libraries.
  37272. -old_striplib=$lt_old_striplib
  37273. -striplib=$lt_striplib
  37274. -# Dependencies to place before the objects being linked to create a
  37275. -# shared library.
  37276. -predep_objects=$lt_predep_objects_RC
  37277. -
  37278. -# Dependencies to place after the objects being linked to create a
  37279. -# shared library.
  37280. -postdep_objects=$lt_postdep_objects_RC
  37281. -
  37282. -# Dependencies to place before the objects being linked to create a
  37283. -# shared library.
  37284. -predeps=$lt_predeps_RC
  37285. -
  37286. -# Dependencies to place after the objects being linked to create a
  37287. -# shared library.
  37288. -postdeps=$lt_postdeps_RC
  37289. -
  37290. -# The library search path used internally by the compiler when linking
  37291. -# a shared library.
  37292. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  37293. -# Method to check whether dependent libraries are shared objects.
  37294. -deplibs_check_method=$lt_deplibs_check_method
  37295. -# Command to use when deplibs_check_method == file_magic.
  37296. -file_magic_cmd=$lt_file_magic_cmd
  37297. +cflags_save="$CFLAGS"
  37298. +if test -z "$GCC"; then
  37299. + case $host in
  37300. + *-*-irix*)
  37301. + if test -z "$CC"; then
  37302. + CC=cc
  37303. + fi
  37304. + DEBUG="-g -signed"
  37305. + CFLAGS="-O2 -w -signed"
  37306. + PROFILE="-p -g3 -O2 -signed" ;;
  37307. + sparc-sun-solaris*)
  37308. + DEBUG="-v -g"
  37309. + CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  37310. + PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
  37311. + *)
  37312. + DEBUG="-g"
  37313. + CFLAGS="-O"
  37314. + PROFILE="-g -p" ;;
  37315. + esac
  37316. +else
  37317. -# Flag that allows shared libraries with undefined symbols to be built.
  37318. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  37319. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
  37320. +$as_echo_n "checking GCC version... " >&6; }
  37321. + GCC_VERSION=`$CC -dumpversion`
  37322. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
  37323. +$as_echo "$GCC_VERSION" >&6; }
  37324. + case $host in
  37325. + *86-*-linux*)
  37326. + DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  37327. + CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
  37328. +# PROFILE="-Wall -W -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
  37329. + PROFILE="-Wall -W -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
  37330. -# Flag that forces no undefined symbols.
  37331. -no_undefined_flag=$lt_no_undefined_flag_RC
  37332. + # glibc < 2.1.3 has a serious FP bug in the math inline header
  37333. + # that will cripple Vorbis. Look to see if the magic FP stack
  37334. + # clobber is missing in the mathinline header, thus indicating
  37335. + # the buggy version
  37336. -# Commands used to finish a libtool library installation in a directory.
  37337. -finish_cmds=$lt_finish_cmds
  37338. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37339. +/* end confdefs.h. */
  37340. -# Same as above, but a single script fragment to be evaled but not shown.
  37341. -finish_eval=$lt_finish_eval
  37342. + #define __LIBC_INTERNAL_MATH_INLINES 1
  37343. + #define __OPTIMIZE__
  37344. + #include <math.h>
  37345. -# Take the output of nm and produce a listing of raw symbols and C names.
  37346. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37347. +_ACEOF
  37348. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37349. + $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
  37350. + bad=maybe
  37351. +else
  37352. + bad=no
  37353. +fi
  37354. +rm -f conftest*
  37355. -# Transform the output of nm in a proper C declaration
  37356. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37357. + if test ${bad} = "maybe" ;then
  37358. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37359. +/* end confdefs.h. */
  37360. -# Transform the output of nm in a C name address pair
  37361. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37362. + #define __LIBC_INTERNAL_MATH_INLINES 1
  37363. + #define __OPTIMIZE__
  37364. + #include <math.h>
  37365. -# This is the shared library runtime path variable.
  37366. -runpath_var=$runpath_var
  37367. +_ACEOF
  37368. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  37369. + $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
  37370. + bad=no
  37371. +else
  37372. + bad=yes
  37373. +fi
  37374. +rm -f conftest*
  37375. -# This is the shared library path variable.
  37376. -shlibpath_var=$shlibpath_var
  37377. + fi
  37378. + if test ${bad} = "yes" ;then
  37379. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
  37380. +$as_echo "$as_me: WARNING: " >&2;}
  37381. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
  37382. +$as_echo "$as_me: WARNING: ********************************************************" >&2;}
  37383. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
  37384. +$as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
  37385. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
  37386. +$as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
  37387. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5
  37388. +$as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
  37389. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
  37390. +$as_echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
  37391. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
  37392. +$as_echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
  37393. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is *" >&5
  37394. +$as_echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
  37395. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time time bug. *" >&5
  37396. +$as_echo "$as_me: WARNING: * a compile-time time bug. *" >&2;}
  37397. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg, *" >&5
  37398. +$as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
  37399. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining. This will *" >&5
  37400. +$as_echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
  37401. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
  37402. +$as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
  37403. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
  37404. +$as_echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
  37405. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining. *" >&5
  37406. +$as_echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
  37407. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
  37408. +$as_echo "$as_me: WARNING: ********************************************************" >&2;}
  37409. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
  37410. +$as_echo "$as_me: WARNING: " >&2;}
  37411. -# Is shlibpath searched before the hard-coded library search path?
  37412. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37413. + CFLAGS=${OPT}" -D__NO_MATH_INLINES"
  37414. + PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
  37415. + fi;;
  37416. + powerpc-*-linux*)
  37417. + DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES"
  37418. + CFLAGS="-O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
  37419. + PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
  37420. + *-*-linux*)
  37421. + DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  37422. + CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
  37423. + PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
  37424. + sparc-sun-*)
  37425. + DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char -mv8"
  37426. + CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
  37427. + PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
  37428. + *-*-darwin*)
  37429. + DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
  37430. + CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
  37431. + PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
  37432. + *)
  37433. + DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char"
  37434. + CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
  37435. + PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
  37436. + esac
  37437. +fi
  37438. +CFLAGS="$CFLAGS $cflags_save"
  37439. -# How to hardcode a shared library path into an executable.
  37440. -hardcode_action=$hardcode_action_RC
  37441. -# Whether we should hardcode library paths into libraries.
  37442. -hardcode_into_libs=$hardcode_into_libs
  37443. +ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  37444. +if test "x$ac_cv_header_memory_h" = x""yes; then :
  37445. + CFLAGS="$CFLAGS -DUSE_MEMORY_H"
  37446. +else
  37447. + :
  37448. +fi
  37449. -# Flag to hardcode \$libdir into a binary during linking.
  37450. -# This must work even if \$libdir does not exist.
  37451. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  37452. -# If ld is used when linking, flag to hardcode \$libdir into
  37453. -# a binary during linking. This must work even if \$libdir does
  37454. -# not exist.
  37455. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  37456. -
  37457. -# Whether we need a single -rpath flag with a separated argument.
  37458. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  37459. -
  37460. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37461. -# resulting binary.
  37462. -hardcode_direct=$hardcode_direct_RC
  37463. -
  37464. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37465. -# resulting binary.
  37466. -hardcode_minus_L=$hardcode_minus_L_RC
  37467. -
  37468. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37469. -# the resulting binary.
  37470. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  37471. -
  37472. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37473. -# and all subsequent libraries and executables linked against it.
  37474. -hardcode_automatic=$hardcode_automatic_RC
  37475. -# Variables whose values should be saved in libtool wrapper scripts and
  37476. -# restored at relink time.
  37477. -variables_saved_for_relink="$variables_saved_for_relink"
  37478. -# Whether libtool must link a program against all its dependency libraries.
  37479. -link_all_deplibs=$link_all_deplibs_RC
  37480. -# Compile-time system search path for libraries
  37481. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37482. -# Run-time system search path for libraries
  37483. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37484. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  37485. +$as_echo_n "checking for cos in -lm... " >&6; }
  37486. +if test "${ac_cv_lib_m_cos+set}" = set; then :
  37487. + $as_echo_n "(cached) " >&6
  37488. +else
  37489. + ac_check_lib_save_LIBS=$LIBS
  37490. +LIBS="-lm $LIBS"
  37491. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37492. +/* end confdefs.h. */
  37493. -# Fix the shell variable \$srcfile for the compiler.
  37494. -fix_srcfile_path="$fix_srcfile_path_RC"
  37495. +/* Override any GCC internal prototype to avoid an error.
  37496. + Use char because int might match the return type of a GCC
  37497. + builtin and then its argument prototype would still apply. */
  37498. +#ifdef __cplusplus
  37499. +extern "C"
  37500. +#endif
  37501. +char cos ();
  37502. +int
  37503. +main ()
  37504. +{
  37505. +return cos ();
  37506. + ;
  37507. + return 0;
  37508. +}
  37509. +_ACEOF
  37510. +if ac_fn_c_try_link "$LINENO"; then :
  37511. + ac_cv_lib_m_cos=yes
  37512. +else
  37513. + ac_cv_lib_m_cos=no
  37514. +fi
  37515. +rm -f core conftest.err conftest.$ac_objext \
  37516. + conftest$ac_exeext conftest.$ac_ext
  37517. +LIBS=$ac_check_lib_save_LIBS
  37518. +fi
  37519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  37520. +$as_echo "$ac_cv_lib_m_cos" >&6; }
  37521. +if test "x$ac_cv_lib_m_cos" = x""yes; then :
  37522. + VORBIS_LIBS="-lm"
  37523. +else
  37524. + VORBIS_LIBS=""
  37525. +fi
  37526. -# Set to yes if exported symbols are required.
  37527. -always_export_symbols=$always_export_symbols_RC
  37528. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  37529. +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  37530. +if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  37531. + $as_echo_n "(cached) " >&6
  37532. +else
  37533. + ac_check_lib_save_LIBS=$LIBS
  37534. +LIBS="-lpthread $LIBS"
  37535. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37536. +/* end confdefs.h. */
  37537. -# The commands to list exported symbols.
  37538. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  37539. +/* Override any GCC internal prototype to avoid an error.
  37540. + Use char because int might match the return type of a GCC
  37541. + builtin and then its argument prototype would still apply. */
  37542. +#ifdef __cplusplus
  37543. +extern "C"
  37544. +#endif
  37545. +char pthread_create ();
  37546. +int
  37547. +main ()
  37548. +{
  37549. +return pthread_create ();
  37550. + ;
  37551. + return 0;
  37552. +}
  37553. +_ACEOF
  37554. +if ac_fn_c_try_link "$LINENO"; then :
  37555. + ac_cv_lib_pthread_pthread_create=yes
  37556. +else
  37557. + ac_cv_lib_pthread_pthread_create=no
  37558. +fi
  37559. +rm -f core conftest.err conftest.$ac_objext \
  37560. + conftest$ac_exeext conftest.$ac_ext
  37561. +LIBS=$ac_check_lib_save_LIBS
  37562. +fi
  37563. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  37564. +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  37565. +if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  37566. + pthread_lib="-lpthread"
  37567. +else
  37568. + :
  37569. +fi
  37570. -# The commands to extract the exported symbol list from a shared archive.
  37571. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37572. -# Symbols that should not be listed in the preloaded symbols.
  37573. -exclude_expsyms=$lt_exclude_expsyms_RC
  37574. +HAVE_OGG=no
  37575. +# Extract the first word of "pkg-config", so it can be a program name with args.
  37576. +set dummy pkg-config; ac_word=$2
  37577. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37578. +$as_echo_n "checking for $ac_word... " >&6; }
  37579. +if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then :
  37580. + $as_echo_n "(cached) " >&6
  37581. +else
  37582. + if test -n "$HAVE_PKG_CONFIG"; then
  37583. + ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
  37584. +else
  37585. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37586. +for as_dir in $PATH
  37587. +do
  37588. + IFS=$as_save_IFS
  37589. + test -z "$as_dir" && as_dir=.
  37590. + for ac_exec_ext in '' $ac_executable_extensions; do
  37591. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37592. + ac_cv_prog_HAVE_PKG_CONFIG="yes"
  37593. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37594. + break 2
  37595. + fi
  37596. +done
  37597. + done
  37598. +IFS=$as_save_IFS
  37599. -# Symbols that must always be exported.
  37600. -include_expsyms=$lt_include_expsyms_RC
  37601. +fi
  37602. +fi
  37603. +HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
  37604. +if test -n "$HAVE_PKG_CONFIG"; then
  37605. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
  37606. +$as_echo "$HAVE_PKG_CONFIG" >&6; }
  37607. +else
  37608. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37609. +$as_echo "no" >&6; }
  37610. +fi
  37611. -# ### END LIBTOOL TAG CONFIG: $tagname
  37612. -__EOF__
  37613. +if test "x$HAVE_PKG_CONFIG" = "xyes"
  37614. +then
  37615. + succeeded=no
  37616. + if test -z "$PKG_CONFIG"; then
  37617. + # Extract the first word of "pkg-config", so it can be a program name with args.
  37618. +set dummy pkg-config; ac_word=$2
  37619. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  37620. +$as_echo_n "checking for $ac_word... " >&6; }
  37621. +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  37622. + $as_echo_n "(cached) " >&6
  37623. else
  37624. - # If there is no Makefile yet, we rely on a make rule to execute
  37625. - # `config.status --recheck' to rerun these tests and create the
  37626. - # libtool script then.
  37627. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37628. - if test -f "$ltmain_in"; then
  37629. - test -f Makefile && make "$ltmain"
  37630. + case $PKG_CONFIG in
  37631. + [\\/]* | ?:[\\/]*)
  37632. + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  37633. + ;;
  37634. + *)
  37635. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37636. +for as_dir in $PATH
  37637. +do
  37638. + IFS=$as_save_IFS
  37639. + test -z "$as_dir" && as_dir=.
  37640. + for ac_exec_ext in '' $ac_executable_extensions; do
  37641. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37642. + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  37643. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  37644. + break 2
  37645. fi
  37646. +done
  37647. + done
  37648. +IFS=$as_save_IFS
  37649. +
  37650. + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  37651. + ;;
  37652. +esac
  37653. +fi
  37654. +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  37655. +if test -n "$PKG_CONFIG"; then
  37656. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  37657. +$as_echo "$PKG_CONFIG" >&6; }
  37658. +else
  37659. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37660. +$as_echo "no" >&6; }
  37661. fi
  37662. -ac_ext=c
  37663. -ac_cpp='$CPP $CPPFLAGS'
  37664. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37665. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37666. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37667. + fi
  37668. -CC="$lt_save_CC"
  37669. + if test "$PKG_CONFIG" = "no" ; then
  37670. + echo "*** The pkg-config script could not be found. Make sure it is"
  37671. + echo "*** in your path, or set the PKG_CONFIG environment variable"
  37672. + echo "*** to the full path to pkg-config."
  37673. + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  37674. + else
  37675. + PKG_CONFIG_MIN_VERSION=0.9.0
  37676. + if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  37677. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.0" >&5
  37678. +$as_echo_n "checking for ogg >= 1.0... " >&6; }
  37679. +
  37680. + if $PKG_CONFIG --exists "ogg >= 1.0" ; then
  37681. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37682. +$as_echo "yes" >&6; }
  37683. + succeeded=yes
  37684. - ;;
  37685. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OGG_CFLAGS" >&5
  37686. +$as_echo_n "checking OGG_CFLAGS... " >&6; }
  37687. + OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0"`
  37688. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_CFLAGS" >&5
  37689. +$as_echo "$OGG_CFLAGS" >&6; }
  37690. - *)
  37691. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  37692. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  37693. - { (exit 1); exit 1; }; }
  37694. - ;;
  37695. - esac
  37696. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OGG_LIBS" >&5
  37697. +$as_echo_n "checking OGG_LIBS... " >&6; }
  37698. + OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0"`
  37699. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_LIBS" >&5
  37700. +$as_echo "$OGG_LIBS" >&6; }
  37701. + else
  37702. + OGG_CFLAGS=""
  37703. + OGG_LIBS=""
  37704. + ## If we have a custom action on failure, don't print errors, but
  37705. + ## do set a variable so people can do so.
  37706. + OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
  37707. - # Append the new tag name to the list of available tags.
  37708. - if test -n "$tagname" ; then
  37709. - available_tags="$available_tags $tagname"
  37710. - fi
  37711. - fi
  37712. - done
  37713. - IFS="$lt_save_ifs"
  37714. + fi
  37715. - # Now substitute the updated list of available tags.
  37716. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  37717. - mv "${ofile}T" "$ofile"
  37718. - chmod +x "$ofile"
  37719. - else
  37720. - rm -f "${ofile}T"
  37721. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  37722. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  37723. - { (exit 1); exit 1; }; }
  37724. - fi
  37725. -fi
  37726. + else
  37727. + echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  37728. + echo "*** See http://www.freedesktop.org/software/pkgconfig"
  37729. + fi
  37730. + fi
  37731. -# This can be used to rebuild libtool when needed
  37732. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  37733. + if test $succeeded = yes; then
  37734. + HAVE_OGG=yes
  37735. + else
  37736. + HAVE_OGG=no
  37737. + fi
  37738. -# Always use our own libtool.
  37739. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  37740. +fi
  37741. +if test "x$HAVE_OGG" = "xno"
  37742. +then
  37743. -# Prevent multiple expansion
  37744. +# Check whether --with-ogg was given.
  37745. +if test "${with_ogg+set}" = set; then :
  37746. + withval=$with_ogg; ogg_prefix="$withval"
  37747. +else
  37748. + ogg_prefix=""
  37749. +fi
  37750. +# Check whether --with-ogg-libraries was given.
  37751. +if test "${with_ogg_libraries+set}" = set; then :
  37752. + withval=$with_ogg_libraries; ogg_libraries="$withval"
  37753. +else
  37754. + ogg_libraries=""
  37755. +fi
  37756. +# Check whether --with-ogg-includes was given.
  37757. +if test "${with_ogg_includes+set}" = set; then :
  37758. + withval=$with_ogg_includes; ogg_includes="$withval"
  37759. +else
  37760. + ogg_includes=""
  37761. +fi
  37762. +# Check whether --enable-oggtest was given.
  37763. +if test "${enable_oggtest+set}" = set; then :
  37764. + enableval=$enable_oggtest;
  37765. +else
  37766. + enable_oggtest=yes
  37767. +fi
  37768. + if test "x$ogg_libraries" != "x" ; then
  37769. + OGG_LIBS="-L$ogg_libraries"
  37770. + elif test "x$ogg_prefix" != "x" ; then
  37771. + OGG_LIBS="-L$ogg_prefix/lib"
  37772. + elif test "x$prefix" != "xNONE" ; then
  37773. + OGG_LIBS="-L$prefix/lib"
  37774. + fi
  37775. + OGG_LIBS="$OGG_LIBS -logg"
  37776. + if test "x$ogg_includes" != "x" ; then
  37777. + OGG_CFLAGS="-I$ogg_includes"
  37778. + elif test "x$ogg_prefix" != "x" ; then
  37779. + OGG_CFLAGS="-I$ogg_prefix/include"
  37780. + elif test "x$prefix" != "xNONE"; then
  37781. + OGG_CFLAGS="-I$prefix/include"
  37782. + fi
  37783. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
  37784. +$as_echo_n "checking for Ogg... " >&6; }
  37785. + no_ogg=""
  37786. + if test "x$enable_oggtest" = "xyes" ; then
  37787. + ac_save_CFLAGS="$CFLAGS"
  37788. + ac_save_LIBS="$LIBS"
  37789. + CFLAGS="$CFLAGS $OGG_CFLAGS"
  37790. + LIBS="$LIBS $OGG_LIBS"
  37791. + rm -f conf.oggtest
  37792. + if test "$cross_compiling" = yes; then :
  37793. + echo $ac_n "cross compiling; assumed OK... $ac_c"
  37794. +else
  37795. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37796. +/* end confdefs.h. */
  37797. +#include <stdio.h>
  37798. +#include <stdlib.h>
  37799. +#include <string.h>
  37800. +#include <ogg/ogg.h>
  37801. +int main ()
  37802. +{
  37803. + system("touch conf.oggtest");
  37804. + return 0;
  37805. +}
  37806. +_ACEOF
  37807. +if ac_fn_c_try_run "$LINENO"; then :
  37808. +else
  37809. + no_ogg=yes
  37810. +fi
  37811. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  37812. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  37813. +fi
  37814. + CFLAGS="$ac_save_CFLAGS"
  37815. + LIBS="$ac_save_LIBS"
  37816. + fi
  37817. + if test "x$no_ogg" = "x" ; then
  37818. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  37819. +$as_echo "yes" >&6; }
  37820. + :
  37821. + else
  37822. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  37823. +$as_echo "no" >&6; }
  37824. + if test -f conf.oggtest ; then
  37825. + :
  37826. + else
  37827. + echo "*** Could not run Ogg test program, checking why..."
  37828. + CFLAGS="$CFLAGS $OGG_CFLAGS"
  37829. + LIBS="$LIBS $OGG_LIBS"
  37830. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37831. +/* end confdefs.h. */
  37832. +#include <stdio.h>
  37833. +#include <ogg/ogg.h>
  37834. -# Check whether --enable-docs was given.
  37835. -if test "${enable_docs+set}" = set; then
  37836. - enableval=$enable_docs; case "${enableval}" in
  37837. - yes) build_docs=true;;
  37838. - no) build_docs=false;;
  37839. - *) { { echo "$as_me:$LINENO: error: unknown value ${enableval} for --enable-docs" >&5
  37840. -echo "$as_me: error: unknown value ${enableval} for --enable-docs" >&2;}
  37841. - { (exit 1); exit 1; }; };;
  37842. - esac
  37843. +int
  37844. +main ()
  37845. +{
  37846. + return 0;
  37847. + ;
  37848. + return 0;
  37849. +}
  37850. +_ACEOF
  37851. +if ac_fn_c_try_link "$LINENO"; then :
  37852. + echo "*** The test program compiled, but did not run. This usually means"
  37853. + echo "*** that the run-time linker is not finding Ogg or finding the wrong"
  37854. + echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
  37855. + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  37856. + echo "*** to the installed location Also, make sure you have run ldconfig if that"
  37857. + echo "*** is required on your system"
  37858. + echo "***"
  37859. + echo "*** If you have an old version installed, it is best to remove it, although"
  37860. + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  37861. else
  37862. - build_docs=false
  37863. + echo "*** The test program failed to compile or link. See the file config.log for the"
  37864. + echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
  37865. + echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
  37866. + echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
  37867. fi
  37868. +rm -f core conftest.err conftest.$ac_objext \
  37869. + conftest$ac_exeext conftest.$ac_ext
  37870. + CFLAGS="$ac_save_CFLAGS"
  37871. + LIBS="$ac_save_LIBS"
  37872. + fi
  37873. + OGG_CFLAGS=""
  37874. + OGG_LIBS=""
  37875. + as_fn_error "must have Ogg installed!" "$LINENO" 5
  37876. + fi
  37877. -if test x$build_docs = xtrue; then
  37878. - for ac_prog in xsltproc
  37879. -do
  37880. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  37881. -set dummy $ac_prog; ac_word=$2
  37882. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  37883. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  37884. -if test "${ac_cv_prog_XSLTPROC+set}" = set; then
  37885. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37886. -else
  37887. - if test -n "$XSLTPROC"; then
  37888. - ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
  37889. -else
  37890. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37891. -for as_dir in $PATH
  37892. -do
  37893. - IFS=$as_save_IFS
  37894. - test -z "$as_dir" && as_dir=.
  37895. - for ac_exec_ext in '' $ac_executable_extensions; do
  37896. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37897. - ac_cv_prog_XSLTPROC="$ac_prog"
  37898. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37899. - break 2
  37900. - fi
  37901. -done
  37902. -done
  37903. -IFS=$as_save_IFS
  37904. + rm -f conf.oggtest
  37905. +
  37906. + libs_save=$LIBS
  37907. + LIBS="$OGG_LIBS $VORBIS_LIBS"
  37908. + ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign"
  37909. +if test "x$ac_cv_func_oggpack_writealign" = x""yes; then :
  37910. -fi
  37911. -fi
  37912. -XSLTPROC=$ac_cv_prog_XSLTPROC
  37913. -if test -n "$XSLTPROC"; then
  37914. - { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
  37915. -echo "${ECHO_T}$XSLTPROC" >&6; }
  37916. else
  37917. - { echo "$as_me:$LINENO: result: no" >&5
  37918. -echo "${ECHO_T}no" >&6; }
  37919. + as_fn_error "Ogg >= 1.0 required !" "$LINENO" 5
  37920. fi
  37921. + LIBS=$libs_save
  37922. +fi
  37923. - test -n "$XSLTPROC" && break
  37924. -done
  37925. -test -n "$XSLTPROC" || XSLTPROC="/bin/false"
  37926. - for ac_prog in pdfxmltex
  37927. -do
  37928. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  37929. -set dummy $ac_prog; ac_word=$2
  37930. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  37931. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  37932. -if test "${ac_cv_prog_PDFXMLTEX+set}" = set; then
  37933. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37934. +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  37935. +# for constant arguments. Useless!
  37936. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  37937. +$as_echo_n "checking for working alloca.h... " >&6; }
  37938. +if test "${ac_cv_working_alloca_h+set}" = set; then :
  37939. + $as_echo_n "(cached) " >&6
  37940. else
  37941. - if test -n "$PDFXMLTEX"; then
  37942. - ac_cv_prog_PDFXMLTEX="$PDFXMLTEX" # Let the user override the test.
  37943. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37944. +/* end confdefs.h. */
  37945. +#include <alloca.h>
  37946. +int
  37947. +main ()
  37948. +{
  37949. +char *p = (char *) alloca (2 * sizeof (int));
  37950. + if (p) return 0;
  37951. + ;
  37952. + return 0;
  37953. +}
  37954. +_ACEOF
  37955. +if ac_fn_c_try_link "$LINENO"; then :
  37956. + ac_cv_working_alloca_h=yes
  37957. else
  37958. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37959. -for as_dir in $PATH
  37960. -do
  37961. - IFS=$as_save_IFS
  37962. - test -z "$as_dir" && as_dir=.
  37963. - for ac_exec_ext in '' $ac_executable_extensions; do
  37964. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37965. - ac_cv_prog_PDFXMLTEX="$ac_prog"
  37966. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37967. - break 2
  37968. - fi
  37969. -done
  37970. -done
  37971. -IFS=$as_save_IFS
  37972. -
  37973. + ac_cv_working_alloca_h=no
  37974. fi
  37975. +rm -f core conftest.err conftest.$ac_objext \
  37976. + conftest$ac_exeext conftest.$ac_ext
  37977. fi
  37978. -PDFXMLTEX=$ac_cv_prog_PDFXMLTEX
  37979. -if test -n "$PDFXMLTEX"; then
  37980. - { echo "$as_me:$LINENO: result: $PDFXMLTEX" >&5
  37981. -echo "${ECHO_T}$PDFXMLTEX" >&6; }
  37982. -else
  37983. - { echo "$as_me:$LINENO: result: no" >&5
  37984. -echo "${ECHO_T}no" >&6; }
  37985. -fi
  37986. -
  37987. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  37988. +$as_echo "$ac_cv_working_alloca_h" >&6; }
  37989. +if test $ac_cv_working_alloca_h = yes; then
  37990. - test -n "$PDFXMLTEX" && break
  37991. -done
  37992. -test -n "$PDFXMLTEX" || PDFXMLTEX="/bin/false"
  37993. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  37994. - if test "x$XSLTPROC" = "x/bin/false" || test "x$PDFXMLTEX" = "x/bin/false"; then
  37995. - build_docs=false
  37996. - { echo "$as_me:$LINENO: WARNING: Documentation will not be built!" >&5
  37997. -echo "$as_me: WARNING: Documentation will not be built!" >&2;}
  37998. - fi
  37999. fi
  38000. - if test x$build_docs = xtrue; then
  38001. - BUILD_DOCS_TRUE=
  38002. - BUILD_DOCS_FALSE='#'
  38003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  38004. +$as_echo_n "checking for alloca... " >&6; }
  38005. +if test "${ac_cv_func_alloca_works+set}" = set; then :
  38006. + $as_echo_n "(cached) " >&6
  38007. +else
  38008. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38009. +/* end confdefs.h. */
  38010. +#ifdef __GNUC__
  38011. +# define alloca __builtin_alloca
  38012. +#else
  38013. +# ifdef _MSC_VER
  38014. +# include <malloc.h>
  38015. +# define alloca _alloca
  38016. +# else
  38017. +# ifdef HAVE_ALLOCA_H
  38018. +# include <alloca.h>
  38019. +# else
  38020. +# ifdef _AIX
  38021. + #pragma alloca
  38022. +# else
  38023. +# ifndef alloca /* predefined by HP cc +Olibcalls */
  38024. +char *alloca ();
  38025. +# endif
  38026. +# endif
  38027. +# endif
  38028. +# endif
  38029. +#endif
  38030. +
  38031. +int
  38032. +main ()
  38033. +{
  38034. +char *p = (char *) alloca (1);
  38035. + if (p) return 0;
  38036. + ;
  38037. + return 0;
  38038. +}
  38039. +_ACEOF
  38040. +if ac_fn_c_try_link "$LINENO"; then :
  38041. + ac_cv_func_alloca_works=yes
  38042. else
  38043. - BUILD_DOCS_TRUE='#'
  38044. - BUILD_DOCS_FALSE=
  38045. + ac_cv_func_alloca_works=no
  38046. fi
  38047. +rm -f core conftest.err conftest.$ac_objext \
  38048. + conftest$ac_exeext conftest.$ac_ext
  38049. +fi
  38050. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  38051. +$as_echo "$ac_cv_func_alloca_works" >&6; }
  38052. +if test $ac_cv_func_alloca_works = yes; then
  38053. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  38054. -
  38055. -cflags_save="$CFLAGS"
  38056. -if test -z "$GCC"; then
  38057. - case $host in
  38058. - *-*-irix*)
  38059. - if test -z "$CC"; then
  38060. - CC=cc
  38061. - fi
  38062. - DEBUG="-g -signed"
  38063. - CFLAGS="-O2 -w -signed"
  38064. - PROFILE="-p -g3 -O2 -signed" ;;
  38065. - sparc-sun-solaris*)
  38066. - DEBUG="-v -g"
  38067. - CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  38068. - PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
  38069. - *)
  38070. - DEBUG="-g"
  38071. - CFLAGS="-O"
  38072. - PROFILE="-g -p" ;;
  38073. - esac
  38074. else
  38075. + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  38076. +# that cause trouble. Some versions do not even contain alloca or
  38077. +# contain a buggy version. If you still want to use their alloca,
  38078. +# use ar to extract alloca.o from them instead of compiling alloca.c.
  38079. - { echo "$as_me:$LINENO: checking GCC version" >&5
  38080. -echo $ECHO_N "checking GCC version... $ECHO_C" >&6; }
  38081. - GCC_VERSION=`$CC -dumpversion`
  38082. - { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
  38083. -echo "${ECHO_T}$GCC_VERSION" >&6; }
  38084. - case $host in
  38085. - *86-*-linux*)
  38086. - DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  38087. - CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
  38088. -# PROFILE="-Wall -W -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
  38089. - PROFILE="-Wall -W -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
  38090. +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  38091. - # glibc < 2.1.3 has a serious FP bug in the math inline header
  38092. - # that will cripple Vorbis. Look to see if the magic FP stack
  38093. - # clobber is missing in the mathinline header, thus indicating
  38094. - # the buggy version
  38095. +$as_echo "#define C_ALLOCA 1" >>confdefs.h
  38096. - cat >conftest.$ac_ext <<_ACEOF
  38097. -/* confdefs.h. */
  38098. -_ACEOF
  38099. -cat confdefs.h >>conftest.$ac_ext
  38100. -cat >>conftest.$ac_ext <<_ACEOF
  38101. -/* end confdefs.h. */
  38102. - #define __LIBC_INTERNAL_MATH_INLINES 1
  38103. - #define __OPTIMIZE__
  38104. - #include <math.h>
  38105. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  38106. +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  38107. +if test "${ac_cv_os_cray+set}" = set; then :
  38108. + $as_echo_n "(cached) " >&6
  38109. +else
  38110. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38111. +/* end confdefs.h. */
  38112. +#if defined CRAY && ! defined CRAY2
  38113. +webecray
  38114. +#else
  38115. +wenotbecray
  38116. +#endif
  38117. _ACEOF
  38118. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38119. - $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
  38120. - bad=maybe
  38121. + $EGREP "webecray" >/dev/null 2>&1; then :
  38122. + ac_cv_os_cray=yes
  38123. else
  38124. - bad=no
  38125. + ac_cv_os_cray=no
  38126. fi
  38127. rm -f conftest*
  38128. - if test ${bad} = "maybe" ;then
  38129. - cat >conftest.$ac_ext <<_ACEOF
  38130. -/* confdefs.h. */
  38131. +fi
  38132. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  38133. +$as_echo "$ac_cv_os_cray" >&6; }
  38134. +if test $ac_cv_os_cray = yes; then
  38135. + for ac_func in _getb67 GETB67 getb67; do
  38136. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  38137. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  38138. +eval as_val=\$$as_ac_var
  38139. + if test "x$as_val" = x""yes; then :
  38140. +
  38141. +cat >>confdefs.h <<_ACEOF
  38142. +#define CRAY_STACKSEG_END $ac_func
  38143. _ACEOF
  38144. -cat confdefs.h >>conftest.$ac_ext
  38145. -cat >>conftest.$ac_ext <<_ACEOF
  38146. -/* end confdefs.h. */
  38147. - #define __LIBC_INTERNAL_MATH_INLINES 1
  38148. - #define __OPTIMIZE__
  38149. - #include <math.h>
  38150. + break
  38151. +fi
  38152. +
  38153. + done
  38154. +fi
  38155. +
  38156. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  38157. +$as_echo_n "checking stack direction for C alloca... " >&6; }
  38158. +if test "${ac_cv_c_stack_direction+set}" = set; then :
  38159. + $as_echo_n "(cached) " >&6
  38160. +else
  38161. + if test "$cross_compiling" = yes; then :
  38162. + ac_cv_c_stack_direction=0
  38163. +else
  38164. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38165. +/* end confdefs.h. */
  38166. +$ac_includes_default
  38167. +int
  38168. +find_stack_direction ()
  38169. +{
  38170. + static char *addr = 0;
  38171. + auto char dummy;
  38172. + if (addr == 0)
  38173. + {
  38174. + addr = &dummy;
  38175. + return find_stack_direction ();
  38176. + }
  38177. + else
  38178. + return (&dummy > addr) ? 1 : -1;
  38179. +}
  38180. +int
  38181. +main ()
  38182. +{
  38183. + return find_stack_direction () < 0;
  38184. +}
  38185. _ACEOF
  38186. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38187. - $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
  38188. - bad=no
  38189. +if ac_fn_c_try_run "$LINENO"; then :
  38190. + ac_cv_c_stack_direction=1
  38191. else
  38192. - bad=yes
  38193. + ac_cv_c_stack_direction=-1
  38194. +fi
  38195. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38196. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38197. fi
  38198. -rm -f conftest*
  38199. -
  38200. - fi
  38201. - if test ${bad} = "yes" ;then
  38202. - { echo "$as_me:$LINENO: WARNING: " >&5
  38203. -echo "$as_me: WARNING: " >&2;}
  38204. - { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
  38205. -echo "$as_me: WARNING: ********************************************************" >&2;}
  38206. - { echo "$as_me:$LINENO: WARNING: * The glibc headers on this machine have a serious bug *" >&5
  38207. -echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
  38208. - { echo "$as_me:$LINENO: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
  38209. -echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
  38210. - { echo "$as_me:$LINENO: WARNING: * all floating point code, not just Ogg, built on this *" >&5
  38211. -echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
  38212. - { echo "$as_me:$LINENO: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
  38213. -echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
  38214. - { echo "$as_me:$LINENO: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
  38215. -echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
  38216. - { echo "$as_me:$LINENO: WARNING: * will not fix any previously built programs; this is *" >&5
  38217. -echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
  38218. - { echo "$as_me:$LINENO: WARNING: * a compile-time time bug. *" >&5
  38219. -echo "$as_me: WARNING: * a compile-time time bug. *" >&2;}
  38220. - { echo "$as_me:$LINENO: WARNING: * To work around the problem for this build of Ogg, *" >&5
  38221. -echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
  38222. - { echo "$as_me:$LINENO: WARNING: * autoconf is disabling all math inlining. This will *" >&5
  38223. -echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
  38224. - { echo "$as_me:$LINENO: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
  38225. -echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
  38226. - { echo "$as_me:$LINENO: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
  38227. -echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
  38228. - { echo "$as_me:$LINENO: WARNING: * configure and make to build with inlining. *" >&5
  38229. -echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
  38230. - { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
  38231. -echo "$as_me: WARNING: ********************************************************" >&2;}
  38232. - { echo "$as_me:$LINENO: WARNING: " >&5
  38233. -echo "$as_me: WARNING: " >&2;}
  38234. - CFLAGS=${OPT}" -D__NO_MATH_INLINES"
  38235. - PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
  38236. - fi;;
  38237. - powerpc-*-linux*)
  38238. - DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES"
  38239. - CFLAGS="-O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
  38240. - PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
  38241. - *-*-linux*)
  38242. - DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  38243. - CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
  38244. - PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
  38245. - sparc-sun-*)
  38246. - DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char -mv8"
  38247. - CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
  38248. - PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
  38249. - *-*-darwin*)
  38250. - DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
  38251. - CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
  38252. - PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
  38253. - *)
  38254. - DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char"
  38255. - CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
  38256. - PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
  38257. - esac
  38258. fi
  38259. -CFLAGS="$CFLAGS $cflags_save"
  38260. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  38261. +$as_echo "$ac_cv_c_stack_direction" >&6; }
  38262. +cat >>confdefs.h <<_ACEOF
  38263. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  38264. +_ACEOF
  38265. -if test "${ac_cv_header_memory_h+set}" = set; then
  38266. - { echo "$as_me:$LINENO: checking for memory.h" >&5
  38267. -echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
  38268. -if test "${ac_cv_header_memory_h+set}" = set; then
  38269. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38270. fi
  38271. -{ echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
  38272. -echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
  38273. +
  38274. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  38275. +$as_echo_n "checking for working memcmp... " >&6; }
  38276. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  38277. + $as_echo_n "(cached) " >&6
  38278. else
  38279. - # Is the header compilable?
  38280. -{ echo "$as_me:$LINENO: checking memory.h usability" >&5
  38281. -echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6; }
  38282. -cat >conftest.$ac_ext <<_ACEOF
  38283. -/* confdefs.h. */
  38284. -_ACEOF
  38285. -cat confdefs.h >>conftest.$ac_ext
  38286. -cat >>conftest.$ac_ext <<_ACEOF
  38287. + if test "$cross_compiling" = yes; then :
  38288. + ac_cv_func_memcmp_working=no
  38289. +else
  38290. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38291. /* end confdefs.h. */
  38292. $ac_includes_default
  38293. -#include <memory.h>
  38294. +int
  38295. +main ()
  38296. +{
  38297. +
  38298. + /* Some versions of memcmp are not 8-bit clean. */
  38299. + char c0 = '\100', c1 = '\200', c2 = '\201';
  38300. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  38301. + return 1;
  38302. +
  38303. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  38304. + or more and with at least one buffer not starting on a 4-byte boundary.
  38305. + William Lewis provided this test program. */
  38306. + {
  38307. + char foo[21];
  38308. + char bar[21];
  38309. + int i;
  38310. + for (i = 0; i < 4; i++)
  38311. + {
  38312. + char *a = foo + i;
  38313. + char *b = bar + i;
  38314. + strcpy (a, "--------01111111");
  38315. + strcpy (b, "--------10000000");
  38316. + if (memcmp (a, b, 16) >= 0)
  38317. + return 1;
  38318. + }
  38319. + return 0;
  38320. + }
  38321. +
  38322. + ;
  38323. + return 0;
  38324. +}
  38325. _ACEOF
  38326. -rm -f conftest.$ac_objext
  38327. -if { (ac_try="$ac_compile"
  38328. -case "(($ac_try" in
  38329. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38330. - *) ac_try_echo=$ac_try;;
  38331. -esac
  38332. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38333. - (eval "$ac_compile") 2>conftest.er1
  38334. - ac_status=$?
  38335. - grep -v '^ *+' conftest.er1 >conftest.err
  38336. - rm -f conftest.er1
  38337. - cat conftest.err >&5
  38338. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38339. - (exit $ac_status); } && {
  38340. - test -z "$ac_c_werror_flag" ||
  38341. - test ! -s conftest.err
  38342. - } && test -s conftest.$ac_objext; then
  38343. - ac_header_compiler=yes
  38344. +if ac_fn_c_try_run "$LINENO"; then :
  38345. + ac_cv_func_memcmp_working=yes
  38346. else
  38347. - echo "$as_me: failed program was:" >&5
  38348. -sed 's/^/| /' conftest.$ac_ext >&5
  38349. + ac_cv_func_memcmp_working=no
  38350. +fi
  38351. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38352. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38353. +fi
  38354. +
  38355. +fi
  38356. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  38357. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  38358. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  38359. + *" memcmp.$ac_objext "* ) ;;
  38360. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  38361. + ;;
  38362. +esac
  38363. +
  38364. +
  38365. - ac_header_compiler=no
  38366. +
  38367. +
  38368. +
  38369. +
  38370. +
  38371. +
  38372. +ac_config_files="$ac_config_files Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
  38373. +
  38374. +cat >confcache <<\_ACEOF
  38375. +# This file is a shell script that caches the results of configure
  38376. +# tests run on this system so they can be shared between configure
  38377. +# scripts and configure runs, see configure's option --config-cache.
  38378. +# It is not useful on other systems. If it contains results you don't
  38379. +# want to keep, you may remove or edit it.
  38380. +#
  38381. +# config.status only pays attention to the cache file if you give it
  38382. +# the --recheck option to rerun configure.
  38383. +#
  38384. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  38385. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  38386. +# following values.
  38387. +
  38388. +_ACEOF
  38389. +
  38390. +# The following way of writing the cache mishandles newlines in values,
  38391. +# but we know of no workaround that is simple, portable, and efficient.
  38392. +# So, we kill variables containing newlines.
  38393. +# Ultrix sh set writes to stderr and can't be redirected directly,
  38394. +# and sets the high bit in the cache file unless we assign to the vars.
  38395. +(
  38396. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  38397. + eval ac_val=\$$ac_var
  38398. + case $ac_val in #(
  38399. + *${as_nl}*)
  38400. + case $ac_var in #(
  38401. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  38402. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  38403. + esac
  38404. + case $ac_var in #(
  38405. + _ | IFS | as_nl) ;; #(
  38406. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  38407. + *) { eval $ac_var=; unset $ac_var;} ;;
  38408. + esac ;;
  38409. + esac
  38410. + done
  38411. +
  38412. + (set) 2>&1 |
  38413. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  38414. + *${as_nl}ac_space=\ *)
  38415. + # `set' does not quote correctly, so add quotes: double-quote
  38416. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  38417. + sed -n \
  38418. + "s/'/'\\\\''/g;
  38419. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  38420. + ;; #(
  38421. + *)
  38422. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  38423. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  38424. + ;;
  38425. + esac |
  38426. + sort
  38427. +) |
  38428. + sed '
  38429. + /^ac_cv_env_/b end
  38430. + t clear
  38431. + :clear
  38432. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  38433. + t end
  38434. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  38435. + :end' >>confcache
  38436. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  38437. + if test -w "$cache_file"; then
  38438. + test "x$cache_file" != "x/dev/null" &&
  38439. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  38440. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  38441. + cat confcache >$cache_file
  38442. + else
  38443. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  38444. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  38445. + fi
  38446. fi
  38447. +rm -f confcache
  38448. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38449. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  38450. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  38451. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  38452. +# Let make expand exec_prefix.
  38453. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  38454. -# Is the header present?
  38455. -{ echo "$as_me:$LINENO: checking memory.h presence" >&5
  38456. -echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6; }
  38457. -cat >conftest.$ac_ext <<_ACEOF
  38458. -/* confdefs.h. */
  38459. -_ACEOF
  38460. -cat confdefs.h >>conftest.$ac_ext
  38461. -cat >>conftest.$ac_ext <<_ACEOF
  38462. -/* end confdefs.h. */
  38463. -#include <memory.h>
  38464. -_ACEOF
  38465. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  38466. -case "(($ac_try" in
  38467. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38468. - *) ac_try_echo=$ac_try;;
  38469. -esac
  38470. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38471. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  38472. - ac_status=$?
  38473. - grep -v '^ *+' conftest.er1 >conftest.err
  38474. - rm -f conftest.er1
  38475. - cat conftest.err >&5
  38476. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38477. - (exit $ac_status); } >/dev/null && {
  38478. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  38479. - test ! -s conftest.err
  38480. - }; then
  38481. - ac_header_preproc=yes
  38482. -else
  38483. - echo "$as_me: failed program was:" >&5
  38484. -sed 's/^/| /' conftest.$ac_ext >&5
  38485. +DEFS=-DHAVE_CONFIG_H
  38486. - ac_header_preproc=no
  38487. -fi
  38488. +ac_libobjs=
  38489. +ac_ltlibobjs=
  38490. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  38491. + # 1. Remove the extension, and $U if already installed.
  38492. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  38493. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  38494. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  38495. + # will be set to the directory where LIBOBJS objects are built.
  38496. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  38497. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  38498. +done
  38499. +LIBOBJS=$ac_libobjs
  38500. -rm -f conftest.err conftest.$ac_ext
  38501. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  38502. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  38503. +LTLIBOBJS=$ac_ltlibobjs
  38504. -# So? What about this header?
  38505. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  38506. - yes:no: )
  38507. - { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5
  38508. -echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  38509. - { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5
  38510. -echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;}
  38511. - ac_header_preproc=yes
  38512. - ;;
  38513. - no:yes:* )
  38514. - { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5
  38515. -echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;}
  38516. - { echo "$as_me:$LINENO: WARNING: memory.h: check for missing prerequisite headers?" >&5
  38517. -echo "$as_me: WARNING: memory.h: check for missing prerequisite headers?" >&2;}
  38518. - { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5
  38519. -echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;}
  38520. - { echo "$as_me:$LINENO: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&5
  38521. -echo "$as_me: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&2;}
  38522. - { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5
  38523. -echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;}
  38524. - { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5
  38525. -echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;}
  38526. - ;;
  38527. -esac
  38528. -{ echo "$as_me:$LINENO: checking for memory.h" >&5
  38529. -echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
  38530. -if test "${ac_cv_header_memory_h+set}" = set; then
  38531. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38532. + if test -n "$EXEEXT"; then
  38533. + am__EXEEXT_TRUE=
  38534. + am__EXEEXT_FALSE='#'
  38535. else
  38536. - ac_cv_header_memory_h=$ac_header_preproc
  38537. + am__EXEEXT_TRUE='#'
  38538. + am__EXEEXT_FALSE=
  38539. fi
  38540. -{ echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
  38541. -echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
  38542. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  38543. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  38544. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38545. fi
  38546. -if test $ac_cv_header_memory_h = yes; then
  38547. - CFLAGS="$CFLAGS -DUSE_MEMORY_H"
  38548. -else
  38549. - :
  38550. -fi
  38551. -
  38552. -
  38553. -
  38554. -
  38555. -
  38556. -
  38557. -{ echo "$as_me:$LINENO: checking for cos in -lm" >&5
  38558. -echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
  38559. -if test "${ac_cv_lib_m_cos+set}" = set; then
  38560. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38561. -else
  38562. - ac_check_lib_save_LIBS=$LIBS
  38563. -LIBS="-lm $LIBS"
  38564. -cat >conftest.$ac_ext <<_ACEOF
  38565. -/* confdefs.h. */
  38566. -_ACEOF
  38567. -cat confdefs.h >>conftest.$ac_ext
  38568. -cat >>conftest.$ac_ext <<_ACEOF
  38569. -/* end confdefs.h. */
  38570. -
  38571. -/* Override any GCC internal prototype to avoid an error.
  38572. - Use char because int might match the return type of a GCC
  38573. - builtin and then its argument prototype would still apply. */
  38574. -#ifdef __cplusplus
  38575. -extern "C"
  38576. -#endif
  38577. -char cos ();
  38578. -int
  38579. -main ()
  38580. -{
  38581. -return cos ();
  38582. - ;
  38583. - return 0;
  38584. -}
  38585. -_ACEOF
  38586. -rm -f conftest.$ac_objext conftest$ac_exeext
  38587. -if { (ac_try="$ac_link"
  38588. -case "(($ac_try" in
  38589. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38590. - *) ac_try_echo=$ac_try;;
  38591. -esac
  38592. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38593. - (eval "$ac_link") 2>conftest.er1
  38594. - ac_status=$?
  38595. - grep -v '^ *+' conftest.er1 >conftest.err
  38596. - rm -f conftest.er1
  38597. - cat conftest.err >&5
  38598. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38599. - (exit $ac_status); } && {
  38600. - test -z "$ac_c_werror_flag" ||
  38601. - test ! -s conftest.err
  38602. - } && test -s conftest$ac_exeext &&
  38603. - $as_test_x conftest$ac_exeext; then
  38604. - ac_cv_lib_m_cos=yes
  38605. -else
  38606. - echo "$as_me: failed program was:" >&5
  38607. -sed 's/^/| /' conftest.$ac_ext >&5
  38608. -
  38609. - ac_cv_lib_m_cos=no
  38610. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  38611. + as_fn_error "conditional \"AMDEP\" was never defined.
  38612. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38613. fi
  38614. -
  38615. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38616. - conftest$ac_exeext conftest.$ac_ext
  38617. -LIBS=$ac_check_lib_save_LIBS
  38618. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  38619. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  38620. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38621. fi
  38622. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
  38623. -echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
  38624. -if test $ac_cv_lib_m_cos = yes; then
  38625. - VORBIS_LIBS="-lm"
  38626. -else
  38627. - VORBIS_LIBS=""
  38628. +if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
  38629. + as_fn_error "conditional \"BUILD_DOCS\" was never defined.
  38630. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  38631. fi
  38632. -{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  38633. -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
  38634. -if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  38635. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38636. -else
  38637. - ac_check_lib_save_LIBS=$LIBS
  38638. -LIBS="-lpthread $LIBS"
  38639. -cat >conftest.$ac_ext <<_ACEOF
  38640. -/* confdefs.h. */
  38641. -_ACEOF
  38642. -cat confdefs.h >>conftest.$ac_ext
  38643. -cat >>conftest.$ac_ext <<_ACEOF
  38644. -/* end confdefs.h. */
  38645. +: ${CONFIG_STATUS=./config.status}
  38646. +ac_write_fail=0
  38647. +ac_clean_files_save=$ac_clean_files
  38648. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  38649. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  38650. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  38651. +as_write_fail=0
  38652. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  38653. +#! $SHELL
  38654. +# Generated by $as_me.
  38655. +# Run this file to recreate the current configuration.
  38656. +# Compiler output produced by configure, useful for debugging
  38657. +# configure, is in config.log if it exists.
  38658. -/* Override any GCC internal prototype to avoid an error.
  38659. - Use char because int might match the return type of a GCC
  38660. - builtin and then its argument prototype would still apply. */
  38661. -#ifdef __cplusplus
  38662. -extern "C"
  38663. -#endif
  38664. -char pthread_create ();
  38665. -int
  38666. -main ()
  38667. -{
  38668. -return pthread_create ();
  38669. - ;
  38670. - return 0;
  38671. -}
  38672. -_ACEOF
  38673. -rm -f conftest.$ac_objext conftest$ac_exeext
  38674. -if { (ac_try="$ac_link"
  38675. -case "(($ac_try" in
  38676. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38677. - *) ac_try_echo=$ac_try;;
  38678. -esac
  38679. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38680. - (eval "$ac_link") 2>conftest.er1
  38681. - ac_status=$?
  38682. - grep -v '^ *+' conftest.er1 >conftest.err
  38683. - rm -f conftest.er1
  38684. - cat conftest.err >&5
  38685. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38686. - (exit $ac_status); } && {
  38687. - test -z "$ac_c_werror_flag" ||
  38688. - test ! -s conftest.err
  38689. - } && test -s conftest$ac_exeext &&
  38690. - $as_test_x conftest$ac_exeext; then
  38691. - ac_cv_lib_pthread_pthread_create=yes
  38692. -else
  38693. - echo "$as_me: failed program was:" >&5
  38694. -sed 's/^/| /' conftest.$ac_ext >&5
  38695. +debug=false
  38696. +ac_cs_recheck=false
  38697. +ac_cs_silent=false
  38698. - ac_cv_lib_pthread_pthread_create=no
  38699. -fi
  38700. +SHELL=\${CONFIG_SHELL-$SHELL}
  38701. +export SHELL
  38702. +_ASEOF
  38703. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  38704. +## -------------------- ##
  38705. +## M4sh Initialization. ##
  38706. +## -------------------- ##
  38707. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38708. - conftest$ac_exeext conftest.$ac_ext
  38709. -LIBS=$ac_check_lib_save_LIBS
  38710. -fi
  38711. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  38712. -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
  38713. -if test $ac_cv_lib_pthread_pthread_create = yes; then
  38714. - pthread_lib="-lpthread"
  38715. +# Be more Bourne compatible
  38716. +DUALCASE=1; export DUALCASE # for MKS sh
  38717. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  38718. + emulate sh
  38719. + NULLCMD=:
  38720. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  38721. + # is contrary to our usage. Disable this feature.
  38722. + alias -g '${1+"$@"}'='"$@"'
  38723. + setopt NO_GLOB_SUBST
  38724. else
  38725. - :
  38726. + case `(set -o) 2>/dev/null` in #(
  38727. + *posix*) :
  38728. + set -o posix ;; #(
  38729. + *) :
  38730. + ;;
  38731. +esac
  38732. fi
  38733. -HAVE_OGG=no
  38734. -# Extract the first word of "pkg-config", so it can be a program name with args.
  38735. -set dummy pkg-config; ac_word=$2
  38736. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  38737. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  38738. -if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
  38739. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38740. -else
  38741. - if test -n "$HAVE_PKG_CONFIG"; then
  38742. - ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
  38743. -else
  38744. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38745. -for as_dir in $PATH
  38746. -do
  38747. - IFS=$as_save_IFS
  38748. - test -z "$as_dir" && as_dir=.
  38749. - for ac_exec_ext in '' $ac_executable_extensions; do
  38750. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38751. - ac_cv_prog_HAVE_PKG_CONFIG="yes"
  38752. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  38753. - break 2
  38754. +as_nl='
  38755. +'
  38756. +export as_nl
  38757. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  38758. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38759. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  38760. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38761. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  38762. +# but without wasting forks for bash or zsh.
  38763. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  38764. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  38765. + as_echo='print -r --'
  38766. + as_echo_n='print -rn --'
  38767. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  38768. + as_echo='printf %s\n'
  38769. + as_echo_n='printf %s'
  38770. +else
  38771. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  38772. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  38773. + as_echo_n='/usr/ucb/echo -n'
  38774. + else
  38775. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  38776. + as_echo_n_body='eval
  38777. + arg=$1;
  38778. + case $arg in #(
  38779. + *"$as_nl"*)
  38780. + expr "X$arg" : "X\\(.*\\)$as_nl";
  38781. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  38782. + esac;
  38783. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  38784. + '
  38785. + export as_echo_n_body
  38786. + as_echo_n='sh -c $as_echo_n_body as_echo'
  38787. fi
  38788. -done
  38789. -done
  38790. -IFS=$as_save_IFS
  38791. -
  38792. -fi
  38793. -fi
  38794. -HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
  38795. -if test -n "$HAVE_PKG_CONFIG"; then
  38796. - { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
  38797. -echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
  38798. -else
  38799. - { echo "$as_me:$LINENO: result: no" >&5
  38800. -echo "${ECHO_T}no" >&6; }
  38801. + export as_echo_body
  38802. + as_echo='sh -c $as_echo_body as_echo'
  38803. fi
  38804. +# The user is always right.
  38805. +if test "${PATH_SEPARATOR+set}" != set; then
  38806. + PATH_SEPARATOR=:
  38807. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  38808. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  38809. + PATH_SEPARATOR=';'
  38810. + }
  38811. +fi
  38812. -if test "x$HAVE_PKG_CONFIG" = "xyes"
  38813. -then
  38814. - succeeded=no
  38815. +# IFS
  38816. +# We need space, tab and new line, in precisely that order. Quoting is
  38817. +# there to prevent editors from complaining about space-tab.
  38818. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  38819. +# splitting by setting IFS to empty value.)
  38820. +IFS=" "" $as_nl"
  38821. - if test -z "$PKG_CONFIG"; then
  38822. - # Extract the first word of "pkg-config", so it can be a program name with args.
  38823. -set dummy pkg-config; ac_word=$2
  38824. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  38825. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  38826. -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  38827. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38828. -else
  38829. - case $PKG_CONFIG in
  38830. - [\\/]* | ?:[\\/]*)
  38831. - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  38832. - ;;
  38833. - *)
  38834. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38835. +# Find who we are. Look in the path if we contain no directory separator.
  38836. +case $0 in #((
  38837. + *[\\/]* ) as_myself=$0 ;;
  38838. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38839. for as_dir in $PATH
  38840. do
  38841. IFS=$as_save_IFS
  38842. test -z "$as_dir" && as_dir=.
  38843. - for ac_exec_ext in '' $ac_executable_extensions; do
  38844. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38845. - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  38846. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  38847. - break 2
  38848. - fi
  38849. -done
  38850. -done
  38851. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  38852. + done
  38853. IFS=$as_save_IFS
  38854. - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  38855. - ;;
  38856. + ;;
  38857. esac
  38858. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  38859. +# in which case we are not to be found in the path.
  38860. +if test "x$as_myself" = x; then
  38861. + as_myself=$0
  38862. fi
  38863. -PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  38864. -if test -n "$PKG_CONFIG"; then
  38865. - { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  38866. -echo "${ECHO_T}$PKG_CONFIG" >&6; }
  38867. -else
  38868. - { echo "$as_me:$LINENO: result: no" >&5
  38869. -echo "${ECHO_T}no" >&6; }
  38870. +if test ! -f "$as_myself"; then
  38871. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  38872. + exit 1
  38873. fi
  38874. +# Unset variables that we do not need and which cause bugs (e.g. in
  38875. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  38876. +# suppresses any "Segmentation fault" message there. '((' could
  38877. +# trigger a bug in pdksh 5.2.14.
  38878. +for as_var in BASH_ENV ENV MAIL MAILPATH
  38879. +do eval test x\${$as_var+set} = xset \
  38880. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  38881. +done
  38882. +PS1='$ '
  38883. +PS2='> '
  38884. +PS4='+ '
  38885. - fi
  38886. -
  38887. - if test "$PKG_CONFIG" = "no" ; then
  38888. - echo "*** The pkg-config script could not be found. Make sure it is"
  38889. - echo "*** in your path, or set the PKG_CONFIG environment variable"
  38890. - echo "*** to the full path to pkg-config."
  38891. - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  38892. - else
  38893. - PKG_CONFIG_MIN_VERSION=0.9.0
  38894. - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  38895. - { echo "$as_me:$LINENO: checking for ogg >= 1.0" >&5
  38896. -echo $ECHO_N "checking for ogg >= 1.0... $ECHO_C" >&6; }
  38897. -
  38898. - if $PKG_CONFIG --exists "ogg >= 1.0" ; then
  38899. - { echo "$as_me:$LINENO: result: yes" >&5
  38900. -echo "${ECHO_T}yes" >&6; }
  38901. - succeeded=yes
  38902. -
  38903. - { echo "$as_me:$LINENO: checking OGG_CFLAGS" >&5
  38904. -echo $ECHO_N "checking OGG_CFLAGS... $ECHO_C" >&6; }
  38905. - OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0"`
  38906. - { echo "$as_me:$LINENO: result: $OGG_CFLAGS" >&5
  38907. -echo "${ECHO_T}$OGG_CFLAGS" >&6; }
  38908. -
  38909. - { echo "$as_me:$LINENO: checking OGG_LIBS" >&5
  38910. -echo $ECHO_N "checking OGG_LIBS... $ECHO_C" >&6; }
  38911. - OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0"`
  38912. - { echo "$as_me:$LINENO: result: $OGG_LIBS" >&5
  38913. -echo "${ECHO_T}$OGG_LIBS" >&6; }
  38914. - else
  38915. - OGG_CFLAGS=""
  38916. - OGG_LIBS=""
  38917. - ## If we have a custom action on failure, don't print errors, but
  38918. - ## do set a variable so people can do so.
  38919. - OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
  38920. -
  38921. - fi
  38922. -
  38923. -
  38924. +# NLS nuisances.
  38925. +LC_ALL=C
  38926. +export LC_ALL
  38927. +LANGUAGE=C
  38928. +export LANGUAGE
  38929. - else
  38930. - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  38931. - echo "*** See http://www.freedesktop.org/software/pkgconfig"
  38932. - fi
  38933. - fi
  38934. +# CDPATH.
  38935. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  38936. - if test $succeeded = yes; then
  38937. - HAVE_OGG=yes
  38938. - else
  38939. - HAVE_OGG=no
  38940. - fi
  38941. -fi
  38942. -if test "x$HAVE_OGG" = "xno"
  38943. -then
  38944. +# as_fn_error ERROR [LINENO LOG_FD]
  38945. +# ---------------------------------
  38946. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  38947. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  38948. +# script with status $?, using 1 if that was 0.
  38949. +as_fn_error ()
  38950. +{
  38951. + as_status=$?; test $as_status -eq 0 && as_status=1
  38952. + if test "$3"; then
  38953. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  38954. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  38955. + fi
  38956. + $as_echo "$as_me: error: $1" >&2
  38957. + as_fn_exit $as_status
  38958. +} # as_fn_error
  38959. +
  38960. +
  38961. +# as_fn_set_status STATUS
  38962. +# -----------------------
  38963. +# Set $? to STATUS, without forking.
  38964. +as_fn_set_status ()
  38965. +{
  38966. + return $1
  38967. +} # as_fn_set_status
  38968. +
  38969. +# as_fn_exit STATUS
  38970. +# -----------------
  38971. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  38972. +as_fn_exit ()
  38973. +{
  38974. + set +e
  38975. + as_fn_set_status $1
  38976. + exit $1
  38977. +} # as_fn_exit
  38978. +
  38979. +# as_fn_unset VAR
  38980. +# ---------------
  38981. +# Portably unset VAR.
  38982. +as_fn_unset ()
  38983. +{
  38984. + { eval $1=; unset $1;}
  38985. +}
  38986. +as_unset=as_fn_unset
  38987. +# as_fn_append VAR VALUE
  38988. +# ----------------------
  38989. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  38990. +# advantage of any shell optimizations that allow amortized linear growth over
  38991. +# repeated appends, instead of the typical quadratic growth present in naive
  38992. +# implementations.
  38993. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  38994. + eval 'as_fn_append ()
  38995. + {
  38996. + eval $1+=\$2
  38997. + }'
  38998. +else
  38999. + as_fn_append ()
  39000. + {
  39001. + eval $1=\$$1\$2
  39002. + }
  39003. +fi # as_fn_append
  39004. -# Check whether --with-ogg was given.
  39005. -if test "${with_ogg+set}" = set; then
  39006. - withval=$with_ogg; ogg_prefix="$withval"
  39007. +# as_fn_arith ARG...
  39008. +# ------------------
  39009. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  39010. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  39011. +# must be portable across $(()) and expr.
  39012. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  39013. + eval 'as_fn_arith ()
  39014. + {
  39015. + as_val=$(( $* ))
  39016. + }'
  39017. else
  39018. - ogg_prefix=""
  39019. -fi
  39020. + as_fn_arith ()
  39021. + {
  39022. + as_val=`expr "$@" || test $? -eq 1`
  39023. + }
  39024. +fi # as_fn_arith
  39025. -# Check whether --with-ogg-libraries was given.
  39026. -if test "${with_ogg_libraries+set}" = set; then
  39027. - withval=$with_ogg_libraries; ogg_libraries="$withval"
  39028. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  39029. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  39030. + as_expr=expr
  39031. else
  39032. - ogg_libraries=""
  39033. + as_expr=false
  39034. fi
  39035. -
  39036. -# Check whether --with-ogg-includes was given.
  39037. -if test "${with_ogg_includes+set}" = set; then
  39038. - withval=$with_ogg_includes; ogg_includes="$withval"
  39039. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  39040. + as_basename=basename
  39041. else
  39042. - ogg_includes=""
  39043. + as_basename=false
  39044. fi
  39045. -# Check whether --enable-oggtest was given.
  39046. -if test "${enable_oggtest+set}" = set; then
  39047. - enableval=$enable_oggtest;
  39048. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  39049. + as_dirname=dirname
  39050. else
  39051. - enable_oggtest=yes
  39052. + as_dirname=false
  39053. fi
  39054. +as_me=`$as_basename -- "$0" ||
  39055. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  39056. + X"$0" : 'X\(//\)$' \| \
  39057. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  39058. +$as_echo X/"$0" |
  39059. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  39060. + s//\1/
  39061. + q
  39062. + }
  39063. + /^X\/\(\/\/\)$/{
  39064. + s//\1/
  39065. + q
  39066. + }
  39067. + /^X\/\(\/\).*/{
  39068. + s//\1/
  39069. + q
  39070. + }
  39071. + s/.*/./; q'`
  39072. - if test "x$ogg_libraries" != "x" ; then
  39073. - OGG_LIBS="-L$ogg_libraries"
  39074. - elif test "x$ogg_prefix" != "x" ; then
  39075. - OGG_LIBS="-L$ogg_prefix/lib"
  39076. - elif test "x$prefix" != "xNONE" ; then
  39077. - OGG_LIBS="-L$prefix/lib"
  39078. - fi
  39079. +# Avoid depending upon Character Ranges.
  39080. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  39081. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  39082. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  39083. +as_cr_digits='0123456789'
  39084. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  39085. - OGG_LIBS="$OGG_LIBS -logg"
  39086. +ECHO_C= ECHO_N= ECHO_T=
  39087. +case `echo -n x` in #(((((
  39088. +-n*)
  39089. + case `echo 'xy\c'` in
  39090. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  39091. + xy) ECHO_C='\c';;
  39092. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  39093. + ECHO_T=' ';;
  39094. + esac;;
  39095. +*)
  39096. + ECHO_N='-n';;
  39097. +esac
  39098. - if test "x$ogg_includes" != "x" ; then
  39099. - OGG_CFLAGS="-I$ogg_includes"
  39100. - elif test "x$ogg_prefix" != "x" ; then
  39101. - OGG_CFLAGS="-I$ogg_prefix/include"
  39102. - elif test "x$prefix" != "xNONE"; then
  39103. - OGG_CFLAGS="-I$prefix/include"
  39104. +rm -f conf$$ conf$$.exe conf$$.file
  39105. +if test -d conf$$.dir; then
  39106. + rm -f conf$$.dir/conf$$.file
  39107. +else
  39108. + rm -f conf$$.dir
  39109. + mkdir conf$$.dir 2>/dev/null
  39110. +fi
  39111. +if (echo >conf$$.file) 2>/dev/null; then
  39112. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  39113. + as_ln_s='ln -s'
  39114. + # ... but there are two gotchas:
  39115. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  39116. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  39117. + # In both cases, we have to default to `cp -p'.
  39118. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  39119. + as_ln_s='cp -p'
  39120. + elif ln conf$$.file conf$$ 2>/dev/null; then
  39121. + as_ln_s=ln
  39122. + else
  39123. + as_ln_s='cp -p'
  39124. fi
  39125. -
  39126. - { echo "$as_me:$LINENO: checking for Ogg" >&5
  39127. -echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
  39128. - no_ogg=""
  39129. -
  39130. -
  39131. - if test "x$enable_oggtest" = "xyes" ; then
  39132. - ac_save_CFLAGS="$CFLAGS"
  39133. - ac_save_LIBS="$LIBS"
  39134. - CFLAGS="$CFLAGS $OGG_CFLAGS"
  39135. - LIBS="$LIBS $OGG_LIBS"
  39136. - rm -f conf.oggtest
  39137. - if test "$cross_compiling" = yes; then
  39138. - echo $ac_n "cross compiling; assumed OK... $ac_c"
  39139. else
  39140. - cat >conftest.$ac_ext <<_ACEOF
  39141. -/* confdefs.h. */
  39142. -_ACEOF
  39143. -cat confdefs.h >>conftest.$ac_ext
  39144. -cat >>conftest.$ac_ext <<_ACEOF
  39145. -/* end confdefs.h. */
  39146. + as_ln_s='cp -p'
  39147. +fi
  39148. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  39149. +rmdir conf$$.dir 2>/dev/null
  39150. -#include <stdio.h>
  39151. -#include <stdlib.h>
  39152. -#include <string.h>
  39153. -#include <ogg/ogg.h>
  39154. -int main ()
  39155. +# as_fn_mkdir_p
  39156. +# -------------
  39157. +# Create "$as_dir" as a directory, including parents if necessary.
  39158. +as_fn_mkdir_p ()
  39159. {
  39160. - system("touch conf.oggtest");
  39161. - return 0;
  39162. -}
  39163. +
  39164. + case $as_dir in #(
  39165. + -*) as_dir=./$as_dir;;
  39166. + esac
  39167. + test -d "$as_dir" || eval $as_mkdir_p || {
  39168. + as_dirs=
  39169. + while :; do
  39170. + case $as_dir in #(
  39171. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  39172. + *) as_qdir=$as_dir;;
  39173. + esac
  39174. + as_dirs="'$as_qdir' $as_dirs"
  39175. + as_dir=`$as_dirname -- "$as_dir" ||
  39176. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39177. + X"$as_dir" : 'X\(//\)[^/]' \| \
  39178. + X"$as_dir" : 'X\(//\)$' \| \
  39179. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  39180. +$as_echo X"$as_dir" |
  39181. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39182. + s//\1/
  39183. + q
  39184. + }
  39185. + /^X\(\/\/\)[^/].*/{
  39186. + s//\1/
  39187. + q
  39188. + }
  39189. + /^X\(\/\/\)$/{
  39190. + s//\1/
  39191. + q
  39192. + }
  39193. + /^X\(\/\).*/{
  39194. + s//\1/
  39195. + q
  39196. + }
  39197. + s/.*/./; q'`
  39198. + test -d "$as_dir" && break
  39199. + done
  39200. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  39201. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  39202. -_ACEOF
  39203. -rm -f conftest$ac_exeext
  39204. -if { (ac_try="$ac_link"
  39205. -case "(($ac_try" in
  39206. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39207. - *) ac_try_echo=$ac_try;;
  39208. -esac
  39209. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39210. - (eval "$ac_link") 2>&5
  39211. - ac_status=$?
  39212. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39213. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39214. - { (case "(($ac_try" in
  39215. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39216. - *) ac_try_echo=$ac_try;;
  39217. -esac
  39218. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39219. - (eval "$ac_try") 2>&5
  39220. - ac_status=$?
  39221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39222. - (exit $ac_status); }; }; then
  39223. - :
  39224. +} # as_fn_mkdir_p
  39225. +if mkdir -p . 2>/dev/null; then
  39226. + as_mkdir_p='mkdir -p "$as_dir"'
  39227. else
  39228. - echo "$as_me: program exited with status $ac_status" >&5
  39229. -echo "$as_me: failed program was:" >&5
  39230. -sed 's/^/| /' conftest.$ac_ext >&5
  39231. -
  39232. -( exit $ac_status )
  39233. -no_ogg=yes
  39234. + test -d ./-p && rmdir ./-p
  39235. + as_mkdir_p=false
  39236. fi
  39237. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39238. +
  39239. +if test -x / >/dev/null 2>&1; then
  39240. + as_test_x='test -x'
  39241. +else
  39242. + if ls -dL / >/dev/null 2>&1; then
  39243. + as_ls_L_option=L
  39244. + else
  39245. + as_ls_L_option=
  39246. + fi
  39247. + as_test_x='
  39248. + eval sh -c '\''
  39249. + if test -d "$1"; then
  39250. + test -d "$1/.";
  39251. + else
  39252. + case $1 in #(
  39253. + -*)set "./$1";;
  39254. + esac;
  39255. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  39256. + ???[sx]*):;;*)false;;esac;fi
  39257. + '\'' sh
  39258. + '
  39259. fi
  39260. +as_executable_p=$as_test_x
  39261. +# Sed expression to map a string onto a valid CPP name.
  39262. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  39263. - CFLAGS="$ac_save_CFLAGS"
  39264. - LIBS="$ac_save_LIBS"
  39265. - fi
  39266. +# Sed expression to map a string onto a valid variable name.
  39267. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  39268. - if test "x$no_ogg" = "x" ; then
  39269. - { echo "$as_me:$LINENO: result: yes" >&5
  39270. -echo "${ECHO_T}yes" >&6; }
  39271. - :
  39272. - else
  39273. - { echo "$as_me:$LINENO: result: no" >&5
  39274. -echo "${ECHO_T}no" >&6; }
  39275. - if test -f conf.oggtest ; then
  39276. - :
  39277. - else
  39278. - echo "*** Could not run Ogg test program, checking why..."
  39279. - CFLAGS="$CFLAGS $OGG_CFLAGS"
  39280. - LIBS="$LIBS $OGG_LIBS"
  39281. - cat >conftest.$ac_ext <<_ACEOF
  39282. -/* confdefs.h. */
  39283. -_ACEOF
  39284. -cat confdefs.h >>conftest.$ac_ext
  39285. -cat >>conftest.$ac_ext <<_ACEOF
  39286. -/* end confdefs.h. */
  39287. -#include <stdio.h>
  39288. -#include <ogg/ogg.h>
  39289. +exec 6>&1
  39290. +## ----------------------------------- ##
  39291. +## Main body of $CONFIG_STATUS script. ##
  39292. +## ----------------------------------- ##
  39293. +_ASEOF
  39294. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  39295. -int
  39296. -main ()
  39297. -{
  39298. - return 0;
  39299. - ;
  39300. - return 0;
  39301. -}
  39302. -_ACEOF
  39303. -rm -f conftest.$ac_objext conftest$ac_exeext
  39304. -if { (ac_try="$ac_link"
  39305. -case "(($ac_try" in
  39306. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39307. - *) ac_try_echo=$ac_try;;
  39308. -esac
  39309. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39310. - (eval "$ac_link") 2>conftest.er1
  39311. - ac_status=$?
  39312. - grep -v '^ *+' conftest.er1 >conftest.err
  39313. - rm -f conftest.er1
  39314. - cat conftest.err >&5
  39315. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39316. - (exit $ac_status); } && {
  39317. - test -z "$ac_c_werror_flag" ||
  39318. - test ! -s conftest.err
  39319. - } && test -s conftest$ac_exeext &&
  39320. - $as_test_x conftest$ac_exeext; then
  39321. - echo "*** The test program compiled, but did not run. This usually means"
  39322. - echo "*** that the run-time linker is not finding Ogg or finding the wrong"
  39323. - echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
  39324. - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  39325. - echo "*** to the installed location Also, make sure you have run ldconfig if that"
  39326. - echo "*** is required on your system"
  39327. - echo "***"
  39328. - echo "*** If you have an old version installed, it is best to remove it, although"
  39329. - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  39330. -else
  39331. - echo "$as_me: failed program was:" >&5
  39332. -sed 's/^/| /' conftest.$ac_ext >&5
  39333. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39334. +# Save the log message, to keep $0 and so on meaningful, and to
  39335. +# report actual input values of CONFIG_FILES etc. instead of their
  39336. +# values after options handling.
  39337. +ac_log="
  39338. +This file was extended by $as_me, which was
  39339. +generated by GNU Autoconf 2.65. Invocation command line was
  39340. +
  39341. + CONFIG_FILES = $CONFIG_FILES
  39342. + CONFIG_HEADERS = $CONFIG_HEADERS
  39343. + CONFIG_LINKS = $CONFIG_LINKS
  39344. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  39345. + $ $0 $@
  39346. +
  39347. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  39348. +"
  39349. - echo "*** The test program failed to compile or link. See the file config.log for the"
  39350. - echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
  39351. - echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
  39352. - echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
  39353. -fi
  39354. +_ACEOF
  39355. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39356. - conftest$ac_exeext conftest.$ac_ext
  39357. - CFLAGS="$ac_save_CFLAGS"
  39358. - LIBS="$ac_save_LIBS"
  39359. - fi
  39360. - OGG_CFLAGS=""
  39361. - OGG_LIBS=""
  39362. - { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
  39363. -echo "$as_me: error: must have Ogg installed!" >&2;}
  39364. - { (exit 1); exit 1; }; }
  39365. - fi
  39366. +case $ac_config_files in *"
  39367. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  39368. +esac
  39369. +case $ac_config_headers in *"
  39370. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  39371. +esac
  39372. - rm -f conf.oggtest
  39373. - libs_save=$LIBS
  39374. - LIBS="$OGG_LIBS $VORBIS_LIBS"
  39375. - { echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
  39376. -echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6; }
  39377. -if test "${ac_cv_func_oggpack_writealign+set}" = set; then
  39378. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39379. -else
  39380. - cat >conftest.$ac_ext <<_ACEOF
  39381. -/* confdefs.h. */
  39382. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39383. +# Files that config.status was made for.
  39384. +config_files="$ac_config_files"
  39385. +config_headers="$ac_config_headers"
  39386. +config_commands="$ac_config_commands"
  39387. +
  39388. _ACEOF
  39389. -cat confdefs.h >>conftest.$ac_ext
  39390. -cat >>conftest.$ac_ext <<_ACEOF
  39391. -/* end confdefs.h. */
  39392. -/* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
  39393. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  39394. -#define oggpack_writealign innocuous_oggpack_writealign
  39395. -/* System header to define __stub macros and hopefully few prototypes,
  39396. - which can conflict with char oggpack_writealign (); below.
  39397. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39398. - <limits.h> exists even on freestanding compilers. */
  39399. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39400. +ac_cs_usage="\
  39401. +\`$as_me' instantiates files and other configuration actions
  39402. +from templates according to the current configuration. Unless the files
  39403. +and actions are specified as TAGs, all are instantiated by default.
  39404. -#ifdef __STDC__
  39405. -# include <limits.h>
  39406. -#else
  39407. -# include <assert.h>
  39408. -#endif
  39409. +Usage: $0 [OPTION]... [TAG]...
  39410. -#undef oggpack_writealign
  39411. + -h, --help print this help, then exit
  39412. + -V, --version print version number and configuration settings, then exit
  39413. + --config print configuration, then exit
  39414. + -q, --quiet, --silent
  39415. + do not print progress messages
  39416. + -d, --debug don't remove temporary files
  39417. + --recheck update $as_me by reconfiguring in the same conditions
  39418. + --file=FILE[:TEMPLATE]
  39419. + instantiate the configuration file FILE
  39420. + --header=FILE[:TEMPLATE]
  39421. + instantiate the configuration header FILE
  39422. -/* Override any GCC internal prototype to avoid an error.
  39423. - Use char because int might match the return type of a GCC
  39424. - builtin and then its argument prototype would still apply. */
  39425. -#ifdef __cplusplus
  39426. -extern "C"
  39427. -#endif
  39428. -char oggpack_writealign ();
  39429. -/* The GNU C library defines this for functions which it implements
  39430. - to always fail with ENOSYS. Some functions are actually named
  39431. - something starting with __ and the normal name is an alias. */
  39432. -#if defined __stub_oggpack_writealign || defined __stub___oggpack_writealign
  39433. -choke me
  39434. -#endif
  39435. +Configuration files:
  39436. +$config_files
  39437. +
  39438. +Configuration headers:
  39439. +$config_headers
  39440. +
  39441. +Configuration commands:
  39442. +$config_commands
  39443. +
  39444. +Report bugs to the package provider."
  39445. -int
  39446. -main ()
  39447. -{
  39448. -return oggpack_writealign ();
  39449. - ;
  39450. - return 0;
  39451. -}
  39452. _ACEOF
  39453. -rm -f conftest.$ac_objext conftest$ac_exeext
  39454. -if { (ac_try="$ac_link"
  39455. -case "(($ac_try" in
  39456. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39457. - *) ac_try_echo=$ac_try;;
  39458. -esac
  39459. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39460. - (eval "$ac_link") 2>conftest.er1
  39461. - ac_status=$?
  39462. - grep -v '^ *+' conftest.er1 >conftest.err
  39463. - rm -f conftest.er1
  39464. - cat conftest.err >&5
  39465. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39466. - (exit $ac_status); } && {
  39467. - test -z "$ac_c_werror_flag" ||
  39468. - test ! -s conftest.err
  39469. - } && test -s conftest$ac_exeext &&
  39470. - $as_test_x conftest$ac_exeext; then
  39471. - ac_cv_func_oggpack_writealign=yes
  39472. -else
  39473. - echo "$as_me: failed program was:" >&5
  39474. -sed 's/^/| /' conftest.$ac_ext >&5
  39475. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39476. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  39477. +ac_cs_version="\\
  39478. +config.status
  39479. +configured by $0, generated by GNU Autoconf 2.65,
  39480. + with options \\"\$ac_cs_config\\"
  39481. - ac_cv_func_oggpack_writealign=no
  39482. -fi
  39483. +Copyright (C) 2009 Free Software Foundation, Inc.
  39484. +This config.status script is free software; the Free Software Foundation
  39485. +gives unlimited permission to copy, distribute and modify it."
  39486. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39487. - conftest$ac_exeext conftest.$ac_ext
  39488. -fi
  39489. -{ echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
  39490. -echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6; }
  39491. -if test $ac_cv_func_oggpack_writealign = yes; then
  39492. - :
  39493. -else
  39494. - { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
  39495. -echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
  39496. - { (exit 1); exit 1; }; }
  39497. -fi
  39498. +ac_pwd='$ac_pwd'
  39499. +srcdir='$srcdir'
  39500. +INSTALL='$INSTALL'
  39501. +MKDIR_P='$MKDIR_P'
  39502. +AWK='$AWK'
  39503. +test -n "\$AWK" || AWK=awk
  39504. +_ACEOF
  39505. - LIBS=$libs_save
  39506. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39507. +# The default lists apply if the user does not specify any file.
  39508. +ac_need_defaults=:
  39509. +while test $# != 0
  39510. +do
  39511. + case $1 in
  39512. + --*=*)
  39513. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  39514. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  39515. + ac_shift=:
  39516. + ;;
  39517. + *)
  39518. + ac_option=$1
  39519. + ac_optarg=$2
  39520. + ac_shift=shift
  39521. + ;;
  39522. + esac
  39523. +
  39524. + case $ac_option in
  39525. + # Handling of the options.
  39526. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  39527. + ac_cs_recheck=: ;;
  39528. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  39529. + $as_echo "$ac_cs_version"; exit ;;
  39530. + --config | --confi | --conf | --con | --co | --c )
  39531. + $as_echo "$ac_cs_config"; exit ;;
  39532. + --debug | --debu | --deb | --de | --d | -d )
  39533. + debug=: ;;
  39534. + --file | --fil | --fi | --f )
  39535. + $ac_shift
  39536. + case $ac_optarg in
  39537. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  39538. + esac
  39539. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  39540. + ac_need_defaults=false;;
  39541. + --header | --heade | --head | --hea )
  39542. + $ac_shift
  39543. + case $ac_optarg in
  39544. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  39545. + esac
  39546. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  39547. + ac_need_defaults=false;;
  39548. + --he | --h)
  39549. + # Conflict between --help and --header
  39550. + as_fn_error "ambiguous option: \`$1'
  39551. +Try \`$0 --help' for more information.";;
  39552. + --help | --hel | -h )
  39553. + $as_echo "$ac_cs_usage"; exit ;;
  39554. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  39555. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  39556. + ac_cs_silent=: ;;
  39557. +
  39558. + # This is an error.
  39559. + -*) as_fn_error "unrecognized option: \`$1'
  39560. +Try \`$0 --help' for more information." ;;
  39561. +
  39562. + *) as_fn_append ac_config_targets " $1"
  39563. + ac_need_defaults=false ;;
  39564. +
  39565. + esac
  39566. + shift
  39567. +done
  39568. +
  39569. +ac_configure_extra_args=
  39570. +
  39571. +if $ac_cs_silent; then
  39572. + exec 6>/dev/null
  39573. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  39574. fi
  39575. +_ACEOF
  39576. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39577. +if \$ac_cs_recheck; then
  39578. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  39579. + shift
  39580. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  39581. + CONFIG_SHELL='$SHELL'
  39582. + export CONFIG_SHELL
  39583. + exec "\$@"
  39584. +fi
  39585. -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  39586. -# for constant arguments. Useless!
  39587. -{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
  39588. -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  39589. -if test "${ac_cv_working_alloca_h+set}" = set; then
  39590. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39591. -else
  39592. - cat >conftest.$ac_ext <<_ACEOF
  39593. -/* confdefs.h. */
  39594. _ACEOF
  39595. -cat confdefs.h >>conftest.$ac_ext
  39596. -cat >>conftest.$ac_ext <<_ACEOF
  39597. -/* end confdefs.h. */
  39598. -#include <alloca.h>
  39599. -int
  39600. -main ()
  39601. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39602. +exec 5>>config.log
  39603. {
  39604. -char *p = (char *) alloca (2 * sizeof (int));
  39605. - if (p) return 0;
  39606. - ;
  39607. - return 0;
  39608. -}
  39609. + echo
  39610. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  39611. +## Running $as_me. ##
  39612. +_ASBOX
  39613. + $as_echo "$ac_log"
  39614. +} >&5
  39615. +
  39616. _ACEOF
  39617. -rm -f conftest.$ac_objext conftest$ac_exeext
  39618. -if { (ac_try="$ac_link"
  39619. -case "(($ac_try" in
  39620. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39621. - *) ac_try_echo=$ac_try;;
  39622. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39623. +#
  39624. +# INIT-COMMANDS
  39625. +#
  39626. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  39627. +
  39628. +
  39629. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  39630. +# if CDPATH is set.
  39631. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  39632. +
  39633. +sed_quote_subst='$sed_quote_subst'
  39634. +double_quote_subst='$double_quote_subst'
  39635. +delay_variable_subst='$delay_variable_subst'
  39636. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  39637. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  39638. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  39639. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  39640. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  39641. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  39642. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  39643. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  39644. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  39645. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  39646. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  39647. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  39648. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  39649. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  39650. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  39651. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  39652. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  39653. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  39654. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  39655. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  39656. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  39657. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  39658. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  39659. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  39660. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  39661. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  39662. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39663. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39664. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  39665. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  39666. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  39667. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  39668. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  39669. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  39670. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  39671. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39672. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39673. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39674. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  39675. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  39676. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  39677. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  39678. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  39679. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  39680. +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"`'
  39681. +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"`'
  39682. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  39683. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  39684. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  39685. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  39686. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39687. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  39688. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  39689. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  39690. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  39691. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  39692. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  39693. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  39694. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  39695. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  39696. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  39697. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  39698. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39699. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39700. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  39701. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  39702. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39703. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39704. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  39705. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39706. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39707. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39708. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39709. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39710. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39711. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  39712. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39713. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  39714. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39715. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  39716. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  39717. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  39718. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  39719. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  39720. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39721. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  39722. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  39723. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  39724. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  39725. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  39726. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39727. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  39728. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  39729. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39730. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39731. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  39732. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  39733. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  39734. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  39735. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39736. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  39737. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  39738. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39739. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39740. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39741. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39742. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39743. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  39744. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  39745. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  39746. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39747. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  39748. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  39749. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  39750. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  39751. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  39752. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  39753. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  39754. +
  39755. +LTCC='$LTCC'
  39756. +LTCFLAGS='$LTCFLAGS'
  39757. +compiler='$compiler_DEFAULT'
  39758. +
  39759. +# Quote evaled strings.
  39760. +for var in SED \
  39761. +GREP \
  39762. +EGREP \
  39763. +FGREP \
  39764. +LD \
  39765. +NM \
  39766. +LN_S \
  39767. +lt_SP2NL \
  39768. +lt_NL2SP \
  39769. +reload_flag \
  39770. +OBJDUMP \
  39771. +deplibs_check_method \
  39772. +file_magic_cmd \
  39773. +AR \
  39774. +AR_FLAGS \
  39775. +STRIP \
  39776. +RANLIB \
  39777. +CC \
  39778. +CFLAGS \
  39779. +compiler \
  39780. +lt_cv_sys_global_symbol_pipe \
  39781. +lt_cv_sys_global_symbol_to_cdecl \
  39782. +lt_cv_sys_global_symbol_to_c_name_address \
  39783. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  39784. +SHELL \
  39785. +ECHO \
  39786. +lt_prog_compiler_no_builtin_flag \
  39787. +lt_prog_compiler_wl \
  39788. +lt_prog_compiler_pic \
  39789. +lt_prog_compiler_static \
  39790. +lt_cv_prog_compiler_c_o \
  39791. +need_locks \
  39792. +DSYMUTIL \
  39793. +NMEDIT \
  39794. +LIPO \
  39795. +OTOOL \
  39796. +OTOOL64 \
  39797. +shrext_cmds \
  39798. +export_dynamic_flag_spec \
  39799. +whole_archive_flag_spec \
  39800. +compiler_needs_object \
  39801. +with_gnu_ld \
  39802. +allow_undefined_flag \
  39803. +no_undefined_flag \
  39804. +hardcode_libdir_flag_spec \
  39805. +hardcode_libdir_flag_spec_ld \
  39806. +hardcode_libdir_separator \
  39807. +fix_srcfile_path \
  39808. +exclude_expsyms \
  39809. +include_expsyms \
  39810. +file_list_spec \
  39811. +variables_saved_for_relink \
  39812. +libname_spec \
  39813. +library_names_spec \
  39814. +soname_spec \
  39815. +finish_eval \
  39816. +old_striplib \
  39817. +striplib; do
  39818. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  39819. + *[\\\\\\\`\\"\\\$]*)
  39820. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  39821. + ;;
  39822. + *)
  39823. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39824. + ;;
  39825. + esac
  39826. +done
  39827. +
  39828. +# Double-quote double-evaled strings.
  39829. +for var in reload_cmds \
  39830. +old_postinstall_cmds \
  39831. +old_postuninstall_cmds \
  39832. +old_archive_cmds \
  39833. +extract_expsyms_cmds \
  39834. +old_archive_from_new_cmds \
  39835. +old_archive_from_expsyms_cmds \
  39836. +archive_cmds \
  39837. +archive_expsym_cmds \
  39838. +module_cmds \
  39839. +module_expsym_cmds \
  39840. +export_symbols_cmds \
  39841. +prelink_cmds \
  39842. +postinstall_cmds \
  39843. +postuninstall_cmds \
  39844. +finish_cmds \
  39845. +sys_lib_search_path_spec \
  39846. +sys_lib_dlsearch_path_spec; do
  39847. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  39848. + *[\\\\\\\`\\"\\\$]*)
  39849. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  39850. + ;;
  39851. + *)
  39852. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  39853. + ;;
  39854. + esac
  39855. +done
  39856. +
  39857. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  39858. +case \$lt_ECHO in
  39859. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  39860. + ;;
  39861. esac
  39862. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39863. - (eval "$ac_link") 2>conftest.er1
  39864. - ac_status=$?
  39865. - grep -v '^ *+' conftest.er1 >conftest.err
  39866. - rm -f conftest.er1
  39867. - cat conftest.err >&5
  39868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39869. - (exit $ac_status); } && {
  39870. - test -z "$ac_c_werror_flag" ||
  39871. - test ! -s conftest.err
  39872. - } && test -s conftest$ac_exeext &&
  39873. - $as_test_x conftest$ac_exeext; then
  39874. - ac_cv_working_alloca_h=yes
  39875. -else
  39876. - echo "$as_me: failed program was:" >&5
  39877. -sed 's/^/| /' conftest.$ac_ext >&5
  39878. - ac_cv_working_alloca_h=no
  39879. -fi
  39880. +ac_aux_dir='$ac_aux_dir'
  39881. +xsi_shell='$xsi_shell'
  39882. +lt_shell_append='$lt_shell_append'
  39883. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39884. - conftest$ac_exeext conftest.$ac_ext
  39885. +# See if we are running on zsh, and set the options which allow our
  39886. +# commands through without removal of \ escapes INIT.
  39887. +if test -n "\${ZSH_VERSION+set}" ; then
  39888. + setopt NO_GLOB_SUBST
  39889. fi
  39890. -{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  39891. -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  39892. -if test $ac_cv_working_alloca_h = yes; then
  39893. -cat >>confdefs.h <<\_ACEOF
  39894. -#define HAVE_ALLOCA_H 1
  39895. -_ACEOF
  39896. -fi
  39897. + PACKAGE='$PACKAGE'
  39898. + VERSION='$VERSION'
  39899. + TIMESTAMP='$TIMESTAMP'
  39900. + RM='$RM'
  39901. + ofile='$ofile'
  39902. +
  39903. +
  39904. -{ echo "$as_me:$LINENO: checking for alloca" >&5
  39905. -echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  39906. -if test "${ac_cv_func_alloca_works+set}" = set; then
  39907. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39908. -else
  39909. - cat >conftest.$ac_ext <<_ACEOF
  39910. -/* confdefs.h. */
  39911. -_ACEOF
  39912. -cat confdefs.h >>conftest.$ac_ext
  39913. -cat >>conftest.$ac_ext <<_ACEOF
  39914. -/* end confdefs.h. */
  39915. -#ifdef __GNUC__
  39916. -# define alloca __builtin_alloca
  39917. -#else
  39918. -# ifdef _MSC_VER
  39919. -# include <malloc.h>
  39920. -# define alloca _alloca
  39921. -# else
  39922. -# ifdef HAVE_ALLOCA_H
  39923. -# include <alloca.h>
  39924. -# else
  39925. -# ifdef _AIX
  39926. - #pragma alloca
  39927. -# else
  39928. -# ifndef alloca /* predefined by HP cc +Olibcalls */
  39929. -char *alloca ();
  39930. -# endif
  39931. -# endif
  39932. -# endif
  39933. -# endif
  39934. -#endif
  39935. -int
  39936. -main ()
  39937. -{
  39938. -char *p = (char *) alloca (1);
  39939. - if (p) return 0;
  39940. - ;
  39941. - return 0;
  39942. -}
  39943. _ACEOF
  39944. -rm -f conftest.$ac_objext conftest$ac_exeext
  39945. -if { (ac_try="$ac_link"
  39946. -case "(($ac_try" in
  39947. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39948. - *) ac_try_echo=$ac_try;;
  39949. -esac
  39950. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  39951. - (eval "$ac_link") 2>conftest.er1
  39952. - ac_status=$?
  39953. - grep -v '^ *+' conftest.er1 >conftest.err
  39954. - rm -f conftest.er1
  39955. - cat conftest.err >&5
  39956. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39957. - (exit $ac_status); } && {
  39958. - test -z "$ac_c_werror_flag" ||
  39959. - test ! -s conftest.err
  39960. - } && test -s conftest$ac_exeext &&
  39961. - $as_test_x conftest$ac_exeext; then
  39962. - ac_cv_func_alloca_works=yes
  39963. -else
  39964. - echo "$as_me: failed program was:" >&5
  39965. -sed 's/^/| /' conftest.$ac_ext >&5
  39966. - ac_cv_func_alloca_works=no
  39967. -fi
  39968. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39969. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  39970. - conftest$ac_exeext conftest.$ac_ext
  39971. -fi
  39972. -{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  39973. -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  39974. +# Handling of arguments.
  39975. +for ac_config_target in $ac_config_targets
  39976. +do
  39977. + case $ac_config_target in
  39978. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  39979. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  39980. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  39981. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  39982. + "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  39983. + "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
  39984. + "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
  39985. + "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
  39986. + "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
  39987. + "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
  39988. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  39989. + "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
  39990. + "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
  39991. + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  39992. + "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
  39993. + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  39994. + "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
  39995. + "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
  39996. + "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
  39997. + "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
  39998. + "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
  39999. + "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
  40000. + "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
  40001. + "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
  40002. -if test $ac_cv_func_alloca_works = yes; then
  40003. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  40004. + esac
  40005. +done
  40006. -cat >>confdefs.h <<\_ACEOF
  40007. -#define HAVE_ALLOCA 1
  40008. -_ACEOF
  40009. -else
  40010. - # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  40011. -# that cause trouble. Some versions do not even contain alloca or
  40012. -# contain a buggy version. If you still want to use their alloca,
  40013. -# use ar to extract alloca.o from them instead of compiling alloca.c.
  40014. +# If the user did not use the arguments to specify the items to instantiate,
  40015. +# then the envvar interface is used. Set only those that are not.
  40016. +# We use the long form for the default assignment because of an extremely
  40017. +# bizarre bug on SunOS 4.1.3.
  40018. +if $ac_need_defaults; then
  40019. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  40020. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  40021. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  40022. +fi
  40023. -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  40024. +# Have a temporary directory for convenience. Make it in the build tree
  40025. +# simply because there is no reason against having it here, and in addition,
  40026. +# creating and moving files from /tmp can sometimes cause problems.
  40027. +# Hook for its removal unless debugging.
  40028. +# Note that there is a small window in which the directory will not be cleaned:
  40029. +# after its creation but before its name has been assigned to `$tmp'.
  40030. +$debug ||
  40031. +{
  40032. + tmp=
  40033. + trap 'exit_status=$?
  40034. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  40035. +' 0
  40036. + trap 'as_fn_exit 1' 1 2 13 15
  40037. +}
  40038. +# Create a (secure) tmp directory for tmp files.
  40039. -cat >>confdefs.h <<\_ACEOF
  40040. -#define C_ALLOCA 1
  40041. -_ACEOF
  40042. +{
  40043. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  40044. + test -n "$tmp" && test -d "$tmp"
  40045. +} ||
  40046. +{
  40047. + tmp=./conf$$-$RANDOM
  40048. + (umask 077 && mkdir "$tmp")
  40049. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  40050. +# Set up the scripts for CONFIG_FILES section.
  40051. +# No need to generate them if there are no CONFIG_FILES.
  40052. +# This happens for instance with `./config.status config.h'.
  40053. +if test -n "$CONFIG_FILES"; then
  40054. -{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  40055. -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  40056. -if test "${ac_cv_os_cray+set}" = set; then
  40057. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40058. -else
  40059. - cat >conftest.$ac_ext <<_ACEOF
  40060. -/* confdefs.h. */
  40061. -_ACEOF
  40062. -cat confdefs.h >>conftest.$ac_ext
  40063. -cat >>conftest.$ac_ext <<_ACEOF
  40064. -/* end confdefs.h. */
  40065. -#if defined CRAY && ! defined CRAY2
  40066. -webecray
  40067. -#else
  40068. -wenotbecray
  40069. -#endif
  40070. -_ACEOF
  40071. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40072. - $EGREP "webecray" >/dev/null 2>&1; then
  40073. - ac_cv_os_cray=yes
  40074. +ac_cr=`echo X | tr X '\015'`
  40075. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  40076. +# But we know of no other shell where ac_cr would be empty at this
  40077. +# point, so we can use a bashism as a fallback.
  40078. +if test "x$ac_cr" = x; then
  40079. + eval ac_cr=\$\'\\r\'
  40080. +fi
  40081. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  40082. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  40083. + ac_cs_awk_cr='\r'
  40084. else
  40085. - ac_cv_os_cray=no
  40086. + ac_cs_awk_cr=$ac_cr
  40087. fi
  40088. -rm -f conftest*
  40089. -fi
  40090. -{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  40091. -echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  40092. -if test $ac_cv_os_cray = yes; then
  40093. - for ac_func in _getb67 GETB67 getb67; do
  40094. - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40095. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  40096. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  40097. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  40098. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40099. -else
  40100. - cat >conftest.$ac_ext <<_ACEOF
  40101. -/* confdefs.h. */
  40102. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  40103. _ACEOF
  40104. -cat confdefs.h >>conftest.$ac_ext
  40105. -cat >>conftest.$ac_ext <<_ACEOF
  40106. -/* end confdefs.h. */
  40107. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  40108. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  40109. -#define $ac_func innocuous_$ac_func
  40110. -/* System header to define __stub macros and hopefully few prototypes,
  40111. - which can conflict with char $ac_func (); below.
  40112. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  40113. - <limits.h> exists even on freestanding compilers. */
  40114. -#ifdef __STDC__
  40115. -# include <limits.h>
  40116. -#else
  40117. -# include <assert.h>
  40118. -#endif
  40119. +{
  40120. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  40121. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  40122. + echo "_ACEOF"
  40123. +} >conf$$subs.sh ||
  40124. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  40125. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  40126. +ac_delim='%!_!# '
  40127. +for ac_last_try in false false false false false :; do
  40128. + . ./conf$$subs.sh ||
  40129. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  40130. -#undef $ac_func
  40131. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  40132. + if test $ac_delim_n = $ac_delim_num; then
  40133. + break
  40134. + elif $ac_last_try; then
  40135. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  40136. + else
  40137. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  40138. + fi
  40139. +done
  40140. +rm -f conf$$subs.sh
  40141. -/* Override any GCC internal prototype to avoid an error.
  40142. - Use char because int might match the return type of a GCC
  40143. - builtin and then its argument prototype would still apply. */
  40144. -#ifdef __cplusplus
  40145. -extern "C"
  40146. -#endif
  40147. -char $ac_func ();
  40148. -/* The GNU C library defines this for functions which it implements
  40149. - to always fail with ENOSYS. Some functions are actually named
  40150. - something starting with __ and the normal name is an alias. */
  40151. -#if defined __stub_$ac_func || defined __stub___$ac_func
  40152. -choke me
  40153. -#endif
  40154. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40155. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  40156. +_ACEOF
  40157. +sed -n '
  40158. +h
  40159. +s/^/S["/; s/!.*/"]=/
  40160. +p
  40161. +g
  40162. +s/^[^!]*!//
  40163. +:repl
  40164. +t repl
  40165. +s/'"$ac_delim"'$//
  40166. +t delim
  40167. +:nl
  40168. +h
  40169. +s/\(.\{148\}\)..*/\1/
  40170. +t more1
  40171. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  40172. +p
  40173. +n
  40174. +b repl
  40175. +:more1
  40176. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  40177. +p
  40178. +g
  40179. +s/.\{148\}//
  40180. +t nl
  40181. +:delim
  40182. +h
  40183. +s/\(.\{148\}\)..*/\1/
  40184. +t more2
  40185. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  40186. +p
  40187. +b
  40188. +:more2
  40189. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  40190. +p
  40191. +g
  40192. +s/.\{148\}//
  40193. +t delim
  40194. +' <conf$$subs.awk | sed '
  40195. +/^[^""]/{
  40196. + N
  40197. + s/\n//
  40198. +}
  40199. +' >>$CONFIG_STATUS || ac_write_fail=1
  40200. +rm -f conf$$subs.awk
  40201. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40202. +_ACAWK
  40203. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  40204. + for (key in S) S_is_set[key] = 1
  40205. + FS = ""
  40206. -int
  40207. -main ()
  40208. +}
  40209. {
  40210. -return $ac_func ();
  40211. - ;
  40212. - return 0;
  40213. + line = $ 0
  40214. + nfields = split(line, field, "@")
  40215. + substed = 0
  40216. + len = length(field[1])
  40217. + for (i = 2; i < nfields; i++) {
  40218. + key = field[i]
  40219. + keylen = length(key)
  40220. + if (S_is_set[key]) {
  40221. + value = S[key]
  40222. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  40223. + len += length(value) + length(field[++i])
  40224. + substed = 1
  40225. + } else
  40226. + len += 1 + keylen
  40227. + }
  40228. +
  40229. + print line
  40230. }
  40231. +
  40232. +_ACAWK
  40233. _ACEOF
  40234. -rm -f conftest.$ac_objext conftest$ac_exeext
  40235. -if { (ac_try="$ac_link"
  40236. -case "(($ac_try" in
  40237. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40238. - *) ac_try_echo=$ac_try;;
  40239. -esac
  40240. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40241. - (eval "$ac_link") 2>conftest.er1
  40242. - ac_status=$?
  40243. - grep -v '^ *+' conftest.er1 >conftest.err
  40244. - rm -f conftest.er1
  40245. - cat conftest.err >&5
  40246. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40247. - (exit $ac_status); } && {
  40248. - test -z "$ac_c_werror_flag" ||
  40249. - test ! -s conftest.err
  40250. - } && test -s conftest$ac_exeext &&
  40251. - $as_test_x conftest$ac_exeext; then
  40252. - eval "$as_ac_var=yes"
  40253. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40254. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  40255. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  40256. else
  40257. - echo "$as_me: failed program was:" >&5
  40258. -sed 's/^/| /' conftest.$ac_ext >&5
  40259. + cat
  40260. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  40261. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  40262. +_ACEOF
  40263. - eval "$as_ac_var=no"
  40264. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  40265. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  40266. +# trailing colons and then remove the whole line if VPATH becomes empty
  40267. +# (actually we leave an empty line to preserve line numbers).
  40268. +if test "x$srcdir" = x.; then
  40269. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  40270. +s/:*\$(srcdir):*/:/
  40271. +s/:*\${srcdir}:*/:/
  40272. +s/:*@srcdir@:*/:/
  40273. +s/^\([^=]*=[ ]*\):*/\1/
  40274. +s/:*$//
  40275. +s/^[^=]*=[ ]*$//
  40276. +}'
  40277. fi
  40278. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  40279. - conftest$ac_exeext conftest.$ac_ext
  40280. -fi
  40281. -ac_res=`eval echo '${'$as_ac_var'}'`
  40282. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  40283. -echo "${ECHO_T}$ac_res" >&6; }
  40284. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  40285. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40286. +fi # test -n "$CONFIG_FILES"
  40287. -cat >>confdefs.h <<_ACEOF
  40288. -#define CRAY_STACKSEG_END $ac_func
  40289. +# Set up the scripts for CONFIG_HEADERS section.
  40290. +# No need to generate them if there are no CONFIG_HEADERS.
  40291. +# This happens for instance with `./config.status Makefile'.
  40292. +if test -n "$CONFIG_HEADERS"; then
  40293. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  40294. +BEGIN {
  40295. _ACEOF
  40296. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  40297. +# here-document in config.status, that substitutes the proper values into
  40298. +# config.h.in to produce config.h.
  40299. +
  40300. +# Create a delimiter string that does not exist in confdefs.h, to ease
  40301. +# handling of long lines.
  40302. +ac_delim='%!_!# '
  40303. +for ac_last_try in false false :; do
  40304. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  40305. + if test -z "$ac_t"; then
  40306. break
  40307. -fi
  40308. + elif $ac_last_try; then
  40309. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  40310. + else
  40311. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  40312. + fi
  40313. +done
  40314. - done
  40315. -fi
  40316. +# For the awk script, D is an array of macro values keyed by name,
  40317. +# likewise P contains macro parameters if any. Preserve backslash
  40318. +# newline sequences.
  40319. -{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  40320. -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  40321. -if test "${ac_cv_c_stack_direction+set}" = set; then
  40322. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40323. -else
  40324. - if test "$cross_compiling" = yes; then
  40325. - ac_cv_c_stack_direction=0
  40326. -else
  40327. - cat >conftest.$ac_ext <<_ACEOF
  40328. -/* confdefs.h. */
  40329. -_ACEOF
  40330. -cat confdefs.h >>conftest.$ac_ext
  40331. -cat >>conftest.$ac_ext <<_ACEOF
  40332. -/* end confdefs.h. */
  40333. -$ac_includes_default
  40334. -int
  40335. -find_stack_direction ()
  40336. -{
  40337. - static char *addr = 0;
  40338. - auto char dummy;
  40339. - if (addr == 0)
  40340. - {
  40341. - addr = &dummy;
  40342. - return find_stack_direction ();
  40343. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  40344. +sed -n '
  40345. +s/.\{148\}/&'"$ac_delim"'/g
  40346. +t rset
  40347. +:rset
  40348. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  40349. +t def
  40350. +d
  40351. +:def
  40352. +s/\\$//
  40353. +t bsnl
  40354. +s/["\\]/\\&/g
  40355. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  40356. +D["\1"]=" \3"/p
  40357. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  40358. +d
  40359. +:bsnl
  40360. +s/["\\]/\\&/g
  40361. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  40362. +D["\1"]=" \3\\\\\\n"\\/p
  40363. +t cont
  40364. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  40365. +t cont
  40366. +d
  40367. +:cont
  40368. +n
  40369. +s/.\{148\}/&'"$ac_delim"'/g
  40370. +t clear
  40371. +:clear
  40372. +s/\\$//
  40373. +t bsnlc
  40374. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  40375. +d
  40376. +:bsnlc
  40377. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  40378. +b cont
  40379. +' <confdefs.h | sed '
  40380. +s/'"$ac_delim"'/"\\\
  40381. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  40382. +
  40383. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40384. + for (key in D) D_is_set[key] = 1
  40385. + FS = ""
  40386. +}
  40387. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  40388. + line = \$ 0
  40389. + split(line, arg, " ")
  40390. + if (arg[1] == "#") {
  40391. + defundef = arg[2]
  40392. + mac1 = arg[3]
  40393. + } else {
  40394. + defundef = substr(arg[1], 2)
  40395. + mac1 = arg[2]
  40396. + }
  40397. + split(mac1, mac2, "(") #)
  40398. + macro = mac2[1]
  40399. + prefix = substr(line, 1, index(line, defundef) - 1)
  40400. + if (D_is_set[macro]) {
  40401. + # Preserve the white space surrounding the "#".
  40402. + print prefix "define", macro P[macro] D[macro]
  40403. + next
  40404. + } else {
  40405. + # Replace #undef with comments. This is necessary, for example,
  40406. + # in the case of _POSIX_SOURCE, which is predefined and required
  40407. + # on some systems where configure will not decide to define it.
  40408. + if (defundef == "undef") {
  40409. + print "/*", prefix defundef, macro, "*/"
  40410. + next
  40411. }
  40412. - else
  40413. - return (&dummy > addr) ? 1 : -1;
  40414. -}
  40415. -
  40416. -int
  40417. -main ()
  40418. -{
  40419. - return find_stack_direction () < 0;
  40420. + }
  40421. }
  40422. +{ print }
  40423. +_ACAWK
  40424. _ACEOF
  40425. -rm -f conftest$ac_exeext
  40426. -if { (ac_try="$ac_link"
  40427. -case "(($ac_try" in
  40428. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40429. - *) ac_try_echo=$ac_try;;
  40430. -esac
  40431. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40432. - (eval "$ac_link") 2>&5
  40433. - ac_status=$?
  40434. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40435. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40436. - { (case "(($ac_try" in
  40437. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40438. - *) ac_try_echo=$ac_try;;
  40439. -esac
  40440. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40441. - (eval "$ac_try") 2>&5
  40442. - ac_status=$?
  40443. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40444. - (exit $ac_status); }; }; then
  40445. - ac_cv_c_stack_direction=1
  40446. -else
  40447. - echo "$as_me: program exited with status $ac_status" >&5
  40448. -echo "$as_me: failed program was:" >&5
  40449. -sed 's/^/| /' conftest.$ac_ext >&5
  40450. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40451. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  40452. +fi # test -n "$CONFIG_HEADERS"
  40453. -( exit $ac_status )
  40454. -ac_cv_c_stack_direction=-1
  40455. -fi
  40456. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40457. -fi
  40458. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  40459. +shift
  40460. +for ac_tag
  40461. +do
  40462. + case $ac_tag in
  40463. + :[FHLC]) ac_mode=$ac_tag; continue;;
  40464. + esac
  40465. + case $ac_mode$ac_tag in
  40466. + :[FHL]*:*);;
  40467. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  40468. + :[FH]-) ac_tag=-:-;;
  40469. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  40470. + esac
  40471. + ac_save_IFS=$IFS
  40472. + IFS=:
  40473. + set x $ac_tag
  40474. + IFS=$ac_save_IFS
  40475. + shift
  40476. + ac_file=$1
  40477. + shift
  40478. +
  40479. + case $ac_mode in
  40480. + :L) ac_source=$1;;
  40481. + :[FH])
  40482. + ac_file_inputs=
  40483. + for ac_f
  40484. + do
  40485. + case $ac_f in
  40486. + -) ac_f="$tmp/stdin";;
  40487. + *) # Look for the file first in the build tree, then in the source tree
  40488. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  40489. + # because $ac_f cannot contain `:'.
  40490. + test -f "$ac_f" ||
  40491. + case $ac_f in
  40492. + [\\/$]*) false;;
  40493. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  40494. + esac ||
  40495. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  40496. + esac
  40497. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  40498. + as_fn_append ac_file_inputs " '$ac_f'"
  40499. + done
  40500. +
  40501. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  40502. + # use $as_me), people would be surprised to read:
  40503. + # /* config.h. Generated by config.status. */
  40504. + configure_input='Generated from '`
  40505. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  40506. + `' by configure.'
  40507. + if test x"$ac_file" != x-; then
  40508. + configure_input="$ac_file. $configure_input"
  40509. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  40510. +$as_echo "$as_me: creating $ac_file" >&6;}
  40511. + fi
  40512. + # Neutralize special characters interpreted by sed in replacement strings.
  40513. + case $configure_input in #(
  40514. + *\&* | *\|* | *\\* )
  40515. + ac_sed_conf_input=`$as_echo "$configure_input" |
  40516. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  40517. + *) ac_sed_conf_input=$configure_input;;
  40518. + esac
  40519. +
  40520. + case $ac_tag in
  40521. + *:-:* | *:-) cat >"$tmp/stdin" \
  40522. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  40523. + esac
  40524. + ;;
  40525. + esac
  40526. +
  40527. + ac_dir=`$as_dirname -- "$ac_file" ||
  40528. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40529. + X"$ac_file" : 'X\(//\)[^/]' \| \
  40530. + X"$ac_file" : 'X\(//\)$' \| \
  40531. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  40532. +$as_echo X"$ac_file" |
  40533. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40534. + s//\1/
  40535. + q
  40536. + }
  40537. + /^X\(\/\/\)[^/].*/{
  40538. + s//\1/
  40539. + q
  40540. + }
  40541. + /^X\(\/\/\)$/{
  40542. + s//\1/
  40543. + q
  40544. + }
  40545. + /^X\(\/\).*/{
  40546. + s//\1/
  40547. + q
  40548. + }
  40549. + s/.*/./; q'`
  40550. + as_dir="$ac_dir"; as_fn_mkdir_p
  40551. + ac_builddir=.
  40552. -fi
  40553. -{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  40554. -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  40555. +case "$ac_dir" in
  40556. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40557. +*)
  40558. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  40559. + # A ".." for each directory in $ac_dir_suffix.
  40560. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  40561. + case $ac_top_builddir_sub in
  40562. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40563. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  40564. + esac ;;
  40565. +esac
  40566. +ac_abs_top_builddir=$ac_pwd
  40567. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  40568. +# for backward compatibility:
  40569. +ac_top_builddir=$ac_top_build_prefix
  40570. -cat >>confdefs.h <<_ACEOF
  40571. -#define STACK_DIRECTION $ac_cv_c_stack_direction
  40572. -_ACEOF
  40573. +case $srcdir in
  40574. + .) # We are building in place.
  40575. + ac_srcdir=.
  40576. + ac_top_srcdir=$ac_top_builddir_sub
  40577. + ac_abs_top_srcdir=$ac_pwd ;;
  40578. + [\\/]* | ?:[\\/]* ) # Absolute name.
  40579. + ac_srcdir=$srcdir$ac_dir_suffix;
  40580. + ac_top_srcdir=$srcdir
  40581. + ac_abs_top_srcdir=$srcdir ;;
  40582. + *) # Relative name.
  40583. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  40584. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  40585. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  40586. +esac
  40587. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  40588. -fi
  40589. + case $ac_mode in
  40590. + :F)
  40591. + #
  40592. + # CONFIG_FILE
  40593. + #
  40594. -{ echo "$as_me:$LINENO: checking for working memcmp" >&5
  40595. -echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  40596. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  40597. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40598. -else
  40599. - if test "$cross_compiling" = yes; then
  40600. - ac_cv_func_memcmp_working=no
  40601. -else
  40602. - cat >conftest.$ac_ext <<_ACEOF
  40603. -/* confdefs.h. */
  40604. + case $INSTALL in
  40605. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  40606. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  40607. + esac
  40608. + ac_MKDIR_P=$MKDIR_P
  40609. + case $MKDIR_P in
  40610. + [\\/$]* | ?:[\\/]* ) ;;
  40611. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  40612. + esac
  40613. _ACEOF
  40614. -cat confdefs.h >>conftest.$ac_ext
  40615. -cat >>conftest.$ac_ext <<_ACEOF
  40616. -/* end confdefs.h. */
  40617. -$ac_includes_default
  40618. -int
  40619. -main ()
  40620. -{
  40621. -
  40622. - /* Some versions of memcmp are not 8-bit clean. */
  40623. - char c0 = '\100', c1 = '\200', c2 = '\201';
  40624. - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  40625. - return 1;
  40626. -
  40627. - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  40628. - or more and with at least one buffer not starting on a 4-byte boundary.
  40629. - William Lewis provided this test program. */
  40630. - {
  40631. - char foo[21];
  40632. - char bar[21];
  40633. - int i;
  40634. - for (i = 0; i < 4; i++)
  40635. - {
  40636. - char *a = foo + i;
  40637. - char *b = bar + i;
  40638. - strcpy (a, "--------01111111");
  40639. - strcpy (b, "--------10000000");
  40640. - if (memcmp (a, b, 16) >= 0)
  40641. - return 1;
  40642. - }
  40643. - return 0;
  40644. - }
  40645. - ;
  40646. - return 0;
  40647. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40648. +# If the template does not know about datarootdir, expand it.
  40649. +# FIXME: This hack should be removed a few years after 2.60.
  40650. +ac_datarootdir_hack=; ac_datarootdir_seen=
  40651. +ac_sed_dataroot='
  40652. +/datarootdir/ {
  40653. + p
  40654. + q
  40655. }
  40656. +/@datadir@/p
  40657. +/@docdir@/p
  40658. +/@infodir@/p
  40659. +/@localedir@/p
  40660. +/@mandir@/p'
  40661. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  40662. +*datarootdir*) ac_datarootdir_seen=yes;;
  40663. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  40664. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  40665. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  40666. _ACEOF
  40667. -rm -f conftest$ac_exeext
  40668. -if { (ac_try="$ac_link"
  40669. -case "(($ac_try" in
  40670. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40671. - *) ac_try_echo=$ac_try;;
  40672. -esac
  40673. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40674. - (eval "$ac_link") 2>&5
  40675. - ac_status=$?
  40676. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40677. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40678. - { (case "(($ac_try" in
  40679. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  40680. - *) ac_try_echo=$ac_try;;
  40681. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40682. + ac_datarootdir_hack='
  40683. + s&@datadir@&$datadir&g
  40684. + s&@docdir@&$docdir&g
  40685. + s&@infodir@&$infodir&g
  40686. + s&@localedir@&$localedir&g
  40687. + s&@mandir@&$mandir&g
  40688. + s&\\\${datarootdir}&$datarootdir&g' ;;
  40689. esac
  40690. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  40691. - (eval "$ac_try") 2>&5
  40692. - ac_status=$?
  40693. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40694. - (exit $ac_status); }; }; then
  40695. - ac_cv_func_memcmp_working=yes
  40696. -else
  40697. - echo "$as_me: program exited with status $ac_status" >&5
  40698. -echo "$as_me: failed program was:" >&5
  40699. -sed 's/^/| /' conftest.$ac_ext >&5
  40700. +_ACEOF
  40701. -( exit $ac_status )
  40702. -ac_cv_func_memcmp_working=no
  40703. -fi
  40704. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40705. -fi
  40706. +# Neutralize VPATH when `$srcdir' = `.'.
  40707. +# Shell code in configure.ac might set extrasub.
  40708. +# FIXME: do we really want to maintain this feature?
  40709. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40710. +ac_sed_extra="$ac_vpsub
  40711. +$extrasub
  40712. +_ACEOF
  40713. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40714. +:t
  40715. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  40716. +s|@configure_input@|$ac_sed_conf_input|;t t
  40717. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  40718. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  40719. +s&@srcdir@&$ac_srcdir&;t t
  40720. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  40721. +s&@top_srcdir@&$ac_top_srcdir&;t t
  40722. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  40723. +s&@builddir@&$ac_builddir&;t t
  40724. +s&@abs_builddir@&$ac_abs_builddir&;t t
  40725. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  40726. +s&@INSTALL@&$ac_INSTALL&;t t
  40727. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  40728. +$ac_datarootdir_hack
  40729. +"
  40730. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  40731. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  40732. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  40733. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  40734. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  40735. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40736. +which seems to be undefined. Please make sure it is defined." >&5
  40737. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40738. +which seems to be undefined. Please make sure it is defined." >&2;}
  40739. -fi
  40740. -{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  40741. -echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  40742. -test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  40743. - *" memcmp.$ac_objext "* ) ;;
  40744. - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  40745. + rm -f "$tmp/stdin"
  40746. + case $ac_file in
  40747. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  40748. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  40749. + esac \
  40750. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  40751. ;;
  40752. -esac
  40753. + :H)
  40754. + #
  40755. + # CONFIG_HEADER
  40756. + #
  40757. + if test x"$ac_file" != x-; then
  40758. + {
  40759. + $as_echo "/* $configure_input */" \
  40760. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  40761. + } >"$tmp/config.h" \
  40762. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  40763. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  40764. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  40765. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  40766. + else
  40767. + rm -f "$ac_file"
  40768. + mv "$tmp/config.h" "$ac_file" \
  40769. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  40770. + fi
  40771. + else
  40772. + $as_echo "/* $configure_input */" \
  40773. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  40774. + || as_fn_error "could not create -" "$LINENO" 5
  40775. + fi
  40776. +# Compute "$ac_file"'s index in $config_headers.
  40777. +_am_arg="$ac_file"
  40778. +_am_stamp_count=1
  40779. +for _am_header in $config_headers :; do
  40780. + case $_am_header in
  40781. + $_am_arg | $_am_arg:* )
  40782. + break ;;
  40783. + * )
  40784. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  40785. + esac
  40786. +done
  40787. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  40788. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40789. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  40790. + X"$_am_arg" : 'X\(//\)$' \| \
  40791. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  40792. +$as_echo X"$_am_arg" |
  40793. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40794. + s//\1/
  40795. + q
  40796. + }
  40797. + /^X\(\/\/\)[^/].*/{
  40798. + s//\1/
  40799. + q
  40800. + }
  40801. + /^X\(\/\/\)$/{
  40802. + s//\1/
  40803. + q
  40804. + }
  40805. + /^X\(\/\).*/{
  40806. + s//\1/
  40807. + q
  40808. + }
  40809. + s/.*/./; q'`/stamp-h$_am_stamp_count
  40810. + ;;
  40811. +
  40812. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  40813. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  40814. + ;;
  40815. + esac
  40816. + case $ac_file$ac_mode in
  40817. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  40818. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  40819. + # are listed without --file. Let's play safe and only enable the eval
  40820. + # if we detect the quoting.
  40821. + case $CONFIG_FILES in
  40822. + *\'*) eval set x "$CONFIG_FILES" ;;
  40823. + *) set x $CONFIG_FILES ;;
  40824. + esac
  40825. + shift
  40826. + for mf
  40827. + do
  40828. + # Strip MF so we end up with the name of the file.
  40829. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  40830. + # Check whether this is an Automake generated Makefile or not.
  40831. + # We used to match only the files named `Makefile.in', but
  40832. + # some people rename them; so instead we look at the file content.
  40833. + # Grep'ing the first line is not enough: some people post-process
  40834. + # each Makefile.in and add a new line on top of each file to say so.
  40835. + # Grep'ing the whole file is not good either: AIX grep has a line
  40836. + # limit of 2048, but all sed's we know have understand at least 4000.
  40837. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  40838. + dirpart=`$as_dirname -- "$mf" ||
  40839. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40840. + X"$mf" : 'X\(//\)[^/]' \| \
  40841. + X"$mf" : 'X\(//\)$' \| \
  40842. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  40843. +$as_echo X"$mf" |
  40844. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40845. + s//\1/
  40846. + q
  40847. + }
  40848. + /^X\(\/\/\)[^/].*/{
  40849. + s//\1/
  40850. + q
  40851. + }
  40852. + /^X\(\/\/\)$/{
  40853. + s//\1/
  40854. + q
  40855. + }
  40856. + /^X\(\/\).*/{
  40857. + s//\1/
  40858. + q
  40859. + }
  40860. + s/.*/./; q'`
  40861. + else
  40862. + continue
  40863. + fi
  40864. + # Extract the definition of DEPDIR, am__include, and am__quote
  40865. + # from the Makefile without running `make'.
  40866. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  40867. + test -z "$DEPDIR" && continue
  40868. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  40869. + test -z "am__include" && continue
  40870. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  40871. + # When using ansi2knr, U may be empty or an underscore; expand it
  40872. + U=`sed -n 's/^U = //p' < "$mf"`
  40873. + # Find all dependency output files, they are included files with
  40874. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  40875. + # simplest approach to changing $(DEPDIR) to its actual value in the
  40876. + # expansion.
  40877. + for file in `sed -n "
  40878. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  40879. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  40880. + # Make sure the directory exists.
  40881. + test -f "$dirpart/$file" && continue
  40882. + fdir=`$as_dirname -- "$file" ||
  40883. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40884. + X"$file" : 'X\(//\)[^/]' \| \
  40885. + X"$file" : 'X\(//\)$' \| \
  40886. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  40887. +$as_echo X"$file" |
  40888. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40889. + s//\1/
  40890. + q
  40891. + }
  40892. + /^X\(\/\/\)[^/].*/{
  40893. + s//\1/
  40894. + q
  40895. + }
  40896. + /^X\(\/\/\)$/{
  40897. + s//\1/
  40898. + q
  40899. + }
  40900. + /^X\(\/\).*/{
  40901. + s//\1/
  40902. + q
  40903. + }
  40904. + s/.*/./; q'`
  40905. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  40906. + # echo "creating $dirpart/$file"
  40907. + echo '# dummy' > "$dirpart/$file"
  40908. + done
  40909. + done
  40910. +}
  40911. + ;;
  40912. + "libtool":C)
  40913. + # See if we are running on zsh, and set the options which allow our
  40914. + # commands through without removal of \ escapes.
  40915. + if test -n "${ZSH_VERSION+set}" ; then
  40916. + setopt NO_GLOB_SUBST
  40917. + fi
  40918. + cfgfile="${ofile}T"
  40919. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  40920. + $RM "$cfgfile"
  40921. + cat <<_LT_EOF >> "$cfgfile"
  40922. +#! $SHELL
  40923. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  40924. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  40925. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  40926. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  40927. +#
  40928. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40929. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  40930. +# Written by Gordon Matzigkeit, 1996
  40931. +#
  40932. +# This file is part of GNU Libtool.
  40933. +#
  40934. +# GNU Libtool is free software; you can redistribute it and/or
  40935. +# modify it under the terms of the GNU General Public License as
  40936. +# published by the Free Software Foundation; either version 2 of
  40937. +# the License, or (at your option) any later version.
  40938. +#
  40939. +# As a special exception to the GNU General Public License,
  40940. +# if you distribute this file as part of a program or library that
  40941. +# is built using GNU Libtool, you may include this file under the
  40942. +# same distribution terms that you use for the rest of that program.
  40943. +#
  40944. +# GNU Libtool is distributed in the hope that it will be useful,
  40945. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  40946. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  40947. +# GNU General Public License for more details.
  40948. +#
  40949. +# You should have received a copy of the GNU General Public License
  40950. +# along with GNU Libtool; see the file COPYING. If not, a copy
  40951. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  40952. +# obtained by writing to the Free Software Foundation, Inc.,
  40953. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  40954. +# The names of the tagged configurations supported by this script.
  40955. +available_tags=""
  40956. -ac_config_files="$ac_config_files Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
  40957. +# ### BEGIN LIBTOOL CONFIG
  40958. -cat >confcache <<\_ACEOF
  40959. -# This file is a shell script that caches the results of configure
  40960. -# tests run on this system so they can be shared between configure
  40961. -# scripts and configure runs, see configure's option --config-cache.
  40962. -# It is not useful on other systems. If it contains results you don't
  40963. -# want to keep, you may remove or edit it.
  40964. -#
  40965. -# config.status only pays attention to the cache file if you give it
  40966. -# the --recheck option to rerun configure.
  40967. -#
  40968. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  40969. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  40970. -# following values.
  40971. +# Which release of libtool.m4 was used?
  40972. +macro_version=$macro_version
  40973. +macro_revision=$macro_revision
  40974. -_ACEOF
  40975. +# Whether or not to build shared libraries.
  40976. +build_libtool_libs=$enable_shared
  40977. -# The following way of writing the cache mishandles newlines in values,
  40978. -# but we know of no workaround that is simple, portable, and efficient.
  40979. -# So, we kill variables containing newlines.
  40980. -# Ultrix sh set writes to stderr and can't be redirected directly,
  40981. -# and sets the high bit in the cache file unless we assign to the vars.
  40982. -(
  40983. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  40984. - eval ac_val=\$$ac_var
  40985. - case $ac_val in #(
  40986. - *${as_nl}*)
  40987. - case $ac_var in #(
  40988. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  40989. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  40990. - esac
  40991. - case $ac_var in #(
  40992. - _ | IFS | as_nl) ;; #(
  40993. - *) $as_unset $ac_var ;;
  40994. - esac ;;
  40995. - esac
  40996. - done
  40997. +# Whether or not to build static libraries.
  40998. +build_old_libs=$enable_static
  40999. - (set) 2>&1 |
  41000. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  41001. - *${as_nl}ac_space=\ *)
  41002. - # `set' does not quote correctly, so add quotes (double-quote
  41003. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  41004. - sed -n \
  41005. - "s/'/'\\\\''/g;
  41006. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  41007. - ;; #(
  41008. - *)
  41009. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  41010. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  41011. - ;;
  41012. - esac |
  41013. - sort
  41014. -) |
  41015. - sed '
  41016. - /^ac_cv_env_/b end
  41017. - t clear
  41018. - :clear
  41019. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  41020. - t end
  41021. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  41022. - :end' >>confcache
  41023. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  41024. - if test -w "$cache_file"; then
  41025. - test "x$cache_file" != "x/dev/null" &&
  41026. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  41027. -echo "$as_me: updating cache $cache_file" >&6;}
  41028. - cat confcache >$cache_file
  41029. - else
  41030. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  41031. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  41032. - fi
  41033. -fi
  41034. -rm -f confcache
  41035. +# What type of objects to build.
  41036. +pic_mode=$pic_mode
  41037. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  41038. -# Let make expand exec_prefix.
  41039. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  41040. +# Whether or not to optimize for fast installation.
  41041. +fast_install=$enable_fast_install
  41042. -DEFS=-DHAVE_CONFIG_H
  41043. +# The host system.
  41044. +host_alias=$host_alias
  41045. +host=$host
  41046. +host_os=$host_os
  41047. -ac_libobjs=
  41048. -ac_ltlibobjs=
  41049. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  41050. - # 1. Remove the extension, and $U if already installed.
  41051. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  41052. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  41053. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  41054. - # will be set to the directory where LIBOBJS objects are built.
  41055. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  41056. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  41057. -done
  41058. -LIBOBJS=$ac_libobjs
  41059. +# The build system.
  41060. +build_alias=$build_alias
  41061. +build=$build
  41062. +build_os=$build_os
  41063. -LTLIBOBJS=$ac_ltlibobjs
  41064. +# A sed program that does not truncate output.
  41065. +SED=$lt_SED
  41066. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  41067. +Xsed="\$SED -e 1s/^X//"
  41068. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  41069. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  41070. -Usually this means the macro was only invoked conditionally." >&5
  41071. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  41072. -Usually this means the macro was only invoked conditionally." >&2;}
  41073. - { (exit 1); exit 1; }; }
  41074. -fi
  41075. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  41076. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  41077. -Usually this means the macro was only invoked conditionally." >&5
  41078. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  41079. -Usually this means the macro was only invoked conditionally." >&2;}
  41080. - { (exit 1); exit 1; }; }
  41081. -fi
  41082. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  41083. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  41084. -Usually this means the macro was only invoked conditionally." >&5
  41085. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  41086. -Usually this means the macro was only invoked conditionally." >&2;}
  41087. - { (exit 1); exit 1; }; }
  41088. -fi
  41089. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  41090. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  41091. -Usually this means the macro was only invoked conditionally." >&5
  41092. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  41093. -Usually this means the macro was only invoked conditionally." >&2;}
  41094. - { (exit 1); exit 1; }; }
  41095. -fi
  41096. -if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
  41097. - { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
  41098. -Usually this means the macro was only invoked conditionally." >&5
  41099. -echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
  41100. -Usually this means the macro was only invoked conditionally." >&2;}
  41101. - { (exit 1); exit 1; }; }
  41102. -fi
  41103. +# A grep program that handles long lines.
  41104. +GREP=$lt_GREP
  41105. -: ${CONFIG_STATUS=./config.status}
  41106. -ac_clean_files_save=$ac_clean_files
  41107. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  41108. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  41109. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  41110. -cat >$CONFIG_STATUS <<_ACEOF
  41111. -#! $SHELL
  41112. -# Generated by $as_me.
  41113. -# Run this file to recreate the current configuration.
  41114. -# Compiler output produced by configure, useful for debugging
  41115. -# configure, is in config.log if it exists.
  41116. +# An ERE matcher.
  41117. +EGREP=$lt_EGREP
  41118. -debug=false
  41119. -ac_cs_recheck=false
  41120. -ac_cs_silent=false
  41121. -SHELL=\${CONFIG_SHELL-$SHELL}
  41122. -_ACEOF
  41123. +# A literal string matcher.
  41124. +FGREP=$lt_FGREP
  41125. -cat >>$CONFIG_STATUS <<\_ACEOF
  41126. -## --------------------- ##
  41127. -## M4sh Initialization. ##
  41128. -## --------------------- ##
  41129. +# A BSD- or MS-compatible name lister.
  41130. +NM=$lt_NM
  41131. -# Be more Bourne compatible
  41132. -DUALCASE=1; export DUALCASE # for MKS sh
  41133. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  41134. - emulate sh
  41135. - NULLCMD=:
  41136. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  41137. - # is contrary to our usage. Disable this feature.
  41138. - alias -g '${1+"$@"}'='"$@"'
  41139. - setopt NO_GLOB_SUBST
  41140. -else
  41141. - case `(set -o) 2>/dev/null` in
  41142. - *posix*) set -o posix ;;
  41143. -esac
  41144. +# Whether we need soft or hard links.
  41145. +LN_S=$lt_LN_S
  41146. -fi
  41147. +# What is the maximum length of a command?
  41148. +max_cmd_len=$max_cmd_len
  41149. +# Object file suffix (normally "o").
  41150. +objext=$ac_objext
  41151. +# Executable file suffix (normally "").
  41152. +exeext=$exeext
  41153. +# whether the shell understands "unset".
  41154. +lt_unset=$lt_unset
  41155. -# PATH needs CR
  41156. -# Avoid depending upon Character Ranges.
  41157. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  41158. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  41159. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  41160. -as_cr_digits='0123456789'
  41161. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  41162. +# turn spaces into newlines.
  41163. +SP2NL=$lt_lt_SP2NL
  41164. -# The user is always right.
  41165. -if test "${PATH_SEPARATOR+set}" != set; then
  41166. - echo "#! /bin/sh" >conf$$.sh
  41167. - echo "exit 0" >>conf$$.sh
  41168. - chmod +x conf$$.sh
  41169. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41170. - PATH_SEPARATOR=';'
  41171. - else
  41172. - PATH_SEPARATOR=:
  41173. - fi
  41174. - rm -f conf$$.sh
  41175. -fi
  41176. +# turn newlines into spaces.
  41177. +NL2SP=$lt_lt_NL2SP
  41178. -# Support unset when possible.
  41179. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  41180. - as_unset=unset
  41181. -else
  41182. - as_unset=false
  41183. -fi
  41184. +# How to create reloadable object files.
  41185. +reload_flag=$lt_reload_flag
  41186. +reload_cmds=$lt_reload_cmds
  41187. +# An object symbol dumper.
  41188. +OBJDUMP=$lt_OBJDUMP
  41189. -# IFS
  41190. -# We need space, tab and new line, in precisely that order. Quoting is
  41191. -# there to prevent editors from complaining about space-tab.
  41192. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  41193. -# splitting by setting IFS to empty value.)
  41194. -as_nl='
  41195. -'
  41196. -IFS=" "" $as_nl"
  41197. +# Method to check whether dependent libraries are shared objects.
  41198. +deplibs_check_method=$lt_deplibs_check_method
  41199. -# Find who we are. Look in the path if we contain no directory separator.
  41200. -case $0 in
  41201. - *[\\/]* ) as_myself=$0 ;;
  41202. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41203. -for as_dir in $PATH
  41204. -do
  41205. - IFS=$as_save_IFS
  41206. - test -z "$as_dir" && as_dir=.
  41207. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  41208. -done
  41209. -IFS=$as_save_IFS
  41210. +# Command to use when deplibs_check_method == "file_magic".
  41211. +file_magic_cmd=$lt_file_magic_cmd
  41212. - ;;
  41213. -esac
  41214. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  41215. -# in which case we are not to be found in the path.
  41216. -if test "x$as_myself" = x; then
  41217. - as_myself=$0
  41218. -fi
  41219. -if test ! -f "$as_myself"; then
  41220. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  41221. - { (exit 1); exit 1; }
  41222. -fi
  41223. +# The archiver.
  41224. +AR=$lt_AR
  41225. +AR_FLAGS=$lt_AR_FLAGS
  41226. -# Work around bugs in pre-3.0 UWIN ksh.
  41227. -for as_var in ENV MAIL MAILPATH
  41228. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  41229. -done
  41230. -PS1='$ '
  41231. -PS2='> '
  41232. -PS4='+ '
  41233. +# A symbol stripping program.
  41234. +STRIP=$lt_STRIP
  41235. -# NLS nuisances.
  41236. -for as_var in \
  41237. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  41238. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  41239. - LC_TELEPHONE LC_TIME
  41240. -do
  41241. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  41242. - eval $as_var=C; export $as_var
  41243. - else
  41244. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  41245. - fi
  41246. -done
  41247. +# Commands used to install an old-style archive.
  41248. +RANLIB=$lt_RANLIB
  41249. +old_postinstall_cmds=$lt_old_postinstall_cmds
  41250. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  41251. -# Required to use basename.
  41252. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  41253. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  41254. - as_expr=expr
  41255. -else
  41256. - as_expr=false
  41257. -fi
  41258. +# A C compiler.
  41259. +LTCC=$lt_CC
  41260. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  41261. - as_basename=basename
  41262. -else
  41263. - as_basename=false
  41264. -fi
  41265. +# LTCC compiler flags.
  41266. +LTCFLAGS=$lt_CFLAGS
  41267. +# Take the output of nm and produce a listing of raw symbols and C names.
  41268. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  41269. -# Name of the executable.
  41270. -as_me=`$as_basename -- "$0" ||
  41271. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  41272. - X"$0" : 'X\(//\)$' \| \
  41273. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  41274. -echo X/"$0" |
  41275. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  41276. - s//\1/
  41277. - q
  41278. - }
  41279. - /^X\/\(\/\/\)$/{
  41280. - s//\1/
  41281. - q
  41282. - }
  41283. - /^X\/\(\/\).*/{
  41284. - s//\1/
  41285. - q
  41286. - }
  41287. - s/.*/./; q'`
  41288. +# Transform the output of nm in a proper C declaration.
  41289. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  41290. -# CDPATH.
  41291. -$as_unset CDPATH
  41292. +# Transform the output of nm in a C name address pair.
  41293. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  41294. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  41295. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  41296. +# The name of the directory that contains temporary libtool files.
  41297. +objdir=$objdir
  41298. - as_lineno_1=$LINENO
  41299. - as_lineno_2=$LINENO
  41300. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  41301. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  41302. -
  41303. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  41304. - # uniformly replaced by the line number. The first 'sed' inserts a
  41305. - # line-number line after each line using $LINENO; the second 'sed'
  41306. - # does the real work. The second script uses 'N' to pair each
  41307. - # line-number line with the line containing $LINENO, and appends
  41308. - # trailing '-' during substitution so that $LINENO is not a special
  41309. - # case at line end.
  41310. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  41311. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  41312. - # E. McMahon (1931-1989) for sed's syntax. :-)
  41313. - sed -n '
  41314. - p
  41315. - /[$]LINENO/=
  41316. - ' <$as_myself |
  41317. - sed '
  41318. - s/[$]LINENO.*/&-/
  41319. - t lineno
  41320. - b
  41321. - :lineno
  41322. - N
  41323. - :loop
  41324. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  41325. - t loop
  41326. - s/-\n.*//
  41327. - ' >$as_me.lineno &&
  41328. - chmod +x "$as_me.lineno" ||
  41329. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  41330. - { (exit 1); exit 1; }; }
  41331. +# Shell to use when invoking shell scripts.
  41332. +SHELL=$lt_SHELL
  41333. - # Don't try to exec as it changes $[0], causing all sort of problems
  41334. - # (the dirname of $[0] is not the place where we might find the
  41335. - # original and so on. Autoconf is especially sensitive to this).
  41336. - . "./$as_me.lineno"
  41337. - # Exit status is that of the last command.
  41338. - exit
  41339. -}
  41340. +# An echo program that does not interpret backslashes.
  41341. +ECHO=$lt_ECHO
  41342. +# Used to examine libraries when file_magic_cmd begins with "file".
  41343. +MAGIC_CMD=$MAGIC_CMD
  41344. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  41345. - as_dirname=dirname
  41346. -else
  41347. - as_dirname=false
  41348. -fi
  41349. +# Must we lock files when doing compilation?
  41350. +need_locks=$lt_need_locks
  41351. -ECHO_C= ECHO_N= ECHO_T=
  41352. -case `echo -n x` in
  41353. --n*)
  41354. - case `echo 'x\c'` in
  41355. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  41356. - *) ECHO_C='\c';;
  41357. - esac;;
  41358. -*)
  41359. - ECHO_N='-n';;
  41360. -esac
  41361. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  41362. +DSYMUTIL=$lt_DSYMUTIL
  41363. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  41364. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  41365. - as_expr=expr
  41366. -else
  41367. - as_expr=false
  41368. -fi
  41369. +# Tool to change global to local symbols on Mac OS X.
  41370. +NMEDIT=$lt_NMEDIT
  41371. -rm -f conf$$ conf$$.exe conf$$.file
  41372. -if test -d conf$$.dir; then
  41373. - rm -f conf$$.dir/conf$$.file
  41374. -else
  41375. - rm -f conf$$.dir
  41376. - mkdir conf$$.dir
  41377. -fi
  41378. -echo >conf$$.file
  41379. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  41380. - as_ln_s='ln -s'
  41381. - # ... but there are two gotchas:
  41382. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  41383. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  41384. - # In both cases, we have to default to `cp -p'.
  41385. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  41386. - as_ln_s='cp -p'
  41387. -elif ln conf$$.file conf$$ 2>/dev/null; then
  41388. - as_ln_s=ln
  41389. -else
  41390. - as_ln_s='cp -p'
  41391. -fi
  41392. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  41393. -rmdir conf$$.dir 2>/dev/null
  41394. +# Tool to manipulate fat objects and archives on Mac OS X.
  41395. +LIPO=$lt_LIPO
  41396. -if mkdir -p . 2>/dev/null; then
  41397. - as_mkdir_p=:
  41398. -else
  41399. - test -d ./-p && rmdir ./-p
  41400. - as_mkdir_p=false
  41401. -fi
  41402. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  41403. +OTOOL=$lt_OTOOL
  41404. -if test -x / >/dev/null 2>&1; then
  41405. - as_test_x='test -x'
  41406. -else
  41407. - if ls -dL / >/dev/null 2>&1; then
  41408. - as_ls_L_option=L
  41409. - else
  41410. - as_ls_L_option=
  41411. - fi
  41412. - as_test_x='
  41413. - eval sh -c '\''
  41414. - if test -d "$1"; then
  41415. - test -d "$1/.";
  41416. - else
  41417. - case $1 in
  41418. - -*)set "./$1";;
  41419. - esac;
  41420. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  41421. - ???[sx]*):;;*)false;;esac;fi
  41422. - '\'' sh
  41423. - '
  41424. -fi
  41425. -as_executable_p=$as_test_x
  41426. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  41427. +OTOOL64=$lt_OTOOL64
  41428. -# Sed expression to map a string onto a valid CPP name.
  41429. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  41430. +# Old archive suffix (normally "a").
  41431. +libext=$libext
  41432. -# Sed expression to map a string onto a valid variable name.
  41433. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  41434. +# Shared library suffix (normally ".so").
  41435. +shrext_cmds=$lt_shrext_cmds
  41436. +# The commands to extract the exported symbol list from a shared archive.
  41437. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  41438. -exec 6>&1
  41439. +# Variables whose values should be saved in libtool wrapper scripts and
  41440. +# restored at link time.
  41441. +variables_saved_for_relink=$lt_variables_saved_for_relink
  41442. -# Save the log message, to keep $[0] and so on meaningful, and to
  41443. -# report actual input values of CONFIG_FILES etc. instead of their
  41444. -# values after options handling.
  41445. -ac_log="
  41446. -This file was extended by $as_me, which was
  41447. -generated by GNU Autoconf 2.61. Invocation command line was
  41448. +# Do we need the "lib" prefix for modules?
  41449. +need_lib_prefix=$need_lib_prefix
  41450. - CONFIG_FILES = $CONFIG_FILES
  41451. - CONFIG_HEADERS = $CONFIG_HEADERS
  41452. - CONFIG_LINKS = $CONFIG_LINKS
  41453. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  41454. - $ $0 $@
  41455. +# Do we need a version for libraries?
  41456. +need_version=$need_version
  41457. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  41458. -"
  41459. +# Library versioning type.
  41460. +version_type=$version_type
  41461. -_ACEOF
  41462. +# Shared library runtime path variable.
  41463. +runpath_var=$runpath_var
  41464. -cat >>$CONFIG_STATUS <<_ACEOF
  41465. -# Files that config.status was made for.
  41466. -config_files="$ac_config_files"
  41467. -config_headers="$ac_config_headers"
  41468. -config_commands="$ac_config_commands"
  41469. +# Shared library path variable.
  41470. +shlibpath_var=$shlibpath_var
  41471. -_ACEOF
  41472. +# Is shlibpath searched before the hard-coded library search path?
  41473. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  41474. -cat >>$CONFIG_STATUS <<\_ACEOF
  41475. -ac_cs_usage="\
  41476. -\`$as_me' instantiates files from templates according to the
  41477. -current configuration.
  41478. +# Format of library name prefix.
  41479. +libname_spec=$lt_libname_spec
  41480. -Usage: $0 [OPTIONS] [FILE]...
  41481. +# List of archive names. First name is the real one, the rest are links.
  41482. +# The last name is the one that the linker finds with -lNAME
  41483. +library_names_spec=$lt_library_names_spec
  41484. - -h, --help print this help, then exit
  41485. - -V, --version print version number and configuration settings, then exit
  41486. - -q, --quiet do not print progress messages
  41487. - -d, --debug don't remove temporary files
  41488. - --recheck update $as_me by reconfiguring in the same conditions
  41489. - --file=FILE[:TEMPLATE]
  41490. - instantiate the configuration file FILE
  41491. - --header=FILE[:TEMPLATE]
  41492. - instantiate the configuration header FILE
  41493. +# The coded name of the library, if different from the real name.
  41494. +soname_spec=$lt_soname_spec
  41495. -Configuration files:
  41496. -$config_files
  41497. +# Command to use after installation of a shared archive.
  41498. +postinstall_cmds=$lt_postinstall_cmds
  41499. -Configuration headers:
  41500. -$config_headers
  41501. +# Command to use after uninstallation of a shared archive.
  41502. +postuninstall_cmds=$lt_postuninstall_cmds
  41503. -Configuration commands:
  41504. -$config_commands
  41505. +# Commands used to finish a libtool library installation in a directory.
  41506. +finish_cmds=$lt_finish_cmds
  41507. -Report bugs to <bug-autoconf@gnu.org>."
  41508. +# As "finish_cmds", except a single script fragment to be evaled but
  41509. +# not shown.
  41510. +finish_eval=$lt_finish_eval
  41511. -_ACEOF
  41512. -cat >>$CONFIG_STATUS <<_ACEOF
  41513. -ac_cs_version="\\
  41514. -config.status
  41515. -configured by $0, generated by GNU Autoconf 2.61,
  41516. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  41517. +# Whether we should hardcode library paths into libraries.
  41518. +hardcode_into_libs=$hardcode_into_libs
  41519. -Copyright (C) 2006 Free Software Foundation, Inc.
  41520. -This config.status script is free software; the Free Software Foundation
  41521. -gives unlimited permission to copy, distribute and modify it."
  41522. +# Compile-time system search path for libraries.
  41523. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  41524. -ac_pwd='$ac_pwd'
  41525. -srcdir='$srcdir'
  41526. -INSTALL='$INSTALL'
  41527. -MKDIR_P='$MKDIR_P'
  41528. -_ACEOF
  41529. +# Run-time system search path for libraries.
  41530. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  41531. -cat >>$CONFIG_STATUS <<\_ACEOF
  41532. -# If no file are specified by the user, then we need to provide default
  41533. -# value. By we need to know if files were specified by the user.
  41534. -ac_need_defaults=:
  41535. -while test $# != 0
  41536. -do
  41537. - case $1 in
  41538. - --*=*)
  41539. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  41540. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  41541. - ac_shift=:
  41542. - ;;
  41543. - *)
  41544. - ac_option=$1
  41545. - ac_optarg=$2
  41546. - ac_shift=shift
  41547. - ;;
  41548. - esac
  41549. +# Whether dlopen is supported.
  41550. +dlopen_support=$enable_dlopen
  41551. - case $ac_option in
  41552. - # Handling of the options.
  41553. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  41554. - ac_cs_recheck=: ;;
  41555. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  41556. - echo "$ac_cs_version"; exit ;;
  41557. - --debug | --debu | --deb | --de | --d | -d )
  41558. - debug=: ;;
  41559. - --file | --fil | --fi | --f )
  41560. - $ac_shift
  41561. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  41562. - ac_need_defaults=false;;
  41563. - --header | --heade | --head | --hea )
  41564. - $ac_shift
  41565. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  41566. - ac_need_defaults=false;;
  41567. - --he | --h)
  41568. - # Conflict between --help and --header
  41569. - { echo "$as_me: error: ambiguous option: $1
  41570. -Try \`$0 --help' for more information." >&2
  41571. - { (exit 1); exit 1; }; };;
  41572. - --help | --hel | -h )
  41573. - echo "$ac_cs_usage"; exit ;;
  41574. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  41575. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  41576. - ac_cs_silent=: ;;
  41577. +# Whether dlopen of programs is supported.
  41578. +dlopen_self=$enable_dlopen_self
  41579. - # This is an error.
  41580. - -*) { echo "$as_me: error: unrecognized option: $1
  41581. -Try \`$0 --help' for more information." >&2
  41582. - { (exit 1); exit 1; }; } ;;
  41583. +# Whether dlopen of statically linked programs is supported.
  41584. +dlopen_self_static=$enable_dlopen_self_static
  41585. - *) ac_config_targets="$ac_config_targets $1"
  41586. - ac_need_defaults=false ;;
  41587. +# Commands to strip libraries.
  41588. +old_striplib=$lt_old_striplib
  41589. +striplib=$lt_striplib
  41590. - esac
  41591. - shift
  41592. -done
  41593. -ac_configure_extra_args=
  41594. +# The linker used to build libraries.
  41595. +LD=$lt_LD
  41596. -if $ac_cs_silent; then
  41597. - exec 6>/dev/null
  41598. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  41599. -fi
  41600. +# Commands used to build an old-style archive.
  41601. +old_archive_cmds=$lt_old_archive_cmds
  41602. -_ACEOF
  41603. -cat >>$CONFIG_STATUS <<_ACEOF
  41604. -if \$ac_cs_recheck; then
  41605. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  41606. - CONFIG_SHELL=$SHELL
  41607. - export CONFIG_SHELL
  41608. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  41609. -fi
  41610. +# A language specific compiler.
  41611. +CC=$lt_compiler
  41612. -_ACEOF
  41613. -cat >>$CONFIG_STATUS <<\_ACEOF
  41614. -exec 5>>config.log
  41615. -{
  41616. - echo
  41617. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  41618. -## Running $as_me. ##
  41619. -_ASBOX
  41620. - echo "$ac_log"
  41621. -} >&5
  41622. +# Is the compiler the GNU compiler?
  41623. +with_gcc=$GCC
  41624. -_ACEOF
  41625. -cat >>$CONFIG_STATUS <<_ACEOF
  41626. -#
  41627. -# INIT-COMMANDS
  41628. -#
  41629. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  41630. +# Compiler flag to turn off builtin functions.
  41631. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  41632. -_ACEOF
  41633. +# How to pass a linker flag through the compiler.
  41634. +wl=$lt_lt_prog_compiler_wl
  41635. -cat >>$CONFIG_STATUS <<\_ACEOF
  41636. +# Additional compiler flags for building library objects.
  41637. +pic_flag=$lt_lt_prog_compiler_pic
  41638. -# Handling of arguments.
  41639. -for ac_config_target in $ac_config_targets
  41640. -do
  41641. - case $ac_config_target in
  41642. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  41643. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  41644. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  41645. - "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  41646. - "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
  41647. - "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
  41648. - "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
  41649. - "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
  41650. - "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
  41651. - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  41652. - "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
  41653. - "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
  41654. - "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  41655. - "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
  41656. - "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  41657. - "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
  41658. - "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
  41659. - "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
  41660. - "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
  41661. - "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
  41662. - "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
  41663. - "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
  41664. - "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
  41665. +# Compiler flag to prevent dynamic linking.
  41666. +link_static_flag=$lt_lt_prog_compiler_static
  41667. +
  41668. +# Does compiler simultaneously support -c and -o options?
  41669. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  41670. +
  41671. +# Whether or not to add -lc for building shared libraries.
  41672. +build_libtool_need_lc=$archive_cmds_need_lc
  41673. +
  41674. +# Whether or not to disallow shared libs when runtime libs are static.
  41675. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  41676. +
  41677. +# Compiler flag to allow reflexive dlopens.
  41678. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  41679. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  41680. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  41681. - { (exit 1); exit 1; }; };;
  41682. - esac
  41683. -done
  41684. +# Compiler flag to generate shared objects directly from archives.
  41685. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  41686. +# Whether the compiler copes with passing no objects directly.
  41687. +compiler_needs_object=$lt_compiler_needs_object
  41688. -# If the user did not use the arguments to specify the items to instantiate,
  41689. -# then the envvar interface is used. Set only those that are not.
  41690. -# We use the long form for the default assignment because of an extremely
  41691. -# bizarre bug on SunOS 4.1.3.
  41692. -if $ac_need_defaults; then
  41693. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  41694. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  41695. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  41696. -fi
  41697. +# Create an old-style archive from a shared archive.
  41698. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  41699. -# Have a temporary directory for convenience. Make it in the build tree
  41700. -# simply because there is no reason against having it here, and in addition,
  41701. -# creating and moving files from /tmp can sometimes cause problems.
  41702. -# Hook for its removal unless debugging.
  41703. -# Note that there is a small window in which the directory will not be cleaned:
  41704. -# after its creation but before its name has been assigned to `$tmp'.
  41705. -$debug ||
  41706. -{
  41707. - tmp=
  41708. - trap 'exit_status=$?
  41709. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  41710. -' 0
  41711. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  41712. -}
  41713. -# Create a (secure) tmp directory for tmp files.
  41714. +# Create a temporary old-style archive to link instead of a shared archive.
  41715. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  41716. -{
  41717. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  41718. - test -n "$tmp" && test -d "$tmp"
  41719. -} ||
  41720. -{
  41721. - tmp=./conf$$-$RANDOM
  41722. - (umask 077 && mkdir "$tmp")
  41723. -} ||
  41724. -{
  41725. - echo "$me: cannot create a temporary directory in ." >&2
  41726. - { (exit 1); exit 1; }
  41727. -}
  41728. +# Commands used to build a shared archive.
  41729. +archive_cmds=$lt_archive_cmds
  41730. +archive_expsym_cmds=$lt_archive_expsym_cmds
  41731. -#
  41732. -# Set up the sed scripts for CONFIG_FILES section.
  41733. -#
  41734. +# Commands used to build a loadable module if different from building
  41735. +# a shared archive.
  41736. +module_cmds=$lt_module_cmds
  41737. +module_expsym_cmds=$lt_module_expsym_cmds
  41738. -# No need to generate the scripts if there are no CONFIG_FILES.
  41739. -# This happens for instance when ./config.status config.h
  41740. -if test -n "$CONFIG_FILES"; then
  41741. +# Whether we are building with GNU ld or not.
  41742. +with_gnu_ld=$lt_with_gnu_ld
  41743. -_ACEOF
  41744. +# Flag that allows shared libraries with undefined symbols to be built.
  41745. +allow_undefined_flag=$lt_allow_undefined_flag
  41746. +# Flag that enforces no undefined symbols.
  41747. +no_undefined_flag=$lt_no_undefined_flag
  41748. +# Flag to hardcode \$libdir into a binary during linking.
  41749. +# This must work even if \$libdir does not exist
  41750. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  41751. -ac_delim='%!_!# '
  41752. -for ac_last_try in false false false false false :; do
  41753. - cat >conf$$subs.sed <<_ACEOF
  41754. -SHELL!$SHELL$ac_delim
  41755. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  41756. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  41757. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  41758. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  41759. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  41760. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  41761. -exec_prefix!$exec_prefix$ac_delim
  41762. -prefix!$prefix$ac_delim
  41763. -program_transform_name!$program_transform_name$ac_delim
  41764. -bindir!$bindir$ac_delim
  41765. -sbindir!$sbindir$ac_delim
  41766. -libexecdir!$libexecdir$ac_delim
  41767. -datarootdir!$datarootdir$ac_delim
  41768. -datadir!$datadir$ac_delim
  41769. -sysconfdir!$sysconfdir$ac_delim
  41770. -sharedstatedir!$sharedstatedir$ac_delim
  41771. -localstatedir!$localstatedir$ac_delim
  41772. -includedir!$includedir$ac_delim
  41773. -oldincludedir!$oldincludedir$ac_delim
  41774. -docdir!$docdir$ac_delim
  41775. -infodir!$infodir$ac_delim
  41776. -htmldir!$htmldir$ac_delim
  41777. -dvidir!$dvidir$ac_delim
  41778. -pdfdir!$pdfdir$ac_delim
  41779. -psdir!$psdir$ac_delim
  41780. -libdir!$libdir$ac_delim
  41781. -localedir!$localedir$ac_delim
  41782. -mandir!$mandir$ac_delim
  41783. -DEFS!$DEFS$ac_delim
  41784. -ECHO_C!$ECHO_C$ac_delim
  41785. -ECHO_N!$ECHO_N$ac_delim
  41786. -ECHO_T!$ECHO_T$ac_delim
  41787. -LIBS!$LIBS$ac_delim
  41788. -build_alias!$build_alias$ac_delim
  41789. -host_alias!$host_alias$ac_delim
  41790. -target_alias!$target_alias$ac_delim
  41791. -build!$build$ac_delim
  41792. -build_cpu!$build_cpu$ac_delim
  41793. -build_vendor!$build_vendor$ac_delim
  41794. -build_os!$build_os$ac_delim
  41795. -host!$host$ac_delim
  41796. -host_cpu!$host_cpu$ac_delim
  41797. -host_vendor!$host_vendor$ac_delim
  41798. -host_os!$host_os$ac_delim
  41799. -target!$target$ac_delim
  41800. -target_cpu!$target_cpu$ac_delim
  41801. -target_vendor!$target_vendor$ac_delim
  41802. -target_os!$target_os$ac_delim
  41803. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  41804. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  41805. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  41806. -am__isrc!$am__isrc$ac_delim
  41807. -CYGPATH_W!$CYGPATH_W$ac_delim
  41808. -PACKAGE!$PACKAGE$ac_delim
  41809. -VERSION!$VERSION$ac_delim
  41810. -ACLOCAL!$ACLOCAL$ac_delim
  41811. -AUTOCONF!$AUTOCONF$ac_delim
  41812. -AUTOMAKE!$AUTOMAKE$ac_delim
  41813. -AUTOHEADER!$AUTOHEADER$ac_delim
  41814. -MAKEINFO!$MAKEINFO$ac_delim
  41815. -install_sh!$install_sh$ac_delim
  41816. -STRIP!$STRIP$ac_delim
  41817. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  41818. -mkdir_p!$mkdir_p$ac_delim
  41819. -AWK!$AWK$ac_delim
  41820. -SET_MAKE!$SET_MAKE$ac_delim
  41821. -am__leading_dot!$am__leading_dot$ac_delim
  41822. -AMTAR!$AMTAR$ac_delim
  41823. -am__tar!$am__tar$ac_delim
  41824. -am__untar!$am__untar$ac_delim
  41825. -MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  41826. -MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  41827. -MAINT!$MAINT$ac_delim
  41828. -V_LIB_CURRENT!$V_LIB_CURRENT$ac_delim
  41829. -V_LIB_REVISION!$V_LIB_REVISION$ac_delim
  41830. -V_LIB_AGE!$V_LIB_AGE$ac_delim
  41831. -VF_LIB_CURRENT!$VF_LIB_CURRENT$ac_delim
  41832. -VF_LIB_REVISION!$VF_LIB_REVISION$ac_delim
  41833. -VF_LIB_AGE!$VF_LIB_AGE$ac_delim
  41834. -VE_LIB_CURRENT!$VE_LIB_CURRENT$ac_delim
  41835. -VE_LIB_REVISION!$VE_LIB_REVISION$ac_delim
  41836. -VE_LIB_AGE!$VE_LIB_AGE$ac_delim
  41837. -CC!$CC$ac_delim
  41838. -CFLAGS!$CFLAGS$ac_delim
  41839. -LDFLAGS!$LDFLAGS$ac_delim
  41840. -CPPFLAGS!$CPPFLAGS$ac_delim
  41841. -ac_ct_CC!$ac_ct_CC$ac_delim
  41842. -EXEEXT!$EXEEXT$ac_delim
  41843. -OBJEXT!$OBJEXT$ac_delim
  41844. -DEPDIR!$DEPDIR$ac_delim
  41845. -am__include!$am__include$ac_delim
  41846. -am__quote!$am__quote$ac_delim
  41847. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  41848. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  41849. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  41850. -CCDEPMODE!$CCDEPMODE$ac_delim
  41851. -_ACEOF
  41852. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  41853. +# during linking. This must work even if \$libdir does not exist.
  41854. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  41855. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  41856. - break
  41857. - elif $ac_last_try; then
  41858. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  41859. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  41860. - { (exit 1); exit 1; }; }
  41861. - else
  41862. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41863. - fi
  41864. -done
  41865. +# Whether we need a single "-rpath" flag with a separated argument.
  41866. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  41867. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  41868. -if test -n "$ac_eof"; then
  41869. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  41870. - ac_eof=`expr $ac_eof + 1`
  41871. -fi
  41872. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  41873. +# DIR into the resulting binary.
  41874. +hardcode_direct=$hardcode_direct
  41875. -cat >>$CONFIG_STATUS <<_ACEOF
  41876. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  41877. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  41878. -_ACEOF
  41879. -sed '
  41880. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  41881. -s/^/s,@/; s/!/@,|#_!!_#|/
  41882. -:n
  41883. -t n
  41884. -s/'"$ac_delim"'$/,g/; t
  41885. -s/$/\\/; p
  41886. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  41887. -' >>$CONFIG_STATUS <conf$$subs.sed
  41888. -rm -f conf$$subs.sed
  41889. -cat >>$CONFIG_STATUS <<_ACEOF
  41890. -CEOF$ac_eof
  41891. -_ACEOF
  41892. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  41893. +# DIR into the resulting binary and the resulting library dependency is
  41894. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  41895. +# library is relocated.
  41896. +hardcode_direct_absolute=$hardcode_direct_absolute
  41897. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  41898. +# into the resulting binary.
  41899. +hardcode_minus_L=$hardcode_minus_L
  41900. -ac_delim='%!_!# '
  41901. -for ac_last_try in false false false false false :; do
  41902. - cat >conf$$subs.sed <<_ACEOF
  41903. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  41904. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  41905. -CPP!$CPP$ac_delim
  41906. -GREP!$GREP$ac_delim
  41907. -EGREP!$EGREP$ac_delim
  41908. -LN_S!$LN_S$ac_delim
  41909. -ECHO!$ECHO$ac_delim
  41910. -AR!$AR$ac_delim
  41911. -RANLIB!$RANLIB$ac_delim
  41912. -CXX!$CXX$ac_delim
  41913. -CXXFLAGS!$CXXFLAGS$ac_delim
  41914. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  41915. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  41916. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  41917. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  41918. -CXXCPP!$CXXCPP$ac_delim
  41919. -F77!$F77$ac_delim
  41920. -FFLAGS!$FFLAGS$ac_delim
  41921. -ac_ct_F77!$ac_ct_F77$ac_delim
  41922. -LIBTOOL!$LIBTOOL$ac_delim
  41923. -XSLTPROC!$XSLTPROC$ac_delim
  41924. -PDFXMLTEX!$PDFXMLTEX$ac_delim
  41925. -BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
  41926. -BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
  41927. -HAVE_PKG_CONFIG!$HAVE_PKG_CONFIG$ac_delim
  41928. -PKG_CONFIG!$PKG_CONFIG$ac_delim
  41929. -OGG_CFLAGS!$OGG_CFLAGS$ac_delim
  41930. -OGG_LIBS!$OGG_LIBS$ac_delim
  41931. -ALLOCA!$ALLOCA$ac_delim
  41932. -LIBOBJS!$LIBOBJS$ac_delim
  41933. -VORBIS_LIBS!$VORBIS_LIBS$ac_delim
  41934. -DEBUG!$DEBUG$ac_delim
  41935. -PROFILE!$PROFILE$ac_delim
  41936. -pthread_lib!$pthread_lib$ac_delim
  41937. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  41938. -_ACEOF
  41939. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  41940. +# into the resulting binary.
  41941. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  41942. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
  41943. - break
  41944. - elif $ac_last_try; then
  41945. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  41946. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  41947. - { (exit 1); exit 1; }; }
  41948. - else
  41949. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41950. - fi
  41951. -done
  41952. +# Set to "yes" if building a shared library automatically hardcodes DIR
  41953. +# into the library and all subsequent libraries and executables linked
  41954. +# against it.
  41955. +hardcode_automatic=$hardcode_automatic
  41956. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  41957. -if test -n "$ac_eof"; then
  41958. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  41959. - ac_eof=`expr $ac_eof + 1`
  41960. -fi
  41961. -
  41962. -cat >>$CONFIG_STATUS <<_ACEOF
  41963. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  41964. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  41965. -_ACEOF
  41966. -sed '
  41967. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  41968. -s/^/s,@/; s/!/@,|#_!!_#|/
  41969. -:n
  41970. -t n
  41971. -s/'"$ac_delim"'$/,g/; t
  41972. -s/$/\\/; p
  41973. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  41974. -' >>$CONFIG_STATUS <conf$$subs.sed
  41975. -rm -f conf$$subs.sed
  41976. -cat >>$CONFIG_STATUS <<_ACEOF
  41977. -:end
  41978. -s/|#_!!_#|//g
  41979. -CEOF$ac_eof
  41980. -_ACEOF
  41981. +# Set to yes if linker adds runtime paths of dependent libraries
  41982. +# to runtime path list.
  41983. +inherit_rpath=$inherit_rpath
  41984. +# Whether libtool must link a program against all its dependency libraries.
  41985. +link_all_deplibs=$link_all_deplibs
  41986. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  41987. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  41988. -# trailing colons and then remove the whole line if VPATH becomes empty
  41989. -# (actually we leave an empty line to preserve line numbers).
  41990. -if test "x$srcdir" = x.; then
  41991. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  41992. -s/:*\$(srcdir):*/:/
  41993. -s/:*\${srcdir}:*/:/
  41994. -s/:*@srcdir@:*/:/
  41995. -s/^\([^=]*=[ ]*\):*/\1/
  41996. -s/:*$//
  41997. -s/^[^=]*=[ ]*$//
  41998. -}'
  41999. -fi
  42000. +# Fix the shell variable \$srcfile for the compiler.
  42001. +fix_srcfile_path=$lt_fix_srcfile_path
  42002. -cat >>$CONFIG_STATUS <<\_ACEOF
  42003. -fi # test -n "$CONFIG_FILES"
  42004. +# Set to "yes" if exported symbols are required.
  42005. +always_export_symbols=$always_export_symbols
  42006. +# The commands to list exported symbols.
  42007. +export_symbols_cmds=$lt_export_symbols_cmds
  42008. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  42009. -do
  42010. - case $ac_tag in
  42011. - :[FHLC]) ac_mode=$ac_tag; continue;;
  42012. - esac
  42013. - case $ac_mode$ac_tag in
  42014. - :[FHL]*:*);;
  42015. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  42016. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  42017. - { (exit 1); exit 1; }; };;
  42018. - :[FH]-) ac_tag=-:-;;
  42019. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  42020. - esac
  42021. - ac_save_IFS=$IFS
  42022. - IFS=:
  42023. - set x $ac_tag
  42024. - IFS=$ac_save_IFS
  42025. - shift
  42026. - ac_file=$1
  42027. - shift
  42028. +# Symbols that should not be listed in the preloaded symbols.
  42029. +exclude_expsyms=$lt_exclude_expsyms
  42030. - case $ac_mode in
  42031. - :L) ac_source=$1;;
  42032. - :[FH])
  42033. - ac_file_inputs=
  42034. - for ac_f
  42035. - do
  42036. - case $ac_f in
  42037. - -) ac_f="$tmp/stdin";;
  42038. - *) # Look for the file first in the build tree, then in the source tree
  42039. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  42040. - # because $ac_f cannot contain `:'.
  42041. - test -f "$ac_f" ||
  42042. - case $ac_f in
  42043. - [\\/$]*) false;;
  42044. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  42045. - esac ||
  42046. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  42047. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  42048. - { (exit 1); exit 1; }; };;
  42049. - esac
  42050. - ac_file_inputs="$ac_file_inputs $ac_f"
  42051. - done
  42052. +# Symbols that must always be exported.
  42053. +include_expsyms=$lt_include_expsyms
  42054. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  42055. - # use $as_me), people would be surprised to read:
  42056. - # /* config.h. Generated by config.status. */
  42057. - configure_input="Generated from "`IFS=:
  42058. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  42059. - if test x"$ac_file" != x-; then
  42060. - configure_input="$ac_file. $configure_input"
  42061. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  42062. -echo "$as_me: creating $ac_file" >&6;}
  42063. - fi
  42064. +# Commands necessary for linking programs (against libraries) with templates.
  42065. +prelink_cmds=$lt_prelink_cmds
  42066. - case $ac_tag in
  42067. - *:-:* | *:-) cat >"$tmp/stdin";;
  42068. - esac
  42069. - ;;
  42070. - esac
  42071. +# Specify filename containing input files.
  42072. +file_list_spec=$lt_file_list_spec
  42073. - ac_dir=`$as_dirname -- "$ac_file" ||
  42074. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42075. - X"$ac_file" : 'X\(//\)[^/]' \| \
  42076. - X"$ac_file" : 'X\(//\)$' \| \
  42077. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  42078. -echo X"$ac_file" |
  42079. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42080. - s//\1/
  42081. - q
  42082. - }
  42083. - /^X\(\/\/\)[^/].*/{
  42084. - s//\1/
  42085. - q
  42086. - }
  42087. - /^X\(\/\/\)$/{
  42088. - s//\1/
  42089. - q
  42090. - }
  42091. - /^X\(\/\).*/{
  42092. - s//\1/
  42093. - q
  42094. - }
  42095. - s/.*/./; q'`
  42096. - { as_dir="$ac_dir"
  42097. - case $as_dir in #(
  42098. - -*) as_dir=./$as_dir;;
  42099. - esac
  42100. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  42101. - as_dirs=
  42102. - while :; do
  42103. - case $as_dir in #(
  42104. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  42105. - *) as_qdir=$as_dir;;
  42106. - esac
  42107. - as_dirs="'$as_qdir' $as_dirs"
  42108. - as_dir=`$as_dirname -- "$as_dir" ||
  42109. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42110. - X"$as_dir" : 'X\(//\)[^/]' \| \
  42111. - X"$as_dir" : 'X\(//\)$' \| \
  42112. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  42113. -echo X"$as_dir" |
  42114. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42115. - s//\1/
  42116. - q
  42117. - }
  42118. - /^X\(\/\/\)[^/].*/{
  42119. - s//\1/
  42120. - q
  42121. - }
  42122. - /^X\(\/\/\)$/{
  42123. - s//\1/
  42124. - q
  42125. - }
  42126. - /^X\(\/\).*/{
  42127. - s//\1/
  42128. - q
  42129. - }
  42130. - s/.*/./; q'`
  42131. - test -d "$as_dir" && break
  42132. - done
  42133. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  42134. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  42135. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  42136. - { (exit 1); exit 1; }; }; }
  42137. - ac_builddir=.
  42138. +# How to hardcode a shared library path into an executable.
  42139. +hardcode_action=$hardcode_action
  42140. -case "$ac_dir" in
  42141. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42142. -*)
  42143. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  42144. - # A ".." for each directory in $ac_dir_suffix.
  42145. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  42146. - case $ac_top_builddir_sub in
  42147. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42148. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  42149. - esac ;;
  42150. -esac
  42151. -ac_abs_top_builddir=$ac_pwd
  42152. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  42153. -# for backward compatibility:
  42154. -ac_top_builddir=$ac_top_build_prefix
  42155. +# ### END LIBTOOL CONFIG
  42156. +
  42157. +_LT_EOF
  42158. +
  42159. + case $host_os in
  42160. + aix3*)
  42161. + cat <<\_LT_EOF >> "$cfgfile"
  42162. +# AIX sometimes has problems with the GCC collect2 program. For some
  42163. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  42164. +# vanish in a puff of smoke.
  42165. +if test "X${COLLECT_NAMES+set}" != Xset; then
  42166. + COLLECT_NAMES=
  42167. + export COLLECT_NAMES
  42168. +fi
  42169. +_LT_EOF
  42170. + ;;
  42171. + esac
  42172. -case $srcdir in
  42173. - .) # We are building in place.
  42174. - ac_srcdir=.
  42175. - ac_top_srcdir=$ac_top_builddir_sub
  42176. - ac_abs_top_srcdir=$ac_pwd ;;
  42177. - [\\/]* | ?:[\\/]* ) # Absolute name.
  42178. - ac_srcdir=$srcdir$ac_dir_suffix;
  42179. - ac_top_srcdir=$srcdir
  42180. - ac_abs_top_srcdir=$srcdir ;;
  42181. - *) # Relative name.
  42182. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  42183. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  42184. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  42185. -esac
  42186. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  42187. +ltmain="$ac_aux_dir/ltmain.sh"
  42188. - case $ac_mode in
  42189. - :F)
  42190. - #
  42191. - # CONFIG_FILE
  42192. - #
  42193. - case $INSTALL in
  42194. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  42195. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  42196. - esac
  42197. - ac_MKDIR_P=$MKDIR_P
  42198. - case $MKDIR_P in
  42199. - [\\/$]* | ?:[\\/]* ) ;;
  42200. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  42201. + # We use sed instead of cat because bash on DJGPP gets confused if
  42202. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  42203. + # text mode, it properly converts lines to CR/LF. This bash problem
  42204. + # is reportedly fixed, but why not run on old versions too?
  42205. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  42206. + || (rm -f "$cfgfile"; exit 1)
  42207. +
  42208. + case $xsi_shell in
  42209. + yes)
  42210. + cat << \_LT_EOF >> "$cfgfile"
  42211. +
  42212. +# func_dirname file append nondir_replacement
  42213. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  42214. +# otherwise set result to NONDIR_REPLACEMENT.
  42215. +func_dirname ()
  42216. +{
  42217. + case ${1} in
  42218. + */*) func_dirname_result="${1%/*}${2}" ;;
  42219. + * ) func_dirname_result="${3}" ;;
  42220. esac
  42221. -_ACEOF
  42222. +}
  42223. -cat >>$CONFIG_STATUS <<\_ACEOF
  42224. -# If the template does not know about datarootdir, expand it.
  42225. -# FIXME: This hack should be removed a few years after 2.60.
  42226. -ac_datarootdir_hack=; ac_datarootdir_seen=
  42227. +# func_basename file
  42228. +func_basename ()
  42229. +{
  42230. + func_basename_result="${1##*/}"
  42231. +}
  42232. -case `sed -n '/datarootdir/ {
  42233. - p
  42234. - q
  42235. +# func_dirname_and_basename file append nondir_replacement
  42236. +# perform func_basename and func_dirname in a single function
  42237. +# call:
  42238. +# dirname: Compute the dirname of FILE. If nonempty,
  42239. +# add APPEND to the result, otherwise set result
  42240. +# to NONDIR_REPLACEMENT.
  42241. +# value returned in "$func_dirname_result"
  42242. +# basename: Compute filename of FILE.
  42243. +# value retuned in "$func_basename_result"
  42244. +# Implementation must be kept synchronized with func_dirname
  42245. +# and func_basename. For efficiency, we do not delegate to
  42246. +# those functions but instead duplicate the functionality here.
  42247. +func_dirname_and_basename ()
  42248. +{
  42249. + case ${1} in
  42250. + */*) func_dirname_result="${1%/*}${2}" ;;
  42251. + * ) func_dirname_result="${3}" ;;
  42252. + esac
  42253. + func_basename_result="${1##*/}"
  42254. }
  42255. -/@datadir@/p
  42256. -/@docdir@/p
  42257. -/@infodir@/p
  42258. -/@localedir@/p
  42259. -/@mandir@/p
  42260. -' $ac_file_inputs` in
  42261. -*datarootdir*) ac_datarootdir_seen=yes;;
  42262. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  42263. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  42264. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  42265. -_ACEOF
  42266. -cat >>$CONFIG_STATUS <<_ACEOF
  42267. - ac_datarootdir_hack='
  42268. - s&@datadir@&$datadir&g
  42269. - s&@docdir@&$docdir&g
  42270. - s&@infodir@&$infodir&g
  42271. - s&@localedir@&$localedir&g
  42272. - s&@mandir@&$mandir&g
  42273. - s&\\\${datarootdir}&$datarootdir&g' ;;
  42274. -esac
  42275. -_ACEOF
  42276. -# Neutralize VPATH when `$srcdir' = `.'.
  42277. -# Shell code in configure.ac might set extrasub.
  42278. -# FIXME: do we really want to maintain this feature?
  42279. -cat >>$CONFIG_STATUS <<_ACEOF
  42280. - sed "$ac_vpsub
  42281. -$extrasub
  42282. -_ACEOF
  42283. -cat >>$CONFIG_STATUS <<\_ACEOF
  42284. -:t
  42285. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  42286. -s&@configure_input@&$configure_input&;t t
  42287. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  42288. -s&@srcdir@&$ac_srcdir&;t t
  42289. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  42290. -s&@top_srcdir@&$ac_top_srcdir&;t t
  42291. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  42292. -s&@builddir@&$ac_builddir&;t t
  42293. -s&@abs_builddir@&$ac_abs_builddir&;t t
  42294. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  42295. -s&@INSTALL@&$ac_INSTALL&;t t
  42296. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  42297. -$ac_datarootdir_hack
  42298. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  42299. +# func_stripname prefix suffix name
  42300. +# strip PREFIX and SUFFIX off of NAME.
  42301. +# PREFIX and SUFFIX must not contain globbing or regex special
  42302. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  42303. +# dot (in which case that matches only a dot).
  42304. +func_stripname ()
  42305. +{
  42306. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  42307. + # positional parameters, so assign one to ordinary parameter first.
  42308. + func_stripname_result=${3}
  42309. + func_stripname_result=${func_stripname_result#"${1}"}
  42310. + func_stripname_result=${func_stripname_result%"${2}"}
  42311. +}
  42312. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  42313. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  42314. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  42315. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42316. -which seems to be undefined. Please make sure it is defined." >&5
  42317. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42318. -which seems to be undefined. Please make sure it is defined." >&2;}
  42319. +# func_opt_split
  42320. +func_opt_split ()
  42321. +{
  42322. + func_opt_split_opt=${1%%=*}
  42323. + func_opt_split_arg=${1#*=}
  42324. +}
  42325. - rm -f "$tmp/stdin"
  42326. - case $ac_file in
  42327. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  42328. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  42329. +# func_lo2o object
  42330. +func_lo2o ()
  42331. +{
  42332. + case ${1} in
  42333. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  42334. + *) func_lo2o_result=${1} ;;
  42335. esac
  42336. - ;;
  42337. - :H)
  42338. - #
  42339. - # CONFIG_HEADER
  42340. - #
  42341. -_ACEOF
  42342. +}
  42343. -# Transform confdefs.h into a sed script `conftest.defines', that
  42344. -# substitutes the proper values into config.h.in to produce config.h.
  42345. -rm -f conftest.defines conftest.tail
  42346. -# First, append a space to every undef/define line, to ease matching.
  42347. -echo 's/$/ /' >conftest.defines
  42348. -# Then, protect against being on the right side of a sed subst, or in
  42349. -# an unquoted here document, in config.status. If some macros were
  42350. -# called several times there might be several #defines for the same
  42351. -# symbol, which is useless. But do not sort them, since the last
  42352. -# AC_DEFINE must be honored.
  42353. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  42354. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  42355. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  42356. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  42357. -# just an empty string.
  42358. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  42359. -ac_dB='\\)[ (].*,\\1define\\2'
  42360. -ac_dC=' '
  42361. -ac_dD=' ,'
  42362. +# func_xform libobj-or-source
  42363. +func_xform ()
  42364. +{
  42365. + func_xform_result=${1%.*}.lo
  42366. +}
  42367. -uniq confdefs.h |
  42368. - sed -n '
  42369. - t rset
  42370. - :rset
  42371. - s/^[ ]*#[ ]*define[ ][ ]*//
  42372. - t ok
  42373. - d
  42374. - :ok
  42375. - s/[\\&,]/\\&/g
  42376. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  42377. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  42378. - ' >>conftest.defines
  42379. -
  42380. -# Remove the space that was appended to ease matching.
  42381. -# Then replace #undef with comments. This is necessary, for
  42382. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  42383. -# on some systems where configure will not decide to define it.
  42384. -# (The regexp can be short, since the line contains either #define or #undef.)
  42385. -echo 's/ $//
  42386. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  42387. -
  42388. -# Break up conftest.defines:
  42389. -ac_max_sed_lines=50
  42390. -
  42391. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  42392. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  42393. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  42394. -# et cetera.
  42395. -ac_in='$ac_file_inputs'
  42396. -ac_out='"$tmp/out1"'
  42397. -ac_nxt='"$tmp/out2"'
  42398. +# func_arith arithmetic-term...
  42399. +func_arith ()
  42400. +{
  42401. + func_arith_result=$(( $* ))
  42402. +}
  42403. -while :
  42404. -do
  42405. - # Write a here document:
  42406. - cat >>$CONFIG_STATUS <<_ACEOF
  42407. - # First, check the format of the line:
  42408. - cat >"\$tmp/defines.sed" <<\\CEOF
  42409. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  42410. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  42411. -b
  42412. -:def
  42413. -_ACEOF
  42414. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  42415. - echo 'CEOF
  42416. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  42417. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  42418. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  42419. - grep . conftest.tail >/dev/null || break
  42420. - rm -f conftest.defines
  42421. - mv conftest.tail conftest.defines
  42422. -done
  42423. -rm -f conftest.defines conftest.tail
  42424. +# func_len string
  42425. +# STRING may not start with a hyphen.
  42426. +func_len ()
  42427. +{
  42428. + func_len_result=${#1}
  42429. +}
  42430. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  42431. -cat >>$CONFIG_STATUS <<\_ACEOF
  42432. - if test x"$ac_file" != x-; then
  42433. - echo "/* $configure_input */" >"$tmp/config.h"
  42434. - cat "$ac_result" >>"$tmp/config.h"
  42435. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  42436. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  42437. -echo "$as_me: $ac_file is unchanged" >&6;}
  42438. - else
  42439. - rm -f $ac_file
  42440. - mv "$tmp/config.h" $ac_file
  42441. - fi
  42442. +_LT_EOF
  42443. + ;;
  42444. + *) # Bourne compatible functions.
  42445. + cat << \_LT_EOF >> "$cfgfile"
  42446. +
  42447. +# func_dirname file append nondir_replacement
  42448. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  42449. +# otherwise set result to NONDIR_REPLACEMENT.
  42450. +func_dirname ()
  42451. +{
  42452. + # Extract subdirectory from the argument.
  42453. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  42454. + if test "X$func_dirname_result" = "X${1}"; then
  42455. + func_dirname_result="${3}"
  42456. else
  42457. - echo "/* $configure_input */"
  42458. - cat "$ac_result"
  42459. + func_dirname_result="$func_dirname_result${2}"
  42460. fi
  42461. - rm -f "$tmp/out12"
  42462. -# Compute $ac_file's index in $config_headers.
  42463. -_am_stamp_count=1
  42464. -for _am_header in $config_headers :; do
  42465. - case $_am_header in
  42466. - $ac_file | $ac_file:* )
  42467. - break ;;
  42468. - * )
  42469. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  42470. - esac
  42471. -done
  42472. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  42473. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42474. - X$ac_file : 'X\(//\)[^/]' \| \
  42475. - X$ac_file : 'X\(//\)$' \| \
  42476. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  42477. -echo X$ac_file |
  42478. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42479. - s//\1/
  42480. - q
  42481. - }
  42482. - /^X\(\/\/\)[^/].*/{
  42483. - s//\1/
  42484. - q
  42485. - }
  42486. - /^X\(\/\/\)$/{
  42487. - s//\1/
  42488. - q
  42489. - }
  42490. - /^X\(\/\).*/{
  42491. - s//\1/
  42492. - q
  42493. - }
  42494. - s/.*/./; q'`/stamp-h$_am_stamp_count
  42495. - ;;
  42496. +}
  42497. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  42498. -echo "$as_me: executing $ac_file commands" >&6;}
  42499. - ;;
  42500. +# func_basename file
  42501. +func_basename ()
  42502. +{
  42503. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  42504. +}
  42505. +
  42506. +
  42507. +# func_stripname prefix suffix name
  42508. +# strip PREFIX and SUFFIX off of NAME.
  42509. +# PREFIX and SUFFIX must not contain globbing or regex special
  42510. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  42511. +# dot (in which case that matches only a dot).
  42512. +# func_strip_suffix prefix name
  42513. +func_stripname ()
  42514. +{
  42515. + case ${2} in
  42516. + .*) func_stripname_result=`$ECHO "X${3}" \
  42517. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  42518. + *) func_stripname_result=`$ECHO "X${3}" \
  42519. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  42520. esac
  42521. +}
  42522. +# sed scripts:
  42523. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  42524. +my_sed_long_arg='1s/^-[^=]*=//'
  42525. - case $ac_file$ac_mode in
  42526. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  42527. - # Strip MF so we end up with the name of the file.
  42528. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  42529. - # Check whether this is an Automake generated Makefile or not.
  42530. - # We used to match only the files named `Makefile.in', but
  42531. - # some people rename them; so instead we look at the file content.
  42532. - # Grep'ing the first line is not enough: some people post-process
  42533. - # each Makefile.in and add a new line on top of each file to say so.
  42534. - # Grep'ing the whole file is not good either: AIX grep has a line
  42535. - # limit of 2048, but all sed's we know have understand at least 4000.
  42536. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  42537. - dirpart=`$as_dirname -- "$mf" ||
  42538. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42539. - X"$mf" : 'X\(//\)[^/]' \| \
  42540. - X"$mf" : 'X\(//\)$' \| \
  42541. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  42542. -echo X"$mf" |
  42543. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42544. - s//\1/
  42545. - q
  42546. - }
  42547. - /^X\(\/\/\)[^/].*/{
  42548. - s//\1/
  42549. - q
  42550. - }
  42551. - /^X\(\/\/\)$/{
  42552. - s//\1/
  42553. - q
  42554. - }
  42555. - /^X\(\/\).*/{
  42556. - s//\1/
  42557. - q
  42558. - }
  42559. - s/.*/./; q'`
  42560. - else
  42561. - continue
  42562. - fi
  42563. - # Extract the definition of DEPDIR, am__include, and am__quote
  42564. - # from the Makefile without running `make'.
  42565. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  42566. - test -z "$DEPDIR" && continue
  42567. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  42568. - test -z "am__include" && continue
  42569. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  42570. - # When using ansi2knr, U may be empty or an underscore; expand it
  42571. - U=`sed -n 's/^U = //p' < "$mf"`
  42572. - # Find all dependency output files, they are included files with
  42573. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  42574. - # simplest approach to changing $(DEPDIR) to its actual value in the
  42575. - # expansion.
  42576. - for file in `sed -n "
  42577. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  42578. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  42579. - # Make sure the directory exists.
  42580. - test -f "$dirpart/$file" && continue
  42581. - fdir=`$as_dirname -- "$file" ||
  42582. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42583. - X"$file" : 'X\(//\)[^/]' \| \
  42584. - X"$file" : 'X\(//\)$' \| \
  42585. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  42586. -echo X"$file" |
  42587. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42588. - s//\1/
  42589. - q
  42590. - }
  42591. - /^X\(\/\/\)[^/].*/{
  42592. - s//\1/
  42593. - q
  42594. - }
  42595. - /^X\(\/\/\)$/{
  42596. - s//\1/
  42597. - q
  42598. - }
  42599. - /^X\(\/\).*/{
  42600. - s//\1/
  42601. - q
  42602. - }
  42603. - s/.*/./; q'`
  42604. - { as_dir=$dirpart/$fdir
  42605. - case $as_dir in #(
  42606. - -*) as_dir=./$as_dir;;
  42607. +# func_opt_split
  42608. +func_opt_split ()
  42609. +{
  42610. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  42611. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  42612. +}
  42613. +
  42614. +# func_lo2o object
  42615. +func_lo2o ()
  42616. +{
  42617. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  42618. +}
  42619. +
  42620. +# func_xform libobj-or-source
  42621. +func_xform ()
  42622. +{
  42623. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  42624. +}
  42625. +
  42626. +# func_arith arithmetic-term...
  42627. +func_arith ()
  42628. +{
  42629. + func_arith_result=`expr "$@"`
  42630. +}
  42631. +
  42632. +# func_len string
  42633. +# STRING may not start with a hyphen.
  42634. +func_len ()
  42635. +{
  42636. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  42637. +}
  42638. +
  42639. +_LT_EOF
  42640. +esac
  42641. +
  42642. +case $lt_shell_append in
  42643. + yes)
  42644. + cat << \_LT_EOF >> "$cfgfile"
  42645. +
  42646. +# func_append var value
  42647. +# Append VALUE to the end of shell variable VAR.
  42648. +func_append ()
  42649. +{
  42650. + eval "$1+=\$2"
  42651. +}
  42652. +_LT_EOF
  42653. + ;;
  42654. + *)
  42655. + cat << \_LT_EOF >> "$cfgfile"
  42656. +
  42657. +# func_append var value
  42658. +# Append VALUE to the end of shell variable VAR.
  42659. +func_append ()
  42660. +{
  42661. + eval "$1=\$$1\$2"
  42662. +}
  42663. +
  42664. +_LT_EOF
  42665. + ;;
  42666. esac
  42667. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  42668. - as_dirs=
  42669. - while :; do
  42670. - case $as_dir in #(
  42671. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  42672. - *) as_qdir=$as_dir;;
  42673. - esac
  42674. - as_dirs="'$as_qdir' $as_dirs"
  42675. - as_dir=`$as_dirname -- "$as_dir" ||
  42676. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42677. - X"$as_dir" : 'X\(//\)[^/]' \| \
  42678. - X"$as_dir" : 'X\(//\)$' \| \
  42679. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  42680. -echo X"$as_dir" |
  42681. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42682. - s//\1/
  42683. - q
  42684. - }
  42685. - /^X\(\/\/\)[^/].*/{
  42686. - s//\1/
  42687. - q
  42688. - }
  42689. - /^X\(\/\/\)$/{
  42690. - s//\1/
  42691. - q
  42692. - }
  42693. - /^X\(\/\).*/{
  42694. - s//\1/
  42695. - q
  42696. - }
  42697. - s/.*/./; q'`
  42698. - test -d "$as_dir" && break
  42699. - done
  42700. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  42701. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  42702. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  42703. - { (exit 1); exit 1; }; }; }
  42704. - # echo "creating $dirpart/$file"
  42705. - echo '# dummy' > "$dirpart/$file"
  42706. - done
  42707. -done
  42708. +
  42709. +
  42710. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  42711. + || (rm -f "$cfgfile"; exit 1)
  42712. +
  42713. + mv -f "$cfgfile" "$ofile" ||
  42714. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  42715. + chmod +x "$ofile"
  42716. +
  42717. ;;
  42718. esac
  42719. done # for ac_tag
  42720. -{ (exit 0); exit 0; }
  42721. +as_fn_exit 0
  42722. _ACEOF
  42723. -chmod +x $CONFIG_STATUS
  42724. ac_clean_files=$ac_clean_files_save
  42725. +test $ac_write_fail = 0 ||
  42726. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  42727. +
  42728. # configure is writing to config.log, and then calls config.status.
  42729. # config.status does its own redirection, appending to config.log.
  42730. @@ -22109,6 +13783,10 @@
  42731. exec 5>>config.log
  42732. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  42733. # would make configure fail if this is the last instruction.
  42734. - $ac_cs_success || { (exit 1); exit 1; }
  42735. + $ac_cs_success || as_fn_exit $?
  42736. +fi
  42737. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  42738. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  42739. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  42740. fi
  42741. diff -Nur libvorbis-1.2.0.orig/depcomp libvorbis-1.2.0/depcomp
  42742. --- libvorbis-1.2.0.orig/depcomp 2006-11-17 14:08:39.000000000 +0100
  42743. +++ libvorbis-1.2.0/depcomp 2011-02-17 18:30:21.373598071 +0100
  42744. @@ -1,10 +1,10 @@
  42745. #! /bin/sh
  42746. # depcomp - compile a program generating dependencies as side-effects
  42747. -scriptversion=2006-10-15.18
  42748. +scriptversion=2009-04-28.21; # UTC
  42749. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
  42750. -# Foundation, Inc.
  42751. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  42752. +# Software Foundation, Inc.
  42753. # This program is free software; you can redistribute it and/or modify
  42754. # it under the terms of the GNU General Public License as published by
  42755. @@ -17,9 +17,7 @@
  42756. # GNU General Public License for more details.
  42757. # You should have received a copy of the GNU General Public License
  42758. -# along with this program; if not, write to the Free Software
  42759. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  42760. -# 02110-1301, USA.
  42761. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  42762. # As a special exception to the GNU General Public License, if you
  42763. # distribute this file as part of a program that contains a
  42764. @@ -87,6 +85,15 @@
  42765. depmode=dashmstdout
  42766. fi
  42767. +cygpath_u="cygpath -u -f -"
  42768. +if test "$depmode" = msvcmsys; then
  42769. + # This is just like msvisualcpp but w/o cygpath translation.
  42770. + # Just convert the backslash-escaped backslashes to single forward
  42771. + # slashes to satisfy depend.m4
  42772. + cygpath_u="sed s,\\\\\\\\,/,g"
  42773. + depmode=msvisualcpp
  42774. +fi
  42775. +
  42776. case "$depmode" in
  42777. gcc3)
  42778. ## gcc 3 implements dependency tracking that does exactly what
  42779. @@ -192,14 +199,14 @@
  42780. ' < "$tmpdepfile" \
  42781. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  42782. tr '
  42783. -' ' ' >> $depfile
  42784. - echo >> $depfile
  42785. +' ' ' >> "$depfile"
  42786. + echo >> "$depfile"
  42787. # The second pass generates a dummy entry for each header file.
  42788. tr ' ' '
  42789. ' < "$tmpdepfile" \
  42790. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  42791. - >> $depfile
  42792. + >> "$depfile"
  42793. else
  42794. # The sourcefile does not contain any dependencies, so just
  42795. # store a dummy comment line, to avoid errors with the Makefile
  42796. @@ -215,34 +222,39 @@
  42797. # current directory. Also, the AIX compiler puts `$object:' at the
  42798. # start of each line; $object doesn't have directory information.
  42799. # Version 6 uses the directory in both cases.
  42800. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  42801. - tmpdepfile="$stripped.u"
  42802. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  42803. + test "x$dir" = "x$object" && dir=
  42804. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  42805. if test "$libtool" = yes; then
  42806. + tmpdepfile1=$dir$base.u
  42807. + tmpdepfile2=$base.u
  42808. + tmpdepfile3=$dir.libs/$base.u
  42809. "$@" -Wc,-M
  42810. else
  42811. + tmpdepfile1=$dir$base.u
  42812. + tmpdepfile2=$dir$base.u
  42813. + tmpdepfile3=$dir$base.u
  42814. "$@" -M
  42815. fi
  42816. stat=$?
  42817. - if test -f "$tmpdepfile"; then :
  42818. - else
  42819. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  42820. - tmpdepfile="$stripped.u"
  42821. - fi
  42822. -
  42823. if test $stat -eq 0; then :
  42824. else
  42825. - rm -f "$tmpdepfile"
  42826. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  42827. exit $stat
  42828. fi
  42829. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  42830. + do
  42831. + test -f "$tmpdepfile" && break
  42832. + done
  42833. if test -f "$tmpdepfile"; then
  42834. - outname="$stripped.o"
  42835. # Each line is of the form `foo.o: dependent.h'.
  42836. # Do two passes, one to just change these to
  42837. # `$object: dependent.h' and one to simply `dependent.h:'.
  42838. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  42839. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  42840. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  42841. + # That's a tab and a space in the [].
  42842. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  42843. else
  42844. # The sourcefile does not contain any dependencies, so just
  42845. # store a dummy comment line, to avoid errors with the Makefile
  42846. @@ -323,7 +335,12 @@
  42847. if test -f "$tmpdepfile"; then
  42848. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  42849. # Add `dependent.h:' lines.
  42850. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  42851. + sed -ne '2,${
  42852. + s/^ *//
  42853. + s/ \\*$//
  42854. + s/$/:/
  42855. + p
  42856. + }' "$tmpdepfile" >> "$depfile"
  42857. else
  42858. echo "#dummy" > "$depfile"
  42859. fi
  42860. @@ -399,7 +416,7 @@
  42861. # Remove the call to Libtool.
  42862. if test "$libtool" = yes; then
  42863. - while test $1 != '--mode=compile'; do
  42864. + while test "X$1" != 'X--mode=compile'; do
  42865. shift
  42866. done
  42867. shift
  42868. @@ -450,32 +467,39 @@
  42869. "$@" || exit $?
  42870. # Remove any Libtool call
  42871. if test "$libtool" = yes; then
  42872. - while test $1 != '--mode=compile'; do
  42873. + while test "X$1" != 'X--mode=compile'; do
  42874. shift
  42875. done
  42876. shift
  42877. fi
  42878. # X makedepend
  42879. shift
  42880. - cleared=no
  42881. - for arg in "$@"; do
  42882. + cleared=no eat=no
  42883. + for arg
  42884. + do
  42885. case $cleared in
  42886. no)
  42887. set ""; shift
  42888. cleared=yes ;;
  42889. esac
  42890. + if test $eat = yes; then
  42891. + eat=no
  42892. + continue
  42893. + fi
  42894. case "$arg" in
  42895. -D*|-I*)
  42896. set fnord "$@" "$arg"; shift ;;
  42897. # Strip any option that makedepend may not understand. Remove
  42898. # the object too, otherwise makedepend will parse it as a source file.
  42899. + -arch)
  42900. + eat=yes ;;
  42901. -*|$object)
  42902. ;;
  42903. *)
  42904. set fnord "$@" "$arg"; shift ;;
  42905. esac
  42906. done
  42907. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  42908. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  42909. touch "$tmpdepfile"
  42910. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  42911. rm -f "$depfile"
  42912. @@ -495,7 +519,7 @@
  42913. # Remove the call to Libtool.
  42914. if test "$libtool" = yes; then
  42915. - while test $1 != '--mode=compile'; do
  42916. + while test "X$1" != 'X--mode=compile'; do
  42917. shift
  42918. done
  42919. shift
  42920. @@ -533,13 +557,27 @@
  42921. msvisualcpp)
  42922. # Important note: in order to support this mode, a compiler *must*
  42923. - # always write the preprocessed file to stdout, regardless of -o,
  42924. - # because we must use -o when running libtool.
  42925. + # always write the preprocessed file to stdout.
  42926. "$@" || exit $?
  42927. +
  42928. + # Remove the call to Libtool.
  42929. + if test "$libtool" = yes; then
  42930. + while test "X$1" != 'X--mode=compile'; do
  42931. + shift
  42932. + done
  42933. + shift
  42934. + fi
  42935. +
  42936. IFS=" "
  42937. for arg
  42938. do
  42939. case "$arg" in
  42940. + -o)
  42941. + shift
  42942. + ;;
  42943. + $object)
  42944. + shift
  42945. + ;;
  42946. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  42947. set fnord "$@"
  42948. shift
  42949. @@ -552,16 +590,23 @@
  42950. ;;
  42951. esac
  42952. done
  42953. - "$@" -E |
  42954. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  42955. + "$@" -E 2>/dev/null |
  42956. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  42957. rm -f "$depfile"
  42958. echo "$object : \\" > "$depfile"
  42959. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  42960. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  42961. echo " " >> "$depfile"
  42962. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  42963. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  42964. rm -f "$tmpdepfile"
  42965. ;;
  42966. +msvcmsys)
  42967. + # This case exists only to let depend.m4 do its work. It works by
  42968. + # looking at the text of this script. This case will never be run,
  42969. + # since it is checked for above.
  42970. + exit 1
  42971. + ;;
  42972. +
  42973. none)
  42974. exec "$@"
  42975. ;;
  42976. @@ -580,5 +625,6 @@
  42977. # eval: (add-hook 'write-file-hooks 'time-stamp)
  42978. # time-stamp-start: "scriptversion="
  42979. # time-stamp-format: "%:y-%02m-%02d.%02H"
  42980. -# time-stamp-end: "$"
  42981. +# time-stamp-time-zone: "UTC"
  42982. +# time-stamp-end: "; # UTC"
  42983. # End:
  42984. diff -Nur libvorbis-1.2.0.orig/doc/Makefile.in libvorbis-1.2.0/doc/Makefile.in
  42985. --- libvorbis-1.2.0.orig/doc/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  42986. +++ libvorbis-1.2.0/doc/Makefile.in 2011-02-17 18:30:20.973563394 +0100
  42987. @@ -1,8 +1,9 @@
  42988. -# Makefile.in generated by automake 1.10 from Makefile.am.
  42989. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  42990. # @configure_input@
  42991. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  42992. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  42993. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  42994. +# Inc.
  42995. # This Makefile.in is free software; the Free Software Foundation
  42996. # gives unlimited permission to copy and/or distribute it,
  42997. # with or without modifications, as long as this notice is preserved.
  42998. @@ -16,8 +17,9 @@
  42999. VPATH = @srcdir@
  43000. pkgdatadir = $(datadir)/@PACKAGE@
  43001. -pkglibdir = $(libdir)/@PACKAGE@
  43002. pkgincludedir = $(includedir)/@PACKAGE@
  43003. +pkglibdir = $(libdir)/@PACKAGE@
  43004. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  43005. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  43006. install_sh_DATA = $(install_sh) -c -m 644
  43007. install_sh_PROGRAM = $(install_sh) -c
  43008. @@ -43,6 +45,7 @@
  43009. mkinstalldirs = $(install_sh) -d
  43010. CONFIG_HEADER = $(top_builddir)/config.h
  43011. CONFIG_CLEAN_FILES =
  43012. +CONFIG_CLEAN_VPATH_FILES =
  43013. SOURCES =
  43014. DIST_SOURCES =
  43015. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  43016. @@ -57,16 +60,58 @@
  43017. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  43018. *) f=$$p;; \
  43019. esac;
  43020. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  43021. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  43022. +am__install_max = 40
  43023. +am__nobase_strip_setup = \
  43024. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  43025. +am__nobase_strip = \
  43026. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  43027. +am__nobase_list = $(am__nobase_strip_setup); \
  43028. + for p in $$list; do echo "$$p $$p"; done | \
  43029. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  43030. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  43031. + if (++n[$$2] == $(am__install_max)) \
  43032. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  43033. + END { for (dir in files) print dir, files[dir] }'
  43034. +am__base_list = \
  43035. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  43036. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  43037. am__installdirs = "$(DESTDIR)$(docdir)"
  43038. -docDATA_INSTALL = $(INSTALL_DATA)
  43039. DATA = $(doc_DATA)
  43040. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  43041. distclean-recursive maintainer-clean-recursive
  43042. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  43043. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  43044. + distdir
  43045. ETAGS = etags
  43046. CTAGS = ctags
  43047. DIST_SUBDIRS = $(SUBDIRS)
  43048. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  43049. +am__relativize = \
  43050. + dir0=`pwd`; \
  43051. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  43052. + sed_rest='s,^[^/]*/*,,'; \
  43053. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  43054. + sed_butlast='s,/*[^/]*$$,,'; \
  43055. + while test -n "$$dir1"; do \
  43056. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  43057. + if test "$$first" != "."; then \
  43058. + if test "$$first" = ".."; then \
  43059. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  43060. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  43061. + else \
  43062. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  43063. + if test "$$first2" = "$$first"; then \
  43064. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  43065. + else \
  43066. + dir2="../$$dir2"; \
  43067. + fi; \
  43068. + dir0="$$dir0"/"$$first"; \
  43069. + fi; \
  43070. + fi; \
  43071. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  43072. + done; \
  43073. + reldir="$$dir2"
  43074. ACLOCAL = @ACLOCAL@
  43075. ALLOCA = @ALLOCA@
  43076. AMTAR = @AMTAR@
  43077. @@ -80,22 +125,18 @@
  43078. CFLAGS = @CFLAGS@
  43079. CPP = @CPP@
  43080. CPPFLAGS = @CPPFLAGS@
  43081. -CXX = @CXX@
  43082. -CXXCPP = @CXXCPP@
  43083. -CXXDEPMODE = @CXXDEPMODE@
  43084. -CXXFLAGS = @CXXFLAGS@
  43085. CYGPATH_W = @CYGPATH_W@
  43086. DEBUG = @DEBUG@
  43087. DEFS = @DEFS@
  43088. DEPDIR = @DEPDIR@
  43089. -ECHO = @ECHO@
  43090. +DSYMUTIL = @DSYMUTIL@
  43091. +DUMPBIN = @DUMPBIN@
  43092. ECHO_C = @ECHO_C@
  43093. ECHO_N = @ECHO_N@
  43094. ECHO_T = @ECHO_T@
  43095. EGREP = @EGREP@
  43096. EXEEXT = @EXEEXT@
  43097. -F77 = @F77@
  43098. -FFLAGS = @FFLAGS@
  43099. +FGREP = @FGREP@
  43100. GREP = @GREP@
  43101. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  43102. INSTALL = @INSTALL@
  43103. @@ -103,29 +144,38 @@
  43104. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  43105. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  43106. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  43107. +LD = @LD@
  43108. LDFLAGS = @LDFLAGS@
  43109. LIBOBJS = @LIBOBJS@
  43110. LIBS = @LIBS@
  43111. LIBTOOL = @LIBTOOL@
  43112. +LIPO = @LIPO@
  43113. LN_S = @LN_S@
  43114. LTLIBOBJS = @LTLIBOBJS@
  43115. MAINT = @MAINT@
  43116. MAKEINFO = @MAKEINFO@
  43117. MKDIR_P = @MKDIR_P@
  43118. +NM = @NM@
  43119. +NMEDIT = @NMEDIT@
  43120. +OBJDUMP = @OBJDUMP@
  43121. OBJEXT = @OBJEXT@
  43122. OGG_CFLAGS = @OGG_CFLAGS@
  43123. OGG_LIBS = @OGG_LIBS@
  43124. +OTOOL = @OTOOL@
  43125. +OTOOL64 = @OTOOL64@
  43126. PACKAGE = @PACKAGE@
  43127. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  43128. PACKAGE_NAME = @PACKAGE_NAME@
  43129. PACKAGE_STRING = @PACKAGE_STRING@
  43130. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  43131. +PACKAGE_URL = @PACKAGE_URL@
  43132. PACKAGE_VERSION = @PACKAGE_VERSION@
  43133. PATH_SEPARATOR = @PATH_SEPARATOR@
  43134. PDFXMLTEX = @PDFXMLTEX@
  43135. PKG_CONFIG = @PKG_CONFIG@
  43136. PROFILE = @PROFILE@
  43137. RANLIB = @RANLIB@
  43138. +SED = @SED@
  43139. SET_MAKE = @SET_MAKE@
  43140. SHELL = @SHELL@
  43141. STRIP = @STRIP@
  43142. @@ -146,8 +196,7 @@
  43143. abs_top_builddir = @abs_top_builddir@
  43144. abs_top_srcdir = @abs_top_srcdir@
  43145. ac_ct_CC = @ac_ct_CC@
  43146. -ac_ct_CXX = @ac_ct_CXX@
  43147. -ac_ct_F77 = @ac_ct_F77@
  43148. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  43149. am__include = @am__include@
  43150. am__leading_dot = @am__leading_dot@
  43151. am__quote = @am__quote@
  43152. @@ -178,6 +227,7 @@
  43153. libexecdir = @libexecdir@
  43154. localedir = @localedir@
  43155. localstatedir = @localstatedir@
  43156. +lt_ECHO = @lt_ECHO@
  43157. mandir = @mandir@
  43158. mkdir_p = @mkdir_p@
  43159. oldincludedir = @oldincludedir@
  43160. @@ -195,6 +245,7 @@
  43161. target_cpu = @target_cpu@
  43162. target_os = @target_os@
  43163. target_vendor = @target_vendor@
  43164. +top_build_prefix = @top_build_prefix@
  43165. top_builddir = @top_builddir@
  43166. top_srcdir = @top_srcdir@
  43167. SUBDIRS = vorbisfile vorbisenc
  43168. @@ -291,14 +342,14 @@
  43169. @for dep in $?; do \
  43170. case '$(am__configure_deps)' in \
  43171. *$$dep*) \
  43172. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  43173. - && exit 0; \
  43174. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  43175. + && { if test -f $@; then exit 0; else break; fi; }; \
  43176. exit 1;; \
  43177. esac; \
  43178. done; \
  43179. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  43180. - cd $(top_srcdir) && \
  43181. - $(AUTOMAKE) --gnu doc/Makefile
  43182. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  43183. + $(am__cd) $(top_srcdir) && \
  43184. + $(AUTOMAKE) --gnu doc/Makefile
  43185. .PRECIOUS: Makefile
  43186. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  43187. @case '$?' in \
  43188. @@ -316,6 +367,7 @@
  43189. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43190. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  43191. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43192. +$(am__aclocal_m4_deps):
  43193. mostlyclean-libtool:
  43194. -rm -f *.lo
  43195. @@ -325,20 +377,23 @@
  43196. install-docDATA: $(doc_DATA)
  43197. @$(NORMAL_INSTALL)
  43198. test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  43199. - @list='$(doc_DATA)'; for p in $$list; do \
  43200. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  43201. + for p in $$list; do \
  43202. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  43203. - f=$(am__strip_dir) \
  43204. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  43205. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  43206. + echo "$$d$$p"; \
  43207. + done | $(am__base_list) | \
  43208. + while read files; do \
  43209. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  43210. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  43211. done
  43212. uninstall-docDATA:
  43213. @$(NORMAL_UNINSTALL)
  43214. - @list='$(doc_DATA)'; for p in $$list; do \
  43215. - f=$(am__strip_dir) \
  43216. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  43217. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  43218. - done
  43219. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  43220. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  43221. + test -n "$$files" || exit 0; \
  43222. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  43223. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  43224. # This directory's subdirectories are mostly independent; you can cd
  43225. # into them and run `make' without going through this Makefile.
  43226. @@ -347,7 +402,7 @@
  43227. # (which will cause the Makefiles to be regenerated when you run `make');
  43228. # (2) otherwise, pass the desired values on the `make' command line.
  43229. $(RECURSIVE_TARGETS):
  43230. - @failcom='exit 1'; \
  43231. + @fail= failcom='exit 1'; \
  43232. for f in x $$MAKEFLAGS; do \
  43233. case $$f in \
  43234. *=* | --[!k]*);; \
  43235. @@ -364,7 +419,7 @@
  43236. else \
  43237. local_target="$$target"; \
  43238. fi; \
  43239. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  43240. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  43241. || eval $$failcom; \
  43242. done; \
  43243. if test "$$dot_seen" = "no"; then \
  43244. @@ -372,7 +427,7 @@
  43245. fi; test -z "$$fail"
  43246. $(RECURSIVE_CLEAN_TARGETS):
  43247. - @failcom='exit 1'; \
  43248. + @fail= failcom='exit 1'; \
  43249. for f in x $$MAKEFLAGS; do \
  43250. case $$f in \
  43251. *=* | --[!k]*);; \
  43252. @@ -398,16 +453,16 @@
  43253. else \
  43254. local_target="$$target"; \
  43255. fi; \
  43256. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  43257. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  43258. || eval $$failcom; \
  43259. done && test -z "$$fail"
  43260. tags-recursive:
  43261. list='$(SUBDIRS)'; for subdir in $$list; do \
  43262. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  43263. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  43264. done
  43265. ctags-recursive:
  43266. list='$(SUBDIRS)'; for subdir in $$list; do \
  43267. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  43268. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  43269. done
  43270. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  43271. @@ -415,14 +470,14 @@
  43272. unique=`for i in $$list; do \
  43273. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43274. done | \
  43275. - $(AWK) ' { files[$$0] = 1; } \
  43276. - END { for (i in files) print i; }'`; \
  43277. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43278. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43279. mkid -fID $$unique
  43280. tags: TAGS
  43281. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43282. $(TAGS_FILES) $(LISP)
  43283. - tags=; \
  43284. + set x; \
  43285. here=`pwd`; \
  43286. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  43287. include_option=--etags-include; \
  43288. @@ -434,39 +489,43 @@
  43289. list='$(SUBDIRS)'; for subdir in $$list; do \
  43290. if test "$$subdir" = .; then :; else \
  43291. test ! -f $$subdir/TAGS || \
  43292. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  43293. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  43294. fi; \
  43295. done; \
  43296. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43297. unique=`for i in $$list; do \
  43298. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43299. done | \
  43300. - $(AWK) ' { files[$$0] = 1; } \
  43301. - END { for (i in files) print i; }'`; \
  43302. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  43303. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43304. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43305. + shift; \
  43306. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  43307. test -n "$$unique" || unique=$$empty_fix; \
  43308. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43309. - $$tags $$unique; \
  43310. + if test $$# -gt 0; then \
  43311. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43312. + "$$@" $$unique; \
  43313. + else \
  43314. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43315. + $$unique; \
  43316. + fi; \
  43317. fi
  43318. ctags: CTAGS
  43319. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43320. $(TAGS_FILES) $(LISP)
  43321. - tags=; \
  43322. - here=`pwd`; \
  43323. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43324. unique=`for i in $$list; do \
  43325. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43326. done | \
  43327. - $(AWK) ' { files[$$0] = 1; } \
  43328. - END { for (i in files) print i; }'`; \
  43329. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  43330. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43331. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43332. + test -z "$(CTAGS_ARGS)$$unique" \
  43333. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  43334. - $$tags $$unique
  43335. + $$unique
  43336. GTAGS:
  43337. here=`$(am__cd) $(top_builddir) && pwd` \
  43338. - && cd $(top_srcdir) \
  43339. - && gtags -i $(GTAGS_ARGS) $$here
  43340. + && $(am__cd) $(top_srcdir) \
  43341. + && gtags -i $(GTAGS_ARGS) "$$here"
  43342. distclean-tags:
  43343. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  43344. @@ -487,29 +546,44 @@
  43345. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  43346. if test -d $$d/$$file; then \
  43347. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  43348. + if test -d "$(distdir)/$$file"; then \
  43349. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43350. + fi; \
  43351. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  43352. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  43353. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  43354. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43355. fi; \
  43356. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  43357. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  43358. else \
  43359. - test -f $(distdir)/$$file \
  43360. - || cp -p $$d/$$file $(distdir)/$$file \
  43361. + test -f "$(distdir)/$$file" \
  43362. + || cp -p $$d/$$file "$(distdir)/$$file" \
  43363. || exit 1; \
  43364. fi; \
  43365. done
  43366. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  43367. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  43368. if test "$$subdir" = .; then :; else \
  43369. test -d "$(distdir)/$$subdir" \
  43370. || $(MKDIR_P) "$(distdir)/$$subdir" \
  43371. || exit 1; \
  43372. - distdir=`$(am__cd) $(distdir) && pwd`; \
  43373. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  43374. - (cd $$subdir && \
  43375. + fi; \
  43376. + done
  43377. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  43378. + if test "$$subdir" = .; then :; else \
  43379. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  43380. + $(am__relativize); \
  43381. + new_distdir=$$reldir; \
  43382. + dir1=$$subdir; dir2="$(top_distdir)"; \
  43383. + $(am__relativize); \
  43384. + new_top_distdir=$$reldir; \
  43385. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  43386. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  43387. + ($(am__cd) $$subdir && \
  43388. $(MAKE) $(AM_MAKEFLAGS) \
  43389. - top_distdir="$$top_distdir" \
  43390. - distdir="$$distdir/$$subdir" \
  43391. + top_distdir="$$new_top_distdir" \
  43392. + distdir="$$new_distdir" \
  43393. am__remove_distdir=: \
  43394. am__skip_length_check=: \
  43395. + am__skip_mode_fix=: \
  43396. distdir) \
  43397. || exit 1; \
  43398. fi; \
  43399. @@ -543,6 +617,7 @@
  43400. distclean-generic:
  43401. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  43402. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  43403. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  43404. maintainer-clean-generic:
  43405. @@ -562,6 +637,8 @@
  43406. html: html-recursive
  43407. +html-am:
  43408. +
  43409. info: info-recursive
  43410. info-am:
  43411. @@ -570,18 +647,28 @@
  43412. install-dvi: install-dvi-recursive
  43413. +install-dvi-am:
  43414. +
  43415. install-exec-am:
  43416. install-html: install-html-recursive
  43417. +install-html-am:
  43418. +
  43419. install-info: install-info-recursive
  43420. +install-info-am:
  43421. +
  43422. install-man:
  43423. install-pdf: install-pdf-recursive
  43424. +install-pdf-am:
  43425. +
  43426. install-ps: install-ps-recursive
  43427. +install-ps-am:
  43428. +
  43429. installcheck-am:
  43430. maintainer-clean: maintainer-clean-recursive
  43431. @@ -602,8 +689,8 @@
  43432. uninstall-am: uninstall-docDATA
  43433. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  43434. - install-strip
  43435. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  43436. + install-am install-strip tags-recursive
  43437. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  43438. all all-am check check-am clean clean-generic clean-libtool \
  43439. @@ -660,6 +747,7 @@
  43440. # clean up build dir
  43441. clean-local:
  43442. -$(RM) -r $(BUILDDIR)
  43443. +
  43444. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  43445. # Otherwise a system limit (for SysV at least) may be exceeded.
  43446. .NOEXPORT:
  43447. diff -Nur libvorbis-1.2.0.orig/doc/vorbisenc/Makefile.in libvorbis-1.2.0/doc/vorbisenc/Makefile.in
  43448. --- libvorbis-1.2.0.orig/doc/vorbisenc/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  43449. +++ libvorbis-1.2.0/doc/vorbisenc/Makefile.in 2011-02-17 18:30:21.003552126 +0100
  43450. @@ -1,8 +1,9 @@
  43451. -# Makefile.in generated by automake 1.10 from Makefile.am.
  43452. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  43453. # @configure_input@
  43454. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  43455. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  43456. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  43457. +# Inc.
  43458. # This Makefile.in is free software; the Free Software Foundation
  43459. # gives unlimited permission to copy and/or distribute it,
  43460. # with or without modifications, as long as this notice is preserved.
  43461. @@ -16,8 +17,9 @@
  43462. VPATH = @srcdir@
  43463. pkgdatadir = $(datadir)/@PACKAGE@
  43464. -pkglibdir = $(libdir)/@PACKAGE@
  43465. pkgincludedir = $(includedir)/@PACKAGE@
  43466. +pkglibdir = $(libdir)/@PACKAGE@
  43467. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  43468. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  43469. install_sh_DATA = $(install_sh) -c -m 644
  43470. install_sh_PROGRAM = $(install_sh) -c
  43471. @@ -43,6 +45,7 @@
  43472. mkinstalldirs = $(install_sh) -d
  43473. CONFIG_HEADER = $(top_builddir)/config.h
  43474. CONFIG_CLEAN_FILES =
  43475. +CONFIG_CLEAN_VPATH_FILES =
  43476. SOURCES =
  43477. DIST_SOURCES =
  43478. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  43479. @@ -50,9 +53,23 @@
  43480. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  43481. *) f=$$p;; \
  43482. esac;
  43483. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  43484. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  43485. +am__install_max = 40
  43486. +am__nobase_strip_setup = \
  43487. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  43488. +am__nobase_strip = \
  43489. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  43490. +am__nobase_list = $(am__nobase_strip_setup); \
  43491. + for p in $$list; do echo "$$p $$p"; done | \
  43492. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  43493. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  43494. + if (++n[$$2] == $(am__install_max)) \
  43495. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  43496. + END { for (dir in files) print dir, files[dir] }'
  43497. +am__base_list = \
  43498. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  43499. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  43500. am__installdirs = "$(DESTDIR)$(docdir)"
  43501. -docDATA_INSTALL = $(INSTALL_DATA)
  43502. DATA = $(doc_DATA)
  43503. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  43504. ACLOCAL = @ACLOCAL@
  43505. @@ -68,22 +85,18 @@
  43506. CFLAGS = @CFLAGS@
  43507. CPP = @CPP@
  43508. CPPFLAGS = @CPPFLAGS@
  43509. -CXX = @CXX@
  43510. -CXXCPP = @CXXCPP@
  43511. -CXXDEPMODE = @CXXDEPMODE@
  43512. -CXXFLAGS = @CXXFLAGS@
  43513. CYGPATH_W = @CYGPATH_W@
  43514. DEBUG = @DEBUG@
  43515. DEFS = @DEFS@
  43516. DEPDIR = @DEPDIR@
  43517. -ECHO = @ECHO@
  43518. +DSYMUTIL = @DSYMUTIL@
  43519. +DUMPBIN = @DUMPBIN@
  43520. ECHO_C = @ECHO_C@
  43521. ECHO_N = @ECHO_N@
  43522. ECHO_T = @ECHO_T@
  43523. EGREP = @EGREP@
  43524. EXEEXT = @EXEEXT@
  43525. -F77 = @F77@
  43526. -FFLAGS = @FFLAGS@
  43527. +FGREP = @FGREP@
  43528. GREP = @GREP@
  43529. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  43530. INSTALL = @INSTALL@
  43531. @@ -91,29 +104,38 @@
  43532. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  43533. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  43534. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  43535. +LD = @LD@
  43536. LDFLAGS = @LDFLAGS@
  43537. LIBOBJS = @LIBOBJS@
  43538. LIBS = @LIBS@
  43539. LIBTOOL = @LIBTOOL@
  43540. +LIPO = @LIPO@
  43541. LN_S = @LN_S@
  43542. LTLIBOBJS = @LTLIBOBJS@
  43543. MAINT = @MAINT@
  43544. MAKEINFO = @MAKEINFO@
  43545. MKDIR_P = @MKDIR_P@
  43546. +NM = @NM@
  43547. +NMEDIT = @NMEDIT@
  43548. +OBJDUMP = @OBJDUMP@
  43549. OBJEXT = @OBJEXT@
  43550. OGG_CFLAGS = @OGG_CFLAGS@
  43551. OGG_LIBS = @OGG_LIBS@
  43552. +OTOOL = @OTOOL@
  43553. +OTOOL64 = @OTOOL64@
  43554. PACKAGE = @PACKAGE@
  43555. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  43556. PACKAGE_NAME = @PACKAGE_NAME@
  43557. PACKAGE_STRING = @PACKAGE_STRING@
  43558. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  43559. +PACKAGE_URL = @PACKAGE_URL@
  43560. PACKAGE_VERSION = @PACKAGE_VERSION@
  43561. PATH_SEPARATOR = @PATH_SEPARATOR@
  43562. PDFXMLTEX = @PDFXMLTEX@
  43563. PKG_CONFIG = @PKG_CONFIG@
  43564. PROFILE = @PROFILE@
  43565. RANLIB = @RANLIB@
  43566. +SED = @SED@
  43567. SET_MAKE = @SET_MAKE@
  43568. SHELL = @SHELL@
  43569. STRIP = @STRIP@
  43570. @@ -134,8 +156,7 @@
  43571. abs_top_builddir = @abs_top_builddir@
  43572. abs_top_srcdir = @abs_top_srcdir@
  43573. ac_ct_CC = @ac_ct_CC@
  43574. -ac_ct_CXX = @ac_ct_CXX@
  43575. -ac_ct_F77 = @ac_ct_F77@
  43576. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  43577. am__include = @am__include@
  43578. am__leading_dot = @am__leading_dot@
  43579. am__quote = @am__quote@
  43580. @@ -166,6 +187,7 @@
  43581. libexecdir = @libexecdir@
  43582. localedir = @localedir@
  43583. localstatedir = @localstatedir@
  43584. +lt_ECHO = @lt_ECHO@
  43585. mandir = @mandir@
  43586. mkdir_p = @mkdir_p@
  43587. oldincludedir = @oldincludedir@
  43588. @@ -183,6 +205,7 @@
  43589. target_cpu = @target_cpu@
  43590. target_os = @target_os@
  43591. target_vendor = @target_vendor@
  43592. +top_build_prefix = @top_build_prefix@
  43593. top_builddir = @top_builddir@
  43594. top_srcdir = @top_srcdir@
  43595. doc_DATA = index.html overview.html reference.html style.css\
  43596. @@ -197,14 +220,14 @@
  43597. @for dep in $?; do \
  43598. case '$(am__configure_deps)' in \
  43599. *$$dep*) \
  43600. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  43601. - && exit 0; \
  43602. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  43603. + && { if test -f $@; then exit 0; else break; fi; }; \
  43604. exit 1;; \
  43605. esac; \
  43606. done; \
  43607. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/vorbisenc/Makefile'; \
  43608. - cd $(top_srcdir) && \
  43609. - $(AUTOMAKE) --gnu doc/vorbisenc/Makefile
  43610. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/vorbisenc/Makefile'; \
  43611. + $(am__cd) $(top_srcdir) && \
  43612. + $(AUTOMAKE) --gnu doc/vorbisenc/Makefile
  43613. .PRECIOUS: Makefile
  43614. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  43615. @case '$?' in \
  43616. @@ -222,6 +245,7 @@
  43617. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43618. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  43619. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43620. +$(am__aclocal_m4_deps):
  43621. mostlyclean-libtool:
  43622. -rm -f *.lo
  43623. @@ -231,20 +255,23 @@
  43624. install-docDATA: $(doc_DATA)
  43625. @$(NORMAL_INSTALL)
  43626. test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  43627. - @list='$(doc_DATA)'; for p in $$list; do \
  43628. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  43629. + for p in $$list; do \
  43630. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  43631. - f=$(am__strip_dir) \
  43632. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  43633. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  43634. + echo "$$d$$p"; \
  43635. + done | $(am__base_list) | \
  43636. + while read files; do \
  43637. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  43638. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  43639. done
  43640. uninstall-docDATA:
  43641. @$(NORMAL_UNINSTALL)
  43642. - @list='$(doc_DATA)'; for p in $$list; do \
  43643. - f=$(am__strip_dir) \
  43644. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  43645. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  43646. - done
  43647. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  43648. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  43649. + test -n "$$files" || exit 0; \
  43650. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  43651. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  43652. tags: TAGS
  43653. TAGS:
  43654. @@ -268,13 +295,17 @@
  43655. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  43656. if test -d $$d/$$file; then \
  43657. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  43658. + if test -d "$(distdir)/$$file"; then \
  43659. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43660. + fi; \
  43661. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  43662. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  43663. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  43664. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43665. fi; \
  43666. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  43667. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  43668. else \
  43669. - test -f $(distdir)/$$file \
  43670. - || cp -p $$d/$$file $(distdir)/$$file \
  43671. + test -f "$(distdir)/$$file" \
  43672. + || cp -p $$d/$$file "$(distdir)/$$file" \
  43673. || exit 1; \
  43674. fi; \
  43675. done
  43676. @@ -305,6 +336,7 @@
  43677. distclean-generic:
  43678. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  43679. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  43680. maintainer-clean-generic:
  43681. @echo "This command is intended for maintainers to use"
  43682. @@ -323,6 +355,8 @@
  43683. html: html-am
  43684. +html-am:
  43685. +
  43686. info: info-am
  43687. info-am:
  43688. @@ -331,18 +365,28 @@
  43689. install-dvi: install-dvi-am
  43690. +install-dvi-am:
  43691. +
  43692. install-exec-am:
  43693. install-html: install-html-am
  43694. +install-html-am:
  43695. +
  43696. install-info: install-info-am
  43697. +install-info-am:
  43698. +
  43699. install-man:
  43700. install-pdf: install-pdf-am
  43701. +install-pdf-am:
  43702. +
  43703. install-ps: install-ps-am
  43704. +install-ps-am:
  43705. +
  43706. installcheck-am:
  43707. maintainer-clean: maintainer-clean-am
  43708. @@ -377,6 +421,7 @@
  43709. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  43710. uninstall uninstall-am uninstall-docDATA
  43711. +
  43712. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  43713. # Otherwise a system limit (for SysV at least) may be exceeded.
  43714. .NOEXPORT:
  43715. diff -Nur libvorbis-1.2.0.orig/doc/vorbisfile/Makefile.in libvorbis-1.2.0/doc/vorbisfile/Makefile.in
  43716. --- libvorbis-1.2.0.orig/doc/vorbisfile/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  43717. +++ libvorbis-1.2.0/doc/vorbisfile/Makefile.in 2011-02-17 18:30:21.033562977 +0100
  43718. @@ -1,8 +1,9 @@
  43719. -# Makefile.in generated by automake 1.10 from Makefile.am.
  43720. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  43721. # @configure_input@
  43722. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  43723. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  43724. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  43725. +# Inc.
  43726. # This Makefile.in is free software; the Free Software Foundation
  43727. # gives unlimited permission to copy and/or distribute it,
  43728. # with or without modifications, as long as this notice is preserved.
  43729. @@ -16,8 +17,9 @@
  43730. VPATH = @srcdir@
  43731. pkgdatadir = $(datadir)/@PACKAGE@
  43732. -pkglibdir = $(libdir)/@PACKAGE@
  43733. pkgincludedir = $(includedir)/@PACKAGE@
  43734. +pkglibdir = $(libdir)/@PACKAGE@
  43735. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  43736. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  43737. install_sh_DATA = $(install_sh) -c -m 644
  43738. install_sh_PROGRAM = $(install_sh) -c
  43739. @@ -43,6 +45,7 @@
  43740. mkinstalldirs = $(install_sh) -d
  43741. CONFIG_HEADER = $(top_builddir)/config.h
  43742. CONFIG_CLEAN_FILES =
  43743. +CONFIG_CLEAN_VPATH_FILES =
  43744. SOURCES =
  43745. DIST_SOURCES =
  43746. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  43747. @@ -50,9 +53,23 @@
  43748. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  43749. *) f=$$p;; \
  43750. esac;
  43751. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  43752. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  43753. +am__install_max = 40
  43754. +am__nobase_strip_setup = \
  43755. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  43756. +am__nobase_strip = \
  43757. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  43758. +am__nobase_list = $(am__nobase_strip_setup); \
  43759. + for p in $$list; do echo "$$p $$p"; done | \
  43760. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  43761. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  43762. + if (++n[$$2] == $(am__install_max)) \
  43763. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  43764. + END { for (dir in files) print dir, files[dir] }'
  43765. +am__base_list = \
  43766. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  43767. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  43768. am__installdirs = "$(DESTDIR)$(docdir)"
  43769. -docDATA_INSTALL = $(INSTALL_DATA)
  43770. DATA = $(doc_DATA)
  43771. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  43772. ACLOCAL = @ACLOCAL@
  43773. @@ -68,22 +85,18 @@
  43774. CFLAGS = @CFLAGS@
  43775. CPP = @CPP@
  43776. CPPFLAGS = @CPPFLAGS@
  43777. -CXX = @CXX@
  43778. -CXXCPP = @CXXCPP@
  43779. -CXXDEPMODE = @CXXDEPMODE@
  43780. -CXXFLAGS = @CXXFLAGS@
  43781. CYGPATH_W = @CYGPATH_W@
  43782. DEBUG = @DEBUG@
  43783. DEFS = @DEFS@
  43784. DEPDIR = @DEPDIR@
  43785. -ECHO = @ECHO@
  43786. +DSYMUTIL = @DSYMUTIL@
  43787. +DUMPBIN = @DUMPBIN@
  43788. ECHO_C = @ECHO_C@
  43789. ECHO_N = @ECHO_N@
  43790. ECHO_T = @ECHO_T@
  43791. EGREP = @EGREP@
  43792. EXEEXT = @EXEEXT@
  43793. -F77 = @F77@
  43794. -FFLAGS = @FFLAGS@
  43795. +FGREP = @FGREP@
  43796. GREP = @GREP@
  43797. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  43798. INSTALL = @INSTALL@
  43799. @@ -91,29 +104,38 @@
  43800. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  43801. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  43802. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  43803. +LD = @LD@
  43804. LDFLAGS = @LDFLAGS@
  43805. LIBOBJS = @LIBOBJS@
  43806. LIBS = @LIBS@
  43807. LIBTOOL = @LIBTOOL@
  43808. +LIPO = @LIPO@
  43809. LN_S = @LN_S@
  43810. LTLIBOBJS = @LTLIBOBJS@
  43811. MAINT = @MAINT@
  43812. MAKEINFO = @MAKEINFO@
  43813. MKDIR_P = @MKDIR_P@
  43814. +NM = @NM@
  43815. +NMEDIT = @NMEDIT@
  43816. +OBJDUMP = @OBJDUMP@
  43817. OBJEXT = @OBJEXT@
  43818. OGG_CFLAGS = @OGG_CFLAGS@
  43819. OGG_LIBS = @OGG_LIBS@
  43820. +OTOOL = @OTOOL@
  43821. +OTOOL64 = @OTOOL64@
  43822. PACKAGE = @PACKAGE@
  43823. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  43824. PACKAGE_NAME = @PACKAGE_NAME@
  43825. PACKAGE_STRING = @PACKAGE_STRING@
  43826. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  43827. +PACKAGE_URL = @PACKAGE_URL@
  43828. PACKAGE_VERSION = @PACKAGE_VERSION@
  43829. PATH_SEPARATOR = @PATH_SEPARATOR@
  43830. PDFXMLTEX = @PDFXMLTEX@
  43831. PKG_CONFIG = @PKG_CONFIG@
  43832. PROFILE = @PROFILE@
  43833. RANLIB = @RANLIB@
  43834. +SED = @SED@
  43835. SET_MAKE = @SET_MAKE@
  43836. SHELL = @SHELL@
  43837. STRIP = @STRIP@
  43838. @@ -134,8 +156,7 @@
  43839. abs_top_builddir = @abs_top_builddir@
  43840. abs_top_srcdir = @abs_top_srcdir@
  43841. ac_ct_CC = @ac_ct_CC@
  43842. -ac_ct_CXX = @ac_ct_CXX@
  43843. -ac_ct_F77 = @ac_ct_F77@
  43844. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  43845. am__include = @am__include@
  43846. am__leading_dot = @am__leading_dot@
  43847. am__quote = @am__quote@
  43848. @@ -166,6 +187,7 @@
  43849. libexecdir = @libexecdir@
  43850. localedir = @localedir@
  43851. localstatedir = @localstatedir@
  43852. +lt_ECHO = @lt_ECHO@
  43853. mandir = @mandir@
  43854. mkdir_p = @mkdir_p@
  43855. oldincludedir = @oldincludedir@
  43856. @@ -183,6 +205,7 @@
  43857. target_cpu = @target_cpu@
  43858. target_os = @target_os@
  43859. target_vendor = @target_vendor@
  43860. +top_build_prefix = @top_build_prefix@
  43861. top_builddir = @top_builddir@
  43862. top_srcdir = @top_srcdir@
  43863. doc_DATA = OggVorbis_File.html callbacks.html chaining_example_c.html\
  43864. @@ -211,14 +234,14 @@
  43865. @for dep in $?; do \
  43866. case '$(am__configure_deps)' in \
  43867. *$$dep*) \
  43868. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  43869. - && exit 0; \
  43870. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  43871. + && { if test -f $@; then exit 0; else break; fi; }; \
  43872. exit 1;; \
  43873. esac; \
  43874. done; \
  43875. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/vorbisfile/Makefile'; \
  43876. - cd $(top_srcdir) && \
  43877. - $(AUTOMAKE) --gnu doc/vorbisfile/Makefile
  43878. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/vorbisfile/Makefile'; \
  43879. + $(am__cd) $(top_srcdir) && \
  43880. + $(AUTOMAKE) --gnu doc/vorbisfile/Makefile
  43881. .PRECIOUS: Makefile
  43882. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  43883. @case '$?' in \
  43884. @@ -236,6 +259,7 @@
  43885. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43886. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  43887. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43888. +$(am__aclocal_m4_deps):
  43889. mostlyclean-libtool:
  43890. -rm -f *.lo
  43891. @@ -245,20 +269,23 @@
  43892. install-docDATA: $(doc_DATA)
  43893. @$(NORMAL_INSTALL)
  43894. test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  43895. - @list='$(doc_DATA)'; for p in $$list; do \
  43896. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  43897. + for p in $$list; do \
  43898. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  43899. - f=$(am__strip_dir) \
  43900. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  43901. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  43902. + echo "$$d$$p"; \
  43903. + done | $(am__base_list) | \
  43904. + while read files; do \
  43905. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  43906. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  43907. done
  43908. uninstall-docDATA:
  43909. @$(NORMAL_UNINSTALL)
  43910. - @list='$(doc_DATA)'; for p in $$list; do \
  43911. - f=$(am__strip_dir) \
  43912. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  43913. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  43914. - done
  43915. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  43916. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  43917. + test -n "$$files" || exit 0; \
  43918. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  43919. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  43920. tags: TAGS
  43921. TAGS:
  43922. @@ -282,13 +309,17 @@
  43923. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  43924. if test -d $$d/$$file; then \
  43925. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  43926. + if test -d "$(distdir)/$$file"; then \
  43927. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43928. + fi; \
  43929. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  43930. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  43931. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  43932. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43933. fi; \
  43934. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  43935. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  43936. else \
  43937. - test -f $(distdir)/$$file \
  43938. - || cp -p $$d/$$file $(distdir)/$$file \
  43939. + test -f "$(distdir)/$$file" \
  43940. + || cp -p $$d/$$file "$(distdir)/$$file" \
  43941. || exit 1; \
  43942. fi; \
  43943. done
  43944. @@ -319,6 +350,7 @@
  43945. distclean-generic:
  43946. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  43947. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  43948. maintainer-clean-generic:
  43949. @echo "This command is intended for maintainers to use"
  43950. @@ -337,6 +369,8 @@
  43951. html: html-am
  43952. +html-am:
  43953. +
  43954. info: info-am
  43955. info-am:
  43956. @@ -345,18 +379,28 @@
  43957. install-dvi: install-dvi-am
  43958. +install-dvi-am:
  43959. +
  43960. install-exec-am:
  43961. install-html: install-html-am
  43962. +install-html-am:
  43963. +
  43964. install-info: install-info-am
  43965. +install-info-am:
  43966. +
  43967. install-man:
  43968. install-pdf: install-pdf-am
  43969. +install-pdf-am:
  43970. +
  43971. install-ps: install-ps-am
  43972. +install-ps-am:
  43973. +
  43974. installcheck-am:
  43975. maintainer-clean: maintainer-clean-am
  43976. @@ -391,6 +435,7 @@
  43977. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  43978. uninstall uninstall-am uninstall-docDATA
  43979. +
  43980. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  43981. # Otherwise a system limit (for SysV at least) may be exceeded.
  43982. .NOEXPORT:
  43983. diff -Nur libvorbis-1.2.0.orig/examples/Makefile.in libvorbis-1.2.0/examples/Makefile.in
  43984. --- libvorbis-1.2.0.orig/examples/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  43985. +++ libvorbis-1.2.0/examples/Makefile.in 2011-02-17 18:30:21.087302250 +0100
  43986. @@ -1,8 +1,9 @@
  43987. -# Makefile.in generated by automake 1.10 from Makefile.am.
  43988. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  43989. # @configure_input@
  43990. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  43991. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  43992. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  43993. +# Inc.
  43994. # This Makefile.in is free software; the Free Software Foundation
  43995. # gives unlimited permission to copy and/or distribute it,
  43996. # with or without modifications, as long as this notice is preserved.
  43997. @@ -16,8 +17,9 @@
  43998. VPATH = @srcdir@
  43999. pkgdatadir = $(datadir)/@PACKAGE@
  44000. -pkglibdir = $(libdir)/@PACKAGE@
  44001. pkgincludedir = $(includedir)/@PACKAGE@
  44002. +pkglibdir = $(libdir)/@PACKAGE@
  44003. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  44004. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  44005. install_sh_DATA = $(install_sh) -c -m 644
  44006. install_sh_PROGRAM = $(install_sh) -c
  44007. @@ -46,6 +48,7 @@
  44008. mkinstalldirs = $(install_sh) -d
  44009. CONFIG_HEADER = $(top_builddir)/config.h
  44010. CONFIG_CLEAN_FILES =
  44011. +CONFIG_CLEAN_VPATH_FILES =
  44012. PROGRAMS = $(noinst_PROGRAMS)
  44013. am_chaining_example_OBJECTS = chaining_example.$(OBJEXT)
  44014. chaining_example_OBJECTS = $(am_chaining_example_OBJECTS)
  44015. @@ -67,9 +70,10 @@
  44016. vorbisfile_example_OBJECTS = $(am_vorbisfile_example_OBJECTS)
  44017. vorbisfile_example_DEPENDENCIES = ../lib/libvorbisfile.la \
  44018. ../lib/libvorbis.la
  44019. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  44020. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  44021. depcomp = $(SHELL) $(top_srcdir)/depcomp
  44022. am__depfiles_maybe = depfiles
  44023. +am__mv = mv -f
  44024. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  44025. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  44026. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  44027. @@ -101,22 +105,18 @@
  44028. CFLAGS = @CFLAGS@
  44029. CPP = @CPP@
  44030. CPPFLAGS = @CPPFLAGS@
  44031. -CXX = @CXX@
  44032. -CXXCPP = @CXXCPP@
  44033. -CXXDEPMODE = @CXXDEPMODE@
  44034. -CXXFLAGS = @CXXFLAGS@
  44035. CYGPATH_W = @CYGPATH_W@
  44036. DEBUG = @DEBUG@
  44037. DEFS = @DEFS@
  44038. DEPDIR = @DEPDIR@
  44039. -ECHO = @ECHO@
  44040. +DSYMUTIL = @DSYMUTIL@
  44041. +DUMPBIN = @DUMPBIN@
  44042. ECHO_C = @ECHO_C@
  44043. ECHO_N = @ECHO_N@
  44044. ECHO_T = @ECHO_T@
  44045. EGREP = @EGREP@
  44046. EXEEXT = @EXEEXT@
  44047. -F77 = @F77@
  44048. -FFLAGS = @FFLAGS@
  44049. +FGREP = @FGREP@
  44050. GREP = @GREP@
  44051. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  44052. INSTALL = @INSTALL@
  44053. @@ -124,29 +124,38 @@
  44054. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  44055. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44056. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  44057. +LD = @LD@
  44058. LDFLAGS = @LDFLAGS@
  44059. LIBOBJS = @LIBOBJS@
  44060. LIBS = @LIBS@
  44061. LIBTOOL = @LIBTOOL@
  44062. +LIPO = @LIPO@
  44063. LN_S = @LN_S@
  44064. LTLIBOBJS = @LTLIBOBJS@
  44065. MAINT = @MAINT@
  44066. MAKEINFO = @MAKEINFO@
  44067. MKDIR_P = @MKDIR_P@
  44068. +NM = @NM@
  44069. +NMEDIT = @NMEDIT@
  44070. +OBJDUMP = @OBJDUMP@
  44071. OBJEXT = @OBJEXT@
  44072. OGG_CFLAGS = @OGG_CFLAGS@
  44073. OGG_LIBS = @OGG_LIBS@
  44074. +OTOOL = @OTOOL@
  44075. +OTOOL64 = @OTOOL64@
  44076. PACKAGE = @PACKAGE@
  44077. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  44078. PACKAGE_NAME = @PACKAGE_NAME@
  44079. PACKAGE_STRING = @PACKAGE_STRING@
  44080. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  44081. +PACKAGE_URL = @PACKAGE_URL@
  44082. PACKAGE_VERSION = @PACKAGE_VERSION@
  44083. PATH_SEPARATOR = @PATH_SEPARATOR@
  44084. PDFXMLTEX = @PDFXMLTEX@
  44085. PKG_CONFIG = @PKG_CONFIG@
  44086. PROFILE = @PROFILE@
  44087. RANLIB = @RANLIB@
  44088. +SED = @SED@
  44089. SET_MAKE = @SET_MAKE@
  44090. SHELL = @SHELL@
  44091. STRIP = @STRIP@
  44092. @@ -167,8 +176,7 @@
  44093. abs_top_builddir = @abs_top_builddir@
  44094. abs_top_srcdir = @abs_top_srcdir@
  44095. ac_ct_CC = @ac_ct_CC@
  44096. -ac_ct_CXX = @ac_ct_CXX@
  44097. -ac_ct_F77 = @ac_ct_F77@
  44098. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  44099. am__include = @am__include@
  44100. am__leading_dot = @am__leading_dot@
  44101. am__quote = @am__quote@
  44102. @@ -199,6 +207,7 @@
  44103. libexecdir = @libexecdir@
  44104. localedir = @localedir@
  44105. localstatedir = @localstatedir@
  44106. +lt_ECHO = @lt_ECHO@
  44107. mandir = @mandir@
  44108. mkdir_p = @mkdir_p@
  44109. oldincludedir = @oldincludedir@
  44110. @@ -216,6 +225,7 @@
  44111. target_cpu = @target_cpu@
  44112. target_os = @target_os@
  44113. target_vendor = @target_vendor@
  44114. +top_build_prefix = @top_build_prefix@
  44115. top_builddir = @top_builddir@
  44116. top_srcdir = @top_srcdir@
  44117. AUTOMAKE_OPTIONS = foreign
  44118. @@ -241,14 +251,14 @@
  44119. @for dep in $?; do \
  44120. case '$(am__configure_deps)' in \
  44121. *$$dep*) \
  44122. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  44123. - && exit 0; \
  44124. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  44125. + && { if test -f $@; then exit 0; else break; fi; }; \
  44126. exit 1;; \
  44127. esac; \
  44128. done; \
  44129. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
  44130. - cd $(top_srcdir) && \
  44131. - $(AUTOMAKE) --foreign examples/Makefile
  44132. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
  44133. + $(am__cd) $(top_srcdir) && \
  44134. + $(AUTOMAKE) --foreign examples/Makefile
  44135. .PRECIOUS: Makefile
  44136. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  44137. @case '$?' in \
  44138. @@ -266,13 +276,16 @@
  44139. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44140. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  44141. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44142. +$(am__aclocal_m4_deps):
  44143. clean-noinstPROGRAMS:
  44144. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  44145. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  44146. - echo " rm -f $$p $$f"; \
  44147. - rm -f $$p $$f ; \
  44148. - done
  44149. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  44150. + echo " rm -f" $$list; \
  44151. + rm -f $$list || exit $$?; \
  44152. + test -n "$(EXEEXT)" || exit 0; \
  44153. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  44154. + echo " rm -f" $$list; \
  44155. + rm -f $$list
  44156. chaining_example$(EXEEXT): $(chaining_example_OBJECTS) $(chaining_example_DEPENDENCIES)
  44157. @rm -f chaining_example$(EXEEXT)
  44158. $(LINK) $(chaining_example_OBJECTS) $(chaining_example_LDADD) $(LIBS)
  44159. @@ -303,21 +316,21 @@
  44160. .c.o:
  44161. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  44162. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44163. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44164. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  44165. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44166. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  44167. .c.obj:
  44168. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  44169. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44170. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44171. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  44172. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44173. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  44174. .c.lo:
  44175. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  44176. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  44177. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  44178. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  44179. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44180. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  44181. @@ -333,45 +346,49 @@
  44182. unique=`for i in $$list; do \
  44183. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44184. done | \
  44185. - $(AWK) ' { files[$$0] = 1; } \
  44186. - END { for (i in files) print i; }'`; \
  44187. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44188. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44189. mkid -fID $$unique
  44190. tags: TAGS
  44191. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44192. $(TAGS_FILES) $(LISP)
  44193. - tags=; \
  44194. + set x; \
  44195. here=`pwd`; \
  44196. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44197. unique=`for i in $$list; do \
  44198. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44199. done | \
  44200. - $(AWK) ' { files[$$0] = 1; } \
  44201. - END { for (i in files) print i; }'`; \
  44202. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  44203. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44204. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44205. + shift; \
  44206. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  44207. test -n "$$unique" || unique=$$empty_fix; \
  44208. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44209. - $$tags $$unique; \
  44210. + if test $$# -gt 0; then \
  44211. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44212. + "$$@" $$unique; \
  44213. + else \
  44214. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44215. + $$unique; \
  44216. + fi; \
  44217. fi
  44218. ctags: CTAGS
  44219. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44220. $(TAGS_FILES) $(LISP)
  44221. - tags=; \
  44222. - here=`pwd`; \
  44223. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44224. unique=`for i in $$list; do \
  44225. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44226. done | \
  44227. - $(AWK) ' { files[$$0] = 1; } \
  44228. - END { for (i in files) print i; }'`; \
  44229. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  44230. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44231. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44232. + test -z "$(CTAGS_ARGS)$$unique" \
  44233. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  44234. - $$tags $$unique
  44235. + $$unique
  44236. GTAGS:
  44237. here=`$(am__cd) $(top_builddir) && pwd` \
  44238. - && cd $(top_srcdir) \
  44239. - && gtags -i $(GTAGS_ARGS) $$here
  44240. + && $(am__cd) $(top_srcdir) \
  44241. + && gtags -i $(GTAGS_ARGS) "$$here"
  44242. distclean-tags:
  44243. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  44244. @@ -392,13 +409,17 @@
  44245. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  44246. if test -d $$d/$$file; then \
  44247. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  44248. + if test -d "$(distdir)/$$file"; then \
  44249. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44250. + fi; \
  44251. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  44252. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  44253. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  44254. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44255. fi; \
  44256. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  44257. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  44258. else \
  44259. - test -f $(distdir)/$$file \
  44260. - || cp -p $$d/$$file $(distdir)/$$file \
  44261. + test -f "$(distdir)/$$file" \
  44262. + || cp -p $$d/$$file "$(distdir)/$$file" \
  44263. || exit 1; \
  44264. fi; \
  44265. done
  44266. @@ -426,6 +447,7 @@
  44267. distclean-generic:
  44268. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  44269. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  44270. maintainer-clean-generic:
  44271. @echo "This command is intended for maintainers to use"
  44272. @@ -447,6 +469,8 @@
  44273. html: html-am
  44274. +html-am:
  44275. +
  44276. info: info-am
  44277. info-am:
  44278. @@ -455,18 +479,28 @@
  44279. install-dvi: install-dvi-am
  44280. +install-dvi-am:
  44281. +
  44282. install-exec-am:
  44283. install-html: install-html-am
  44284. +install-html-am:
  44285. +
  44286. install-info: install-info-am
  44287. +install-info-am:
  44288. +
  44289. install-man:
  44290. install-pdf: install-pdf-am
  44291. +install-pdf-am:
  44292. +
  44293. install-ps: install-ps-am
  44294. +install-ps-am:
  44295. +
  44296. installcheck-am:
  44297. maintainer-clean: maintainer-clean-am
  44298. @@ -510,6 +544,7 @@
  44299. profile:
  44300. $(MAKE) all CFLAGS="@PROFILE@"
  44301. +
  44302. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  44303. # Otherwise a system limit (for SysV at least) may be exceeded.
  44304. .NOEXPORT:
  44305. diff -Nur libvorbis-1.2.0.orig/include/Makefile.in libvorbis-1.2.0/include/Makefile.in
  44306. --- libvorbis-1.2.0.orig/include/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  44307. +++ libvorbis-1.2.0/include/Makefile.in 2011-02-17 18:30:21.117302465 +0100
  44308. @@ -1,8 +1,9 @@
  44309. -# Makefile.in generated by automake 1.10 from Makefile.am.
  44310. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  44311. # @configure_input@
  44312. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  44313. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  44314. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  44315. +# Inc.
  44316. # This Makefile.in is free software; the Free Software Foundation
  44317. # gives unlimited permission to copy and/or distribute it,
  44318. # with or without modifications, as long as this notice is preserved.
  44319. @@ -15,8 +16,9 @@
  44320. @SET_MAKE@
  44321. VPATH = @srcdir@
  44322. pkgdatadir = $(datadir)/@PACKAGE@
  44323. -pkglibdir = $(libdir)/@PACKAGE@
  44324. pkgincludedir = $(includedir)/@PACKAGE@
  44325. +pkglibdir = $(libdir)/@PACKAGE@
  44326. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  44327. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  44328. install_sh_DATA = $(install_sh) -c -m 644
  44329. install_sh_PROGRAM = $(install_sh) -c
  44330. @@ -42,6 +44,7 @@
  44331. mkinstalldirs = $(install_sh) -d
  44332. CONFIG_HEADER = $(top_builddir)/config.h
  44333. CONFIG_CLEAN_FILES =
  44334. +CONFIG_CLEAN_VPATH_FILES =
  44335. SOURCES =
  44336. DIST_SOURCES =
  44337. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  44338. @@ -53,10 +56,38 @@
  44339. ps-recursive uninstall-recursive
  44340. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  44341. distclean-recursive maintainer-clean-recursive
  44342. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  44343. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  44344. + distdir
  44345. ETAGS = etags
  44346. CTAGS = ctags
  44347. DIST_SUBDIRS = $(SUBDIRS)
  44348. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  44349. +am__relativize = \
  44350. + dir0=`pwd`; \
  44351. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  44352. + sed_rest='s,^[^/]*/*,,'; \
  44353. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  44354. + sed_butlast='s,/*[^/]*$$,,'; \
  44355. + while test -n "$$dir1"; do \
  44356. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  44357. + if test "$$first" != "."; then \
  44358. + if test "$$first" = ".."; then \
  44359. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  44360. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  44361. + else \
  44362. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  44363. + if test "$$first2" = "$$first"; then \
  44364. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  44365. + else \
  44366. + dir2="../$$dir2"; \
  44367. + fi; \
  44368. + dir0="$$dir0"/"$$first"; \
  44369. + fi; \
  44370. + fi; \
  44371. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  44372. + done; \
  44373. + reldir="$$dir2"
  44374. ACLOCAL = @ACLOCAL@
  44375. ALLOCA = @ALLOCA@
  44376. AMTAR = @AMTAR@
  44377. @@ -70,22 +101,18 @@
  44378. CFLAGS = @CFLAGS@
  44379. CPP = @CPP@
  44380. CPPFLAGS = @CPPFLAGS@
  44381. -CXX = @CXX@
  44382. -CXXCPP = @CXXCPP@
  44383. -CXXDEPMODE = @CXXDEPMODE@
  44384. -CXXFLAGS = @CXXFLAGS@
  44385. CYGPATH_W = @CYGPATH_W@
  44386. DEBUG = @DEBUG@
  44387. DEFS = @DEFS@
  44388. DEPDIR = @DEPDIR@
  44389. -ECHO = @ECHO@
  44390. +DSYMUTIL = @DSYMUTIL@
  44391. +DUMPBIN = @DUMPBIN@
  44392. ECHO_C = @ECHO_C@
  44393. ECHO_N = @ECHO_N@
  44394. ECHO_T = @ECHO_T@
  44395. EGREP = @EGREP@
  44396. EXEEXT = @EXEEXT@
  44397. -F77 = @F77@
  44398. -FFLAGS = @FFLAGS@
  44399. +FGREP = @FGREP@
  44400. GREP = @GREP@
  44401. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  44402. INSTALL = @INSTALL@
  44403. @@ -93,29 +120,38 @@
  44404. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  44405. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44406. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  44407. +LD = @LD@
  44408. LDFLAGS = @LDFLAGS@
  44409. LIBOBJS = @LIBOBJS@
  44410. LIBS = @LIBS@
  44411. LIBTOOL = @LIBTOOL@
  44412. +LIPO = @LIPO@
  44413. LN_S = @LN_S@
  44414. LTLIBOBJS = @LTLIBOBJS@
  44415. MAINT = @MAINT@
  44416. MAKEINFO = @MAKEINFO@
  44417. MKDIR_P = @MKDIR_P@
  44418. +NM = @NM@
  44419. +NMEDIT = @NMEDIT@
  44420. +OBJDUMP = @OBJDUMP@
  44421. OBJEXT = @OBJEXT@
  44422. OGG_CFLAGS = @OGG_CFLAGS@
  44423. OGG_LIBS = @OGG_LIBS@
  44424. +OTOOL = @OTOOL@
  44425. +OTOOL64 = @OTOOL64@
  44426. PACKAGE = @PACKAGE@
  44427. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  44428. PACKAGE_NAME = @PACKAGE_NAME@
  44429. PACKAGE_STRING = @PACKAGE_STRING@
  44430. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  44431. +PACKAGE_URL = @PACKAGE_URL@
  44432. PACKAGE_VERSION = @PACKAGE_VERSION@
  44433. PATH_SEPARATOR = @PATH_SEPARATOR@
  44434. PDFXMLTEX = @PDFXMLTEX@
  44435. PKG_CONFIG = @PKG_CONFIG@
  44436. PROFILE = @PROFILE@
  44437. RANLIB = @RANLIB@
  44438. +SED = @SED@
  44439. SET_MAKE = @SET_MAKE@
  44440. SHELL = @SHELL@
  44441. STRIP = @STRIP@
  44442. @@ -136,8 +172,7 @@
  44443. abs_top_builddir = @abs_top_builddir@
  44444. abs_top_srcdir = @abs_top_srcdir@
  44445. ac_ct_CC = @ac_ct_CC@
  44446. -ac_ct_CXX = @ac_ct_CXX@
  44447. -ac_ct_F77 = @ac_ct_F77@
  44448. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  44449. am__include = @am__include@
  44450. am__leading_dot = @am__leading_dot@
  44451. am__quote = @am__quote@
  44452. @@ -168,6 +203,7 @@
  44453. libexecdir = @libexecdir@
  44454. localedir = @localedir@
  44455. localstatedir = @localstatedir@
  44456. +lt_ECHO = @lt_ECHO@
  44457. mandir = @mandir@
  44458. mkdir_p = @mkdir_p@
  44459. oldincludedir = @oldincludedir@
  44460. @@ -185,6 +221,7 @@
  44461. target_cpu = @target_cpu@
  44462. target_os = @target_os@
  44463. target_vendor = @target_vendor@
  44464. +top_build_prefix = @top_build_prefix@
  44465. top_builddir = @top_builddir@
  44466. top_srcdir = @top_srcdir@
  44467. SUBDIRS = vorbis
  44468. @@ -195,14 +232,14 @@
  44469. @for dep in $?; do \
  44470. case '$(am__configure_deps)' in \
  44471. *$$dep*) \
  44472. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  44473. - && exit 0; \
  44474. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  44475. + && { if test -f $@; then exit 0; else break; fi; }; \
  44476. exit 1;; \
  44477. esac; \
  44478. done; \
  44479. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
  44480. - cd $(top_srcdir) && \
  44481. - $(AUTOMAKE) --gnu include/Makefile
  44482. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
  44483. + $(am__cd) $(top_srcdir) && \
  44484. + $(AUTOMAKE) --gnu include/Makefile
  44485. .PRECIOUS: Makefile
  44486. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  44487. @case '$?' in \
  44488. @@ -220,6 +257,7 @@
  44489. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44490. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  44491. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44492. +$(am__aclocal_m4_deps):
  44493. mostlyclean-libtool:
  44494. -rm -f *.lo
  44495. @@ -234,7 +272,7 @@
  44496. # (which will cause the Makefiles to be regenerated when you run `make');
  44497. # (2) otherwise, pass the desired values on the `make' command line.
  44498. $(RECURSIVE_TARGETS):
  44499. - @failcom='exit 1'; \
  44500. + @fail= failcom='exit 1'; \
  44501. for f in x $$MAKEFLAGS; do \
  44502. case $$f in \
  44503. *=* | --[!k]*);; \
  44504. @@ -251,7 +289,7 @@
  44505. else \
  44506. local_target="$$target"; \
  44507. fi; \
  44508. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44509. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44510. || eval $$failcom; \
  44511. done; \
  44512. if test "$$dot_seen" = "no"; then \
  44513. @@ -259,7 +297,7 @@
  44514. fi; test -z "$$fail"
  44515. $(RECURSIVE_CLEAN_TARGETS):
  44516. - @failcom='exit 1'; \
  44517. + @fail= failcom='exit 1'; \
  44518. for f in x $$MAKEFLAGS; do \
  44519. case $$f in \
  44520. *=* | --[!k]*);; \
  44521. @@ -285,16 +323,16 @@
  44522. else \
  44523. local_target="$$target"; \
  44524. fi; \
  44525. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44526. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  44527. || eval $$failcom; \
  44528. done && test -z "$$fail"
  44529. tags-recursive:
  44530. list='$(SUBDIRS)'; for subdir in $$list; do \
  44531. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  44532. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  44533. done
  44534. ctags-recursive:
  44535. list='$(SUBDIRS)'; for subdir in $$list; do \
  44536. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  44537. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  44538. done
  44539. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  44540. @@ -302,14 +340,14 @@
  44541. unique=`for i in $$list; do \
  44542. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44543. done | \
  44544. - $(AWK) ' { files[$$0] = 1; } \
  44545. - END { for (i in files) print i; }'`; \
  44546. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44547. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44548. mkid -fID $$unique
  44549. tags: TAGS
  44550. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44551. $(TAGS_FILES) $(LISP)
  44552. - tags=; \
  44553. + set x; \
  44554. here=`pwd`; \
  44555. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  44556. include_option=--etags-include; \
  44557. @@ -321,39 +359,43 @@
  44558. list='$(SUBDIRS)'; for subdir in $$list; do \
  44559. if test "$$subdir" = .; then :; else \
  44560. test ! -f $$subdir/TAGS || \
  44561. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  44562. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  44563. fi; \
  44564. done; \
  44565. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44566. unique=`for i in $$list; do \
  44567. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44568. done | \
  44569. - $(AWK) ' { files[$$0] = 1; } \
  44570. - END { for (i in files) print i; }'`; \
  44571. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  44572. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44573. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44574. + shift; \
  44575. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  44576. test -n "$$unique" || unique=$$empty_fix; \
  44577. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44578. - $$tags $$unique; \
  44579. + if test $$# -gt 0; then \
  44580. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44581. + "$$@" $$unique; \
  44582. + else \
  44583. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44584. + $$unique; \
  44585. + fi; \
  44586. fi
  44587. ctags: CTAGS
  44588. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44589. $(TAGS_FILES) $(LISP)
  44590. - tags=; \
  44591. - here=`pwd`; \
  44592. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44593. unique=`for i in $$list; do \
  44594. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44595. done | \
  44596. - $(AWK) ' { files[$$0] = 1; } \
  44597. - END { for (i in files) print i; }'`; \
  44598. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  44599. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44600. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44601. + test -z "$(CTAGS_ARGS)$$unique" \
  44602. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  44603. - $$tags $$unique
  44604. + $$unique
  44605. GTAGS:
  44606. here=`$(am__cd) $(top_builddir) && pwd` \
  44607. - && cd $(top_srcdir) \
  44608. - && gtags -i $(GTAGS_ARGS) $$here
  44609. + && $(am__cd) $(top_srcdir) \
  44610. + && gtags -i $(GTAGS_ARGS) "$$here"
  44611. distclean-tags:
  44612. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  44613. @@ -374,29 +416,44 @@
  44614. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  44615. if test -d $$d/$$file; then \
  44616. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  44617. + if test -d "$(distdir)/$$file"; then \
  44618. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44619. + fi; \
  44620. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  44621. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  44622. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  44623. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44624. fi; \
  44625. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  44626. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  44627. else \
  44628. - test -f $(distdir)/$$file \
  44629. - || cp -p $$d/$$file $(distdir)/$$file \
  44630. + test -f "$(distdir)/$$file" \
  44631. + || cp -p $$d/$$file "$(distdir)/$$file" \
  44632. || exit 1; \
  44633. fi; \
  44634. done
  44635. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  44636. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  44637. if test "$$subdir" = .; then :; else \
  44638. test -d "$(distdir)/$$subdir" \
  44639. || $(MKDIR_P) "$(distdir)/$$subdir" \
  44640. || exit 1; \
  44641. - distdir=`$(am__cd) $(distdir) && pwd`; \
  44642. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  44643. - (cd $$subdir && \
  44644. + fi; \
  44645. + done
  44646. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  44647. + if test "$$subdir" = .; then :; else \
  44648. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  44649. + $(am__relativize); \
  44650. + new_distdir=$$reldir; \
  44651. + dir1=$$subdir; dir2="$(top_distdir)"; \
  44652. + $(am__relativize); \
  44653. + new_top_distdir=$$reldir; \
  44654. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  44655. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  44656. + ($(am__cd) $$subdir && \
  44657. $(MAKE) $(AM_MAKEFLAGS) \
  44658. - top_distdir="$$top_distdir" \
  44659. - distdir="$$distdir/$$subdir" \
  44660. + top_distdir="$$new_top_distdir" \
  44661. + distdir="$$new_distdir" \
  44662. am__remove_distdir=: \
  44663. am__skip_length_check=: \
  44664. + am__skip_mode_fix=: \
  44665. distdir) \
  44666. || exit 1; \
  44667. fi; \
  44668. @@ -426,6 +483,7 @@
  44669. distclean-generic:
  44670. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  44671. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  44672. maintainer-clean-generic:
  44673. @echo "This command is intended for maintainers to use"
  44674. @@ -444,6 +502,8 @@
  44675. html: html-recursive
  44676. +html-am:
  44677. +
  44678. info: info-recursive
  44679. info-am:
  44680. @@ -452,18 +512,28 @@
  44681. install-dvi: install-dvi-recursive
  44682. +install-dvi-am:
  44683. +
  44684. install-exec-am:
  44685. install-html: install-html-recursive
  44686. +install-html-am:
  44687. +
  44688. install-info: install-info-recursive
  44689. +install-info-am:
  44690. +
  44691. install-man:
  44692. install-pdf: install-pdf-recursive
  44693. +install-pdf-am:
  44694. +
  44695. install-ps: install-ps-recursive
  44696. +install-ps-am:
  44697. +
  44698. installcheck-am:
  44699. maintainer-clean: maintainer-clean-recursive
  44700. @@ -484,8 +554,8 @@
  44701. uninstall-am:
  44702. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  44703. - install-strip
  44704. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  44705. + install-am install-strip tags-recursive
  44706. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  44707. all all-am check check-am clean clean-generic clean-libtool \
  44708. @@ -501,6 +571,7 @@
  44709. mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  44710. uninstall uninstall-am
  44711. +
  44712. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  44713. # Otherwise a system limit (for SysV at least) may be exceeded.
  44714. .NOEXPORT:
  44715. diff -Nur libvorbis-1.2.0.orig/include/vorbis/Makefile.in libvorbis-1.2.0/include/vorbis/Makefile.in
  44716. --- libvorbis-1.2.0.orig/include/vorbis/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  44717. +++ libvorbis-1.2.0/include/vorbis/Makefile.in 2011-02-17 18:30:21.157019213 +0100
  44718. @@ -1,8 +1,9 @@
  44719. -# Makefile.in generated by automake 1.10 from Makefile.am.
  44720. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  44721. # @configure_input@
  44722. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  44723. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  44724. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  44725. +# Inc.
  44726. # This Makefile.in is free software; the Free Software Foundation
  44727. # gives unlimited permission to copy and/or distribute it,
  44728. # with or without modifications, as long as this notice is preserved.
  44729. @@ -16,8 +17,9 @@
  44730. VPATH = @srcdir@
  44731. pkgdatadir = $(datadir)/@PACKAGE@
  44732. -pkglibdir = $(libdir)/@PACKAGE@
  44733. pkgincludedir = $(includedir)/@PACKAGE@
  44734. +pkglibdir = $(libdir)/@PACKAGE@
  44735. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  44736. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  44737. install_sh_DATA = $(install_sh) -c -m 644
  44738. install_sh_PROGRAM = $(install_sh) -c
  44739. @@ -44,6 +46,7 @@
  44740. mkinstalldirs = $(install_sh) -d
  44741. CONFIG_HEADER = $(top_builddir)/config.h
  44742. CONFIG_CLEAN_FILES =
  44743. +CONFIG_CLEAN_VPATH_FILES =
  44744. SOURCES =
  44745. DIST_SOURCES =
  44746. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  44747. @@ -51,9 +54,23 @@
  44748. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  44749. *) f=$$p;; \
  44750. esac;
  44751. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  44752. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  44753. +am__install_max = 40
  44754. +am__nobase_strip_setup = \
  44755. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  44756. +am__nobase_strip = \
  44757. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  44758. +am__nobase_list = $(am__nobase_strip_setup); \
  44759. + for p in $$list; do echo "$$p $$p"; done | \
  44760. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  44761. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  44762. + if (++n[$$2] == $(am__install_max)) \
  44763. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  44764. + END { for (dir in files) print dir, files[dir] }'
  44765. +am__base_list = \
  44766. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  44767. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  44768. am__installdirs = "$(DESTDIR)$(vorbisincludedir)"
  44769. -vorbisincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  44770. HEADERS = $(vorbisinclude_HEADERS)
  44771. ETAGS = etags
  44772. CTAGS = ctags
  44773. @@ -71,22 +88,18 @@
  44774. CFLAGS = @CFLAGS@
  44775. CPP = @CPP@
  44776. CPPFLAGS = @CPPFLAGS@
  44777. -CXX = @CXX@
  44778. -CXXCPP = @CXXCPP@
  44779. -CXXDEPMODE = @CXXDEPMODE@
  44780. -CXXFLAGS = @CXXFLAGS@
  44781. CYGPATH_W = @CYGPATH_W@
  44782. DEBUG = @DEBUG@
  44783. DEFS = @DEFS@
  44784. DEPDIR = @DEPDIR@
  44785. -ECHO = @ECHO@
  44786. +DSYMUTIL = @DSYMUTIL@
  44787. +DUMPBIN = @DUMPBIN@
  44788. ECHO_C = @ECHO_C@
  44789. ECHO_N = @ECHO_N@
  44790. ECHO_T = @ECHO_T@
  44791. EGREP = @EGREP@
  44792. EXEEXT = @EXEEXT@
  44793. -F77 = @F77@
  44794. -FFLAGS = @FFLAGS@
  44795. +FGREP = @FGREP@
  44796. GREP = @GREP@
  44797. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  44798. INSTALL = @INSTALL@
  44799. @@ -94,29 +107,38 @@
  44800. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  44801. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44802. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  44803. +LD = @LD@
  44804. LDFLAGS = @LDFLAGS@
  44805. LIBOBJS = @LIBOBJS@
  44806. LIBS = @LIBS@
  44807. LIBTOOL = @LIBTOOL@
  44808. +LIPO = @LIPO@
  44809. LN_S = @LN_S@
  44810. LTLIBOBJS = @LTLIBOBJS@
  44811. MAINT = @MAINT@
  44812. MAKEINFO = @MAKEINFO@
  44813. MKDIR_P = @MKDIR_P@
  44814. +NM = @NM@
  44815. +NMEDIT = @NMEDIT@
  44816. +OBJDUMP = @OBJDUMP@
  44817. OBJEXT = @OBJEXT@
  44818. OGG_CFLAGS = @OGG_CFLAGS@
  44819. OGG_LIBS = @OGG_LIBS@
  44820. +OTOOL = @OTOOL@
  44821. +OTOOL64 = @OTOOL64@
  44822. PACKAGE = @PACKAGE@
  44823. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  44824. PACKAGE_NAME = @PACKAGE_NAME@
  44825. PACKAGE_STRING = @PACKAGE_STRING@
  44826. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  44827. +PACKAGE_URL = @PACKAGE_URL@
  44828. PACKAGE_VERSION = @PACKAGE_VERSION@
  44829. PATH_SEPARATOR = @PATH_SEPARATOR@
  44830. PDFXMLTEX = @PDFXMLTEX@
  44831. PKG_CONFIG = @PKG_CONFIG@
  44832. PROFILE = @PROFILE@
  44833. RANLIB = @RANLIB@
  44834. +SED = @SED@
  44835. SET_MAKE = @SET_MAKE@
  44836. SHELL = @SHELL@
  44837. STRIP = @STRIP@
  44838. @@ -137,8 +159,7 @@
  44839. abs_top_builddir = @abs_top_builddir@
  44840. abs_top_srcdir = @abs_top_srcdir@
  44841. ac_ct_CC = @ac_ct_CC@
  44842. -ac_ct_CXX = @ac_ct_CXX@
  44843. -ac_ct_F77 = @ac_ct_F77@
  44844. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  44845. am__include = @am__include@
  44846. am__leading_dot = @am__leading_dot@
  44847. am__quote = @am__quote@
  44848. @@ -169,6 +190,7 @@
  44849. libexecdir = @libexecdir@
  44850. localedir = @localedir@
  44851. localstatedir = @localstatedir@
  44852. +lt_ECHO = @lt_ECHO@
  44853. mandir = @mandir@
  44854. mkdir_p = @mkdir_p@
  44855. oldincludedir = @oldincludedir@
  44856. @@ -186,6 +208,7 @@
  44857. target_cpu = @target_cpu@
  44858. target_os = @target_os@
  44859. target_vendor = @target_vendor@
  44860. +top_build_prefix = @top_build_prefix@
  44861. top_builddir = @top_builddir@
  44862. top_srcdir = @top_srcdir@
  44863. vorbisincludedir = $(includedir)/vorbis
  44864. @@ -197,14 +220,14 @@
  44865. @for dep in $?; do \
  44866. case '$(am__configure_deps)' in \
  44867. *$$dep*) \
  44868. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  44869. - && exit 0; \
  44870. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  44871. + && { if test -f $@; then exit 0; else break; fi; }; \
  44872. exit 1;; \
  44873. esac; \
  44874. done; \
  44875. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/vorbis/Makefile'; \
  44876. - cd $(top_srcdir) && \
  44877. - $(AUTOMAKE) --gnu include/vorbis/Makefile
  44878. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/vorbis/Makefile'; \
  44879. + $(am__cd) $(top_srcdir) && \
  44880. + $(AUTOMAKE) --gnu include/vorbis/Makefile
  44881. .PRECIOUS: Makefile
  44882. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  44883. @case '$?' in \
  44884. @@ -222,6 +245,7 @@
  44885. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44886. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  44887. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44888. +$(am__aclocal_m4_deps):
  44889. mostlyclean-libtool:
  44890. -rm -f *.lo
  44891. @@ -231,65 +255,72 @@
  44892. install-vorbisincludeHEADERS: $(vorbisinclude_HEADERS)
  44893. @$(NORMAL_INSTALL)
  44894. test -z "$(vorbisincludedir)" || $(MKDIR_P) "$(DESTDIR)$(vorbisincludedir)"
  44895. - @list='$(vorbisinclude_HEADERS)'; for p in $$list; do \
  44896. + @list='$(vorbisinclude_HEADERS)'; test -n "$(vorbisincludedir)" || list=; \
  44897. + for p in $$list; do \
  44898. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  44899. - f=$(am__strip_dir) \
  44900. - echo " $(vorbisincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(vorbisincludedir)/$$f'"; \
  44901. - $(vorbisincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(vorbisincludedir)/$$f"; \
  44902. + echo "$$d$$p"; \
  44903. + done | $(am__base_list) | \
  44904. + while read files; do \
  44905. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(vorbisincludedir)'"; \
  44906. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(vorbisincludedir)" || exit $$?; \
  44907. done
  44908. uninstall-vorbisincludeHEADERS:
  44909. @$(NORMAL_UNINSTALL)
  44910. - @list='$(vorbisinclude_HEADERS)'; for p in $$list; do \
  44911. - f=$(am__strip_dir) \
  44912. - echo " rm -f '$(DESTDIR)$(vorbisincludedir)/$$f'"; \
  44913. - rm -f "$(DESTDIR)$(vorbisincludedir)/$$f"; \
  44914. - done
  44915. + @list='$(vorbisinclude_HEADERS)'; test -n "$(vorbisincludedir)" || list=; \
  44916. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  44917. + test -n "$$files" || exit 0; \
  44918. + echo " ( cd '$(DESTDIR)$(vorbisincludedir)' && rm -f" $$files ")"; \
  44919. + cd "$(DESTDIR)$(vorbisincludedir)" && rm -f $$files
  44920. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  44921. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44922. unique=`for i in $$list; do \
  44923. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44924. done | \
  44925. - $(AWK) ' { files[$$0] = 1; } \
  44926. - END { for (i in files) print i; }'`; \
  44927. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44928. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44929. mkid -fID $$unique
  44930. tags: TAGS
  44931. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44932. $(TAGS_FILES) $(LISP)
  44933. - tags=; \
  44934. + set x; \
  44935. here=`pwd`; \
  44936. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44937. unique=`for i in $$list; do \
  44938. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44939. done | \
  44940. - $(AWK) ' { files[$$0] = 1; } \
  44941. - END { for (i in files) print i; }'`; \
  44942. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  44943. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44944. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44945. + shift; \
  44946. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  44947. test -n "$$unique" || unique=$$empty_fix; \
  44948. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44949. - $$tags $$unique; \
  44950. + if test $$# -gt 0; then \
  44951. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44952. + "$$@" $$unique; \
  44953. + else \
  44954. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44955. + $$unique; \
  44956. + fi; \
  44957. fi
  44958. ctags: CTAGS
  44959. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44960. $(TAGS_FILES) $(LISP)
  44961. - tags=; \
  44962. - here=`pwd`; \
  44963. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44964. unique=`for i in $$list; do \
  44965. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44966. done | \
  44967. - $(AWK) ' { files[$$0] = 1; } \
  44968. - END { for (i in files) print i; }'`; \
  44969. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  44970. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44971. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44972. + test -z "$(CTAGS_ARGS)$$unique" \
  44973. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  44974. - $$tags $$unique
  44975. + $$unique
  44976. GTAGS:
  44977. here=`$(am__cd) $(top_builddir) && pwd` \
  44978. - && cd $(top_srcdir) \
  44979. - && gtags -i $(GTAGS_ARGS) $$here
  44980. + && $(am__cd) $(top_srcdir) \
  44981. + && gtags -i $(GTAGS_ARGS) "$$here"
  44982. distclean-tags:
  44983. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  44984. @@ -310,13 +341,17 @@
  44985. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  44986. if test -d $$d/$$file; then \
  44987. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  44988. + if test -d "$(distdir)/$$file"; then \
  44989. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44990. + fi; \
  44991. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  44992. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  44993. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  44994. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44995. fi; \
  44996. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  44997. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  44998. else \
  44999. - test -f $(distdir)/$$file \
  45000. - || cp -p $$d/$$file $(distdir)/$$file \
  45001. + test -f "$(distdir)/$$file" \
  45002. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45003. || exit 1; \
  45004. fi; \
  45005. done
  45006. @@ -347,6 +382,7 @@
  45007. distclean-generic:
  45008. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45009. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45010. maintainer-clean-generic:
  45011. @echo "This command is intended for maintainers to use"
  45012. @@ -365,6 +401,8 @@
  45013. html: html-am
  45014. +html-am:
  45015. +
  45016. info: info-am
  45017. info-am:
  45018. @@ -373,18 +411,28 @@
  45019. install-dvi: install-dvi-am
  45020. +install-dvi-am:
  45021. +
  45022. install-exec-am:
  45023. install-html: install-html-am
  45024. +install-html-am:
  45025. +
  45026. install-info: install-info-am
  45027. +install-info-am:
  45028. +
  45029. install-man:
  45030. install-pdf: install-pdf-am
  45031. +install-pdf-am:
  45032. +
  45033. install-ps: install-ps-am
  45034. +install-ps-am:
  45035. +
  45036. installcheck-am:
  45037. maintainer-clean: maintainer-clean-am
  45038. @@ -421,6 +469,7 @@
  45039. ps ps-am tags uninstall uninstall-am \
  45040. uninstall-vorbisincludeHEADERS
  45041. +
  45042. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45043. # Otherwise a system limit (for SysV at least) may be exceeded.
  45044. .NOEXPORT:
  45045. diff -Nur libvorbis-1.2.0.orig/install-sh libvorbis-1.2.0/install-sh
  45046. --- libvorbis-1.2.0.orig/install-sh 2006-11-17 14:08:39.000000000 +0100
  45047. +++ libvorbis-1.2.0/install-sh 2011-02-17 18:30:20.913553803 +0100
  45048. @@ -1,7 +1,7 @@
  45049. #!/bin/sh
  45050. # install - install a program, script, or datafile
  45051. -scriptversion=2006-10-14.15
  45052. +scriptversion=2009-04-28.21; # UTC
  45053. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  45054. # later released in X11R6 (xc/config/util/install.sh) with the
  45055. @@ -48,7 +48,7 @@
  45056. # set DOITPROG to echo to test this script
  45057. # Don't use :- since 4.3BSD and earlier shells don't like it.
  45058. -doit="${DOITPROG-}"
  45059. +doit=${DOITPROG-}
  45060. if test -z "$doit"; then
  45061. doit_exec=exec
  45062. else
  45063. @@ -58,34 +58,49 @@
  45064. # Put in absolute file names if you don't have them in your path;
  45065. # or use environment vars.
  45066. -mvprog="${MVPROG-mv}"
  45067. -cpprog="${CPPROG-cp}"
  45068. -chmodprog="${CHMODPROG-chmod}"
  45069. -chownprog="${CHOWNPROG-chown}"
  45070. -chgrpprog="${CHGRPPROG-chgrp}"
  45071. -stripprog="${STRIPPROG-strip}"
  45072. -rmprog="${RMPROG-rm}"
  45073. -mkdirprog="${MKDIRPROG-mkdir}"
  45074. +chgrpprog=${CHGRPPROG-chgrp}
  45075. +chmodprog=${CHMODPROG-chmod}
  45076. +chownprog=${CHOWNPROG-chown}
  45077. +cmpprog=${CMPPROG-cmp}
  45078. +cpprog=${CPPROG-cp}
  45079. +mkdirprog=${MKDIRPROG-mkdir}
  45080. +mvprog=${MVPROG-mv}
  45081. +rmprog=${RMPROG-rm}
  45082. +stripprog=${STRIPPROG-strip}
  45083. +
  45084. +posix_glob='?'
  45085. +initialize_posix_glob='
  45086. + test "$posix_glob" != "?" || {
  45087. + if (set -f) 2>/dev/null; then
  45088. + posix_glob=
  45089. + else
  45090. + posix_glob=:
  45091. + fi
  45092. + }
  45093. +'
  45094. -posix_glob=
  45095. posix_mkdir=
  45096. # Desired mode of installed file.
  45097. mode=0755
  45098. +chgrpcmd=
  45099. chmodcmd=$chmodprog
  45100. chowncmd=
  45101. -chgrpcmd=
  45102. -stripcmd=
  45103. +mvcmd=$mvprog
  45104. rmcmd="$rmprog -f"
  45105. -mvcmd="$mvprog"
  45106. +stripcmd=
  45107. +
  45108. src=
  45109. dst=
  45110. dir_arg=
  45111. -dstarg=
  45112. +dst_arg=
  45113. +
  45114. +copy_on_change=false
  45115. no_target_directory=
  45116. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  45117. +usage="\
  45118. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  45119. or: $0 [OPTION]... SRCFILES... DIRECTORY
  45120. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  45121. or: $0 [OPTION]... -d DIRECTORIES...
  45122. @@ -95,65 +110,55 @@
  45123. In the 4th, create DIRECTORIES.
  45124. Options:
  45125. --c (ignored)
  45126. --d create directories instead of installing files.
  45127. --g GROUP $chgrpprog installed files to GROUP.
  45128. --m MODE $chmodprog installed files to MODE.
  45129. --o USER $chownprog installed files to USER.
  45130. --s $stripprog installed files.
  45131. --t DIRECTORY install into DIRECTORY.
  45132. --T report an error if DSTFILE is a directory.
  45133. ---help display this help and exit.
  45134. ---version display version info and exit.
  45135. + --help display this help and exit.
  45136. + --version display version info and exit.
  45137. +
  45138. + -c (ignored)
  45139. + -C install only if different (preserve the last data modification time)
  45140. + -d create directories instead of installing files.
  45141. + -g GROUP $chgrpprog installed files to GROUP.
  45142. + -m MODE $chmodprog installed files to MODE.
  45143. + -o USER $chownprog installed files to USER.
  45144. + -s $stripprog installed files.
  45145. + -t DIRECTORY install into DIRECTORY.
  45146. + -T report an error if DSTFILE is a directory.
  45147. Environment variables override the default commands:
  45148. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  45149. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  45150. + RMPROG STRIPPROG
  45151. "
  45152. while test $# -ne 0; do
  45153. case $1 in
  45154. - -c) shift
  45155. - continue;;
  45156. + -c) ;;
  45157. +
  45158. + -C) copy_on_change=true;;
  45159. - -d) dir_arg=true
  45160. - shift
  45161. - continue;;
  45162. + -d) dir_arg=true;;
  45163. -g) chgrpcmd="$chgrpprog $2"
  45164. - shift
  45165. - shift
  45166. - continue;;
  45167. + shift;;
  45168. --help) echo "$usage"; exit $?;;
  45169. -m) mode=$2
  45170. - shift
  45171. - shift
  45172. case $mode in
  45173. *' '* | *' '* | *'
  45174. '* | *'*'* | *'?'* | *'['*)
  45175. echo "$0: invalid mode: $mode" >&2
  45176. exit 1;;
  45177. esac
  45178. - continue;;
  45179. + shift;;
  45180. -o) chowncmd="$chownprog $2"
  45181. - shift
  45182. - shift
  45183. - continue;;
  45184. -
  45185. - -s) stripcmd=$stripprog
  45186. - shift
  45187. - continue;;
  45188. -
  45189. - -t) dstarg=$2
  45190. - shift
  45191. - shift
  45192. - continue;;
  45193. -
  45194. - -T) no_target_directory=true
  45195. - shift
  45196. - continue;;
  45197. + shift;;
  45198. +
  45199. + -s) stripcmd=$stripprog;;
  45200. +
  45201. + -t) dst_arg=$2
  45202. + shift;;
  45203. +
  45204. + -T) no_target_directory=true;;
  45205. --version) echo "$0 $scriptversion"; exit $?;;
  45206. @@ -165,21 +170,22 @@
  45207. *) break;;
  45208. esac
  45209. + shift
  45210. done
  45211. -if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
  45212. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  45213. # When -d is used, all remaining arguments are directories to create.
  45214. # When -t is used, the destination is already specified.
  45215. # Otherwise, the last argument is the destination. Remove it from $@.
  45216. for arg
  45217. do
  45218. - if test -n "$dstarg"; then
  45219. + if test -n "$dst_arg"; then
  45220. # $@ is not empty: it contains at least $arg.
  45221. - set fnord "$@" "$dstarg"
  45222. + set fnord "$@" "$dst_arg"
  45223. shift # fnord
  45224. fi
  45225. shift # arg
  45226. - dstarg=$arg
  45227. + dst_arg=$arg
  45228. done
  45229. fi
  45230. @@ -224,7 +230,7 @@
  45231. do
  45232. # Protect names starting with `-'.
  45233. case $src in
  45234. - -*) src=./$src ;;
  45235. + -*) src=./$src;;
  45236. esac
  45237. if test -n "$dir_arg"; then
  45238. @@ -242,22 +248,22 @@
  45239. exit 1
  45240. fi
  45241. - if test -z "$dstarg"; then
  45242. + if test -z "$dst_arg"; then
  45243. echo "$0: no destination specified." >&2
  45244. exit 1
  45245. fi
  45246. - dst=$dstarg
  45247. + dst=$dst_arg
  45248. # Protect names starting with `-'.
  45249. case $dst in
  45250. - -*) dst=./$dst ;;
  45251. + -*) dst=./$dst;;
  45252. esac
  45253. # If destination is a directory, append the input filename; won't work
  45254. # if double slashes aren't ignored.
  45255. if test -d "$dst"; then
  45256. if test -n "$no_target_directory"; then
  45257. - echo "$0: $dstarg: Is a directory" >&2
  45258. + echo "$0: $dst_arg: Is a directory" >&2
  45259. exit 1
  45260. fi
  45261. dstdir=$dst
  45262. @@ -378,26 +384,19 @@
  45263. # directory the slow way, step by step, checking for races as we go.
  45264. case $dstdir in
  45265. - /*) prefix=/ ;;
  45266. - -*) prefix=./ ;;
  45267. - *) prefix= ;;
  45268. + /*) prefix='/';;
  45269. + -*) prefix='./';;
  45270. + *) prefix='';;
  45271. esac
  45272. - case $posix_glob in
  45273. - '')
  45274. - if (set -f) 2>/dev/null; then
  45275. - posix_glob=true
  45276. - else
  45277. - posix_glob=false
  45278. - fi ;;
  45279. - esac
  45280. + eval "$initialize_posix_glob"
  45281. oIFS=$IFS
  45282. IFS=/
  45283. - $posix_glob && set -f
  45284. + $posix_glob set -f
  45285. set fnord $dstdir
  45286. shift
  45287. - $posix_glob && set +f
  45288. + $posix_glob set +f
  45289. IFS=$oIFS
  45290. prefixes=
  45291. @@ -459,41 +458,54 @@
  45292. # ignore errors from any of these, just make sure not to ignore
  45293. # errors from the above "$doit $cpprog $src $dsttmp" command.
  45294. #
  45295. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  45296. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  45297. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  45298. - && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  45299. -
  45300. - # Now rename the file to the real destination.
  45301. - { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
  45302. - || {
  45303. - # The rename failed, perhaps because mv can't rename something else
  45304. - # to itself, or perhaps because mv is so ancient that it does not
  45305. - # support -f.
  45306. -
  45307. - # Now remove or move aside any old file at destination location.
  45308. - # We try this two ways since rm can't unlink itself on some
  45309. - # systems and the destination file might be busy for other
  45310. - # reasons. In this case, the final cleanup might fail but the new
  45311. - # file should still install successfully.
  45312. - {
  45313. - if test -f "$dst"; then
  45314. - $doit $rmcmd -f "$dst" 2>/dev/null \
  45315. - || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
  45316. - && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
  45317. - || {
  45318. - echo "$0: cannot unlink or rename $dst" >&2
  45319. - (exit 1); exit 1
  45320. - }
  45321. - else
  45322. - :
  45323. - fi
  45324. - } &&
  45325. -
  45326. - # Now rename the file to the real destination.
  45327. - $doit $mvcmd "$dsttmp" "$dst"
  45328. - }
  45329. - } || exit 1
  45330. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  45331. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  45332. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  45333. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  45334. +
  45335. + # If -C, don't bother to copy if it wouldn't change the file.
  45336. + if $copy_on_change &&
  45337. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  45338. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  45339. +
  45340. + eval "$initialize_posix_glob" &&
  45341. + $posix_glob set -f &&
  45342. + set X $old && old=:$2:$4:$5:$6 &&
  45343. + set X $new && new=:$2:$4:$5:$6 &&
  45344. + $posix_glob set +f &&
  45345. +
  45346. + test "$old" = "$new" &&
  45347. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  45348. + then
  45349. + rm -f "$dsttmp"
  45350. + else
  45351. + # Rename the file to the real destination.
  45352. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  45353. +
  45354. + # The rename failed, perhaps because mv can't rename something else
  45355. + # to itself, or perhaps because mv is so ancient that it does not
  45356. + # support -f.
  45357. + {
  45358. + # Now remove or move aside any old file at destination location.
  45359. + # We try this two ways since rm can't unlink itself on some
  45360. + # systems and the destination file might be busy for other
  45361. + # reasons. In this case, the final cleanup might fail but the new
  45362. + # file should still install successfully.
  45363. + {
  45364. + test ! -f "$dst" ||
  45365. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  45366. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  45367. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  45368. + } ||
  45369. + { echo "$0: cannot unlink or rename $dst" >&2
  45370. + (exit 1); exit 1
  45371. + }
  45372. + } &&
  45373. +
  45374. + # Now rename the file to the real destination.
  45375. + $doit $mvcmd "$dsttmp" "$dst"
  45376. + }
  45377. + fi || exit 1
  45378. trap '' 0
  45379. fi
  45380. @@ -503,5 +515,6 @@
  45381. # eval: (add-hook 'write-file-hooks 'time-stamp)
  45382. # time-stamp-start: "scriptversion="
  45383. # time-stamp-format: "%:y-%02m-%02d.%02H"
  45384. -# time-stamp-end: "$"
  45385. +# time-stamp-time-zone: "UTC"
  45386. +# time-stamp-end: "; # UTC"
  45387. # End:
  45388. diff -Nur libvorbis-1.2.0.orig/lib/books/coupled/Makefile.in libvorbis-1.2.0/lib/books/coupled/Makefile.in
  45389. --- libvorbis-1.2.0.orig/lib/books/coupled/Makefile.in 2007-07-25 18:46:36.000000000 +0200
  45390. +++ libvorbis-1.2.0/lib/books/coupled/Makefile.in 2011-02-17 18:30:21.273561801 +0100
  45391. @@ -1,8 +1,9 @@
  45392. -# Makefile.in generated by automake 1.10 from Makefile.am.
  45393. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45394. # @configure_input@
  45395. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45396. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  45397. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45398. +# Inc.
  45399. # This Makefile.in is free software; the Free Software Foundation
  45400. # gives unlimited permission to copy and/or distribute it,
  45401. # with or without modifications, as long as this notice is preserved.
  45402. @@ -15,8 +16,9 @@
  45403. @SET_MAKE@
  45404. VPATH = @srcdir@
  45405. pkgdatadir = $(datadir)/@PACKAGE@
  45406. -pkglibdir = $(libdir)/@PACKAGE@
  45407. pkgincludedir = $(includedir)/@PACKAGE@
  45408. +pkglibdir = $(libdir)/@PACKAGE@
  45409. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45410. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45411. install_sh_DATA = $(install_sh) -c -m 644
  45412. install_sh_PROGRAM = $(install_sh) -c
  45413. @@ -42,6 +44,7 @@
  45414. mkinstalldirs = $(install_sh) -d
  45415. CONFIG_HEADER = $(top_builddir)/config.h
  45416. CONFIG_CLEAN_FILES =
  45417. +CONFIG_CLEAN_VPATH_FILES =
  45418. SOURCES =
  45419. DIST_SOURCES =
  45420. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  45421. @@ -58,22 +61,18 @@
  45422. CFLAGS = @CFLAGS@
  45423. CPP = @CPP@
  45424. CPPFLAGS = @CPPFLAGS@
  45425. -CXX = @CXX@
  45426. -CXXCPP = @CXXCPP@
  45427. -CXXDEPMODE = @CXXDEPMODE@
  45428. -CXXFLAGS = @CXXFLAGS@
  45429. CYGPATH_W = @CYGPATH_W@
  45430. DEBUG = @DEBUG@
  45431. DEFS = @DEFS@
  45432. DEPDIR = @DEPDIR@
  45433. -ECHO = @ECHO@
  45434. +DSYMUTIL = @DSYMUTIL@
  45435. +DUMPBIN = @DUMPBIN@
  45436. ECHO_C = @ECHO_C@
  45437. ECHO_N = @ECHO_N@
  45438. ECHO_T = @ECHO_T@
  45439. EGREP = @EGREP@
  45440. EXEEXT = @EXEEXT@
  45441. -F77 = @F77@
  45442. -FFLAGS = @FFLAGS@
  45443. +FGREP = @FGREP@
  45444. GREP = @GREP@
  45445. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  45446. INSTALL = @INSTALL@
  45447. @@ -81,29 +80,38 @@
  45448. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45449. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45450. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45451. +LD = @LD@
  45452. LDFLAGS = @LDFLAGS@
  45453. LIBOBJS = @LIBOBJS@
  45454. LIBS = @LIBS@
  45455. LIBTOOL = @LIBTOOL@
  45456. +LIPO = @LIPO@
  45457. LN_S = @LN_S@
  45458. LTLIBOBJS = @LTLIBOBJS@
  45459. MAINT = @MAINT@
  45460. MAKEINFO = @MAKEINFO@
  45461. MKDIR_P = @MKDIR_P@
  45462. +NM = @NM@
  45463. +NMEDIT = @NMEDIT@
  45464. +OBJDUMP = @OBJDUMP@
  45465. OBJEXT = @OBJEXT@
  45466. OGG_CFLAGS = @OGG_CFLAGS@
  45467. OGG_LIBS = @OGG_LIBS@
  45468. +OTOOL = @OTOOL@
  45469. +OTOOL64 = @OTOOL64@
  45470. PACKAGE = @PACKAGE@
  45471. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45472. PACKAGE_NAME = @PACKAGE_NAME@
  45473. PACKAGE_STRING = @PACKAGE_STRING@
  45474. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45475. +PACKAGE_URL = @PACKAGE_URL@
  45476. PACKAGE_VERSION = @PACKAGE_VERSION@
  45477. PATH_SEPARATOR = @PATH_SEPARATOR@
  45478. PDFXMLTEX = @PDFXMLTEX@
  45479. PKG_CONFIG = @PKG_CONFIG@
  45480. PROFILE = @PROFILE@
  45481. RANLIB = @RANLIB@
  45482. +SED = @SED@
  45483. SET_MAKE = @SET_MAKE@
  45484. SHELL = @SHELL@
  45485. STRIP = @STRIP@
  45486. @@ -124,8 +132,7 @@
  45487. abs_top_builddir = @abs_top_builddir@
  45488. abs_top_srcdir = @abs_top_srcdir@
  45489. ac_ct_CC = @ac_ct_CC@
  45490. -ac_ct_CXX = @ac_ct_CXX@
  45491. -ac_ct_F77 = @ac_ct_F77@
  45492. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45493. am__include = @am__include@
  45494. am__leading_dot = @am__leading_dot@
  45495. am__quote = @am__quote@
  45496. @@ -156,6 +163,7 @@
  45497. libexecdir = @libexecdir@
  45498. localedir = @localedir@
  45499. localstatedir = @localstatedir@
  45500. +lt_ECHO = @lt_ECHO@
  45501. mandir = @mandir@
  45502. mkdir_p = @mkdir_p@
  45503. oldincludedir = @oldincludedir@
  45504. @@ -173,6 +181,7 @@
  45505. target_cpu = @target_cpu@
  45506. target_os = @target_os@
  45507. target_vendor = @target_vendor@
  45508. +top_build_prefix = @top_build_prefix@
  45509. top_builddir = @top_builddir@
  45510. top_srcdir = @top_srcdir@
  45511. EXTRA_DIST = res_books_stereo.h
  45512. @@ -183,14 +192,14 @@
  45513. @for dep in $?; do \
  45514. case '$(am__configure_deps)' in \
  45515. *$$dep*) \
  45516. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45517. - && exit 0; \
  45518. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45519. + && { if test -f $@; then exit 0; else break; fi; }; \
  45520. exit 1;; \
  45521. esac; \
  45522. done; \
  45523. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/coupled/Makefile'; \
  45524. - cd $(top_srcdir) && \
  45525. - $(AUTOMAKE) --gnu lib/books/coupled/Makefile
  45526. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/coupled/Makefile'; \
  45527. + $(am__cd) $(top_srcdir) && \
  45528. + $(AUTOMAKE) --gnu lib/books/coupled/Makefile
  45529. .PRECIOUS: Makefile
  45530. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45531. @case '$?' in \
  45532. @@ -208,6 +217,7 @@
  45533. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45534. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45535. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45536. +$(am__aclocal_m4_deps):
  45537. mostlyclean-libtool:
  45538. -rm -f *.lo
  45539. @@ -237,13 +247,17 @@
  45540. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45541. if test -d $$d/$$file; then \
  45542. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45543. + if test -d "$(distdir)/$$file"; then \
  45544. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45545. + fi; \
  45546. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45547. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45548. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45549. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45550. fi; \
  45551. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45552. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45553. else \
  45554. - test -f $(distdir)/$$file \
  45555. - || cp -p $$d/$$file $(distdir)/$$file \
  45556. + test -f "$(distdir)/$$file" \
  45557. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45558. || exit 1; \
  45559. fi; \
  45560. done
  45561. @@ -271,6 +285,7 @@
  45562. distclean-generic:
  45563. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45564. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45565. maintainer-clean-generic:
  45566. @echo "This command is intended for maintainers to use"
  45567. @@ -289,6 +304,8 @@
  45568. html: html-am
  45569. +html-am:
  45570. +
  45571. info: info-am
  45572. info-am:
  45573. @@ -297,18 +314,28 @@
  45574. install-dvi: install-dvi-am
  45575. +install-dvi-am:
  45576. +
  45577. install-exec-am:
  45578. install-html: install-html-am
  45579. +install-html-am:
  45580. +
  45581. install-info: install-info-am
  45582. +install-info-am:
  45583. +
  45584. install-man:
  45585. install-pdf: install-pdf-am
  45586. +install-pdf-am:
  45587. +
  45588. install-ps: install-ps-am
  45589. +install-ps-am:
  45590. +
  45591. installcheck-am:
  45592. maintainer-clean: maintainer-clean-am
  45593. @@ -342,6 +369,7 @@
  45594. maintainer-clean-generic mostlyclean mostlyclean-generic \
  45595. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  45596. +
  45597. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45598. # Otherwise a system limit (for SysV at least) may be exceeded.
  45599. .NOEXPORT:
  45600. diff -Nur libvorbis-1.2.0.orig/lib/books/floor/Makefile.in libvorbis-1.2.0/lib/books/floor/Makefile.in
  45601. --- libvorbis-1.2.0.orig/lib/books/floor/Makefile.in 2007-07-25 18:46:36.000000000 +0200
  45602. +++ libvorbis-1.2.0/lib/books/floor/Makefile.in 2011-02-17 18:30:21.293561812 +0100
  45603. @@ -1,8 +1,9 @@
  45604. -# Makefile.in generated by automake 1.10 from Makefile.am.
  45605. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45606. # @configure_input@
  45607. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45608. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  45609. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45610. +# Inc.
  45611. # This Makefile.in is free software; the Free Software Foundation
  45612. # gives unlimited permission to copy and/or distribute it,
  45613. # with or without modifications, as long as this notice is preserved.
  45614. @@ -15,8 +16,9 @@
  45615. @SET_MAKE@
  45616. VPATH = @srcdir@
  45617. pkgdatadir = $(datadir)/@PACKAGE@
  45618. -pkglibdir = $(libdir)/@PACKAGE@
  45619. pkgincludedir = $(includedir)/@PACKAGE@
  45620. +pkglibdir = $(libdir)/@PACKAGE@
  45621. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45622. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45623. install_sh_DATA = $(install_sh) -c -m 644
  45624. install_sh_PROGRAM = $(install_sh) -c
  45625. @@ -42,6 +44,7 @@
  45626. mkinstalldirs = $(install_sh) -d
  45627. CONFIG_HEADER = $(top_builddir)/config.h
  45628. CONFIG_CLEAN_FILES =
  45629. +CONFIG_CLEAN_VPATH_FILES =
  45630. SOURCES =
  45631. DIST_SOURCES =
  45632. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  45633. @@ -58,22 +61,18 @@
  45634. CFLAGS = @CFLAGS@
  45635. CPP = @CPP@
  45636. CPPFLAGS = @CPPFLAGS@
  45637. -CXX = @CXX@
  45638. -CXXCPP = @CXXCPP@
  45639. -CXXDEPMODE = @CXXDEPMODE@
  45640. -CXXFLAGS = @CXXFLAGS@
  45641. CYGPATH_W = @CYGPATH_W@
  45642. DEBUG = @DEBUG@
  45643. DEFS = @DEFS@
  45644. DEPDIR = @DEPDIR@
  45645. -ECHO = @ECHO@
  45646. +DSYMUTIL = @DSYMUTIL@
  45647. +DUMPBIN = @DUMPBIN@
  45648. ECHO_C = @ECHO_C@
  45649. ECHO_N = @ECHO_N@
  45650. ECHO_T = @ECHO_T@
  45651. EGREP = @EGREP@
  45652. EXEEXT = @EXEEXT@
  45653. -F77 = @F77@
  45654. -FFLAGS = @FFLAGS@
  45655. +FGREP = @FGREP@
  45656. GREP = @GREP@
  45657. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  45658. INSTALL = @INSTALL@
  45659. @@ -81,29 +80,38 @@
  45660. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45661. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45662. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45663. +LD = @LD@
  45664. LDFLAGS = @LDFLAGS@
  45665. LIBOBJS = @LIBOBJS@
  45666. LIBS = @LIBS@
  45667. LIBTOOL = @LIBTOOL@
  45668. +LIPO = @LIPO@
  45669. LN_S = @LN_S@
  45670. LTLIBOBJS = @LTLIBOBJS@
  45671. MAINT = @MAINT@
  45672. MAKEINFO = @MAKEINFO@
  45673. MKDIR_P = @MKDIR_P@
  45674. +NM = @NM@
  45675. +NMEDIT = @NMEDIT@
  45676. +OBJDUMP = @OBJDUMP@
  45677. OBJEXT = @OBJEXT@
  45678. OGG_CFLAGS = @OGG_CFLAGS@
  45679. OGG_LIBS = @OGG_LIBS@
  45680. +OTOOL = @OTOOL@
  45681. +OTOOL64 = @OTOOL64@
  45682. PACKAGE = @PACKAGE@
  45683. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45684. PACKAGE_NAME = @PACKAGE_NAME@
  45685. PACKAGE_STRING = @PACKAGE_STRING@
  45686. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45687. +PACKAGE_URL = @PACKAGE_URL@
  45688. PACKAGE_VERSION = @PACKAGE_VERSION@
  45689. PATH_SEPARATOR = @PATH_SEPARATOR@
  45690. PDFXMLTEX = @PDFXMLTEX@
  45691. PKG_CONFIG = @PKG_CONFIG@
  45692. PROFILE = @PROFILE@
  45693. RANLIB = @RANLIB@
  45694. +SED = @SED@
  45695. SET_MAKE = @SET_MAKE@
  45696. SHELL = @SHELL@
  45697. STRIP = @STRIP@
  45698. @@ -124,8 +132,7 @@
  45699. abs_top_builddir = @abs_top_builddir@
  45700. abs_top_srcdir = @abs_top_srcdir@
  45701. ac_ct_CC = @ac_ct_CC@
  45702. -ac_ct_CXX = @ac_ct_CXX@
  45703. -ac_ct_F77 = @ac_ct_F77@
  45704. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45705. am__include = @am__include@
  45706. am__leading_dot = @am__leading_dot@
  45707. am__quote = @am__quote@
  45708. @@ -156,6 +163,7 @@
  45709. libexecdir = @libexecdir@
  45710. localedir = @localedir@
  45711. localstatedir = @localstatedir@
  45712. +lt_ECHO = @lt_ECHO@
  45713. mandir = @mandir@
  45714. mkdir_p = @mkdir_p@
  45715. oldincludedir = @oldincludedir@
  45716. @@ -173,6 +181,7 @@
  45717. target_cpu = @target_cpu@
  45718. target_os = @target_os@
  45719. target_vendor = @target_vendor@
  45720. +top_build_prefix = @top_build_prefix@
  45721. top_builddir = @top_builddir@
  45722. top_srcdir = @top_srcdir@
  45723. EXTRA_DIST = floor_books.h
  45724. @@ -183,14 +192,14 @@
  45725. @for dep in $?; do \
  45726. case '$(am__configure_deps)' in \
  45727. *$$dep*) \
  45728. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45729. - && exit 0; \
  45730. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45731. + && { if test -f $@; then exit 0; else break; fi; }; \
  45732. exit 1;; \
  45733. esac; \
  45734. done; \
  45735. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/floor/Makefile'; \
  45736. - cd $(top_srcdir) && \
  45737. - $(AUTOMAKE) --gnu lib/books/floor/Makefile
  45738. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/floor/Makefile'; \
  45739. + $(am__cd) $(top_srcdir) && \
  45740. + $(AUTOMAKE) --gnu lib/books/floor/Makefile
  45741. .PRECIOUS: Makefile
  45742. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45743. @case '$?' in \
  45744. @@ -208,6 +217,7 @@
  45745. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45746. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45747. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45748. +$(am__aclocal_m4_deps):
  45749. mostlyclean-libtool:
  45750. -rm -f *.lo
  45751. @@ -237,13 +247,17 @@
  45752. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45753. if test -d $$d/$$file; then \
  45754. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45755. + if test -d "$(distdir)/$$file"; then \
  45756. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45757. + fi; \
  45758. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45759. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45760. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45761. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45762. fi; \
  45763. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45764. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45765. else \
  45766. - test -f $(distdir)/$$file \
  45767. - || cp -p $$d/$$file $(distdir)/$$file \
  45768. + test -f "$(distdir)/$$file" \
  45769. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45770. || exit 1; \
  45771. fi; \
  45772. done
  45773. @@ -271,6 +285,7 @@
  45774. distclean-generic:
  45775. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45776. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45777. maintainer-clean-generic:
  45778. @echo "This command is intended for maintainers to use"
  45779. @@ -289,6 +304,8 @@
  45780. html: html-am
  45781. +html-am:
  45782. +
  45783. info: info-am
  45784. info-am:
  45785. @@ -297,18 +314,28 @@
  45786. install-dvi: install-dvi-am
  45787. +install-dvi-am:
  45788. +
  45789. install-exec-am:
  45790. install-html: install-html-am
  45791. +install-html-am:
  45792. +
  45793. install-info: install-info-am
  45794. +install-info-am:
  45795. +
  45796. install-man:
  45797. install-pdf: install-pdf-am
  45798. +install-pdf-am:
  45799. +
  45800. install-ps: install-ps-am
  45801. +install-ps-am:
  45802. +
  45803. installcheck-am:
  45804. maintainer-clean: maintainer-clean-am
  45805. @@ -342,6 +369,7 @@
  45806. maintainer-clean-generic mostlyclean mostlyclean-generic \
  45807. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  45808. +
  45809. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45810. # Otherwise a system limit (for SysV at least) may be exceeded.
  45811. .NOEXPORT:
  45812. diff -Nur libvorbis-1.2.0.orig/lib/books/Makefile.in libvorbis-1.2.0/lib/books/Makefile.in
  45813. --- libvorbis-1.2.0.orig/lib/books/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  45814. +++ libvorbis-1.2.0/lib/books/Makefile.in 2011-02-17 18:30:21.233560806 +0100
  45815. @@ -1,8 +1,9 @@
  45816. -# Makefile.in generated by automake 1.10 from Makefile.am.
  45817. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45818. # @configure_input@
  45819. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45820. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  45821. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45822. +# Inc.
  45823. # This Makefile.in is free software; the Free Software Foundation
  45824. # gives unlimited permission to copy and/or distribute it,
  45825. # with or without modifications, as long as this notice is preserved.
  45826. @@ -15,8 +16,9 @@
  45827. @SET_MAKE@
  45828. VPATH = @srcdir@
  45829. pkgdatadir = $(datadir)/@PACKAGE@
  45830. -pkglibdir = $(libdir)/@PACKAGE@
  45831. pkgincludedir = $(includedir)/@PACKAGE@
  45832. +pkglibdir = $(libdir)/@PACKAGE@
  45833. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45834. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45835. install_sh_DATA = $(install_sh) -c -m 644
  45836. install_sh_PROGRAM = $(install_sh) -c
  45837. @@ -42,6 +44,7 @@
  45838. mkinstalldirs = $(install_sh) -d
  45839. CONFIG_HEADER = $(top_builddir)/config.h
  45840. CONFIG_CLEAN_FILES =
  45841. +CONFIG_CLEAN_VPATH_FILES =
  45842. SOURCES =
  45843. DIST_SOURCES =
  45844. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  45845. @@ -53,10 +56,38 @@
  45846. ps-recursive uninstall-recursive
  45847. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  45848. distclean-recursive maintainer-clean-recursive
  45849. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  45850. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  45851. + distdir
  45852. ETAGS = etags
  45853. CTAGS = ctags
  45854. DIST_SUBDIRS = $(SUBDIRS)
  45855. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  45856. +am__relativize = \
  45857. + dir0=`pwd`; \
  45858. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  45859. + sed_rest='s,^[^/]*/*,,'; \
  45860. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  45861. + sed_butlast='s,/*[^/]*$$,,'; \
  45862. + while test -n "$$dir1"; do \
  45863. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  45864. + if test "$$first" != "."; then \
  45865. + if test "$$first" = ".."; then \
  45866. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  45867. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  45868. + else \
  45869. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  45870. + if test "$$first2" = "$$first"; then \
  45871. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  45872. + else \
  45873. + dir2="../$$dir2"; \
  45874. + fi; \
  45875. + dir0="$$dir0"/"$$first"; \
  45876. + fi; \
  45877. + fi; \
  45878. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  45879. + done; \
  45880. + reldir="$$dir2"
  45881. ACLOCAL = @ACLOCAL@
  45882. ALLOCA = @ALLOCA@
  45883. AMTAR = @AMTAR@
  45884. @@ -70,22 +101,18 @@
  45885. CFLAGS = @CFLAGS@
  45886. CPP = @CPP@
  45887. CPPFLAGS = @CPPFLAGS@
  45888. -CXX = @CXX@
  45889. -CXXCPP = @CXXCPP@
  45890. -CXXDEPMODE = @CXXDEPMODE@
  45891. -CXXFLAGS = @CXXFLAGS@
  45892. CYGPATH_W = @CYGPATH_W@
  45893. DEBUG = @DEBUG@
  45894. DEFS = @DEFS@
  45895. DEPDIR = @DEPDIR@
  45896. -ECHO = @ECHO@
  45897. +DSYMUTIL = @DSYMUTIL@
  45898. +DUMPBIN = @DUMPBIN@
  45899. ECHO_C = @ECHO_C@
  45900. ECHO_N = @ECHO_N@
  45901. ECHO_T = @ECHO_T@
  45902. EGREP = @EGREP@
  45903. EXEEXT = @EXEEXT@
  45904. -F77 = @F77@
  45905. -FFLAGS = @FFLAGS@
  45906. +FGREP = @FGREP@
  45907. GREP = @GREP@
  45908. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  45909. INSTALL = @INSTALL@
  45910. @@ -93,29 +120,38 @@
  45911. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45912. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45913. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45914. +LD = @LD@
  45915. LDFLAGS = @LDFLAGS@
  45916. LIBOBJS = @LIBOBJS@
  45917. LIBS = @LIBS@
  45918. LIBTOOL = @LIBTOOL@
  45919. +LIPO = @LIPO@
  45920. LN_S = @LN_S@
  45921. LTLIBOBJS = @LTLIBOBJS@
  45922. MAINT = @MAINT@
  45923. MAKEINFO = @MAKEINFO@
  45924. MKDIR_P = @MKDIR_P@
  45925. +NM = @NM@
  45926. +NMEDIT = @NMEDIT@
  45927. +OBJDUMP = @OBJDUMP@
  45928. OBJEXT = @OBJEXT@
  45929. OGG_CFLAGS = @OGG_CFLAGS@
  45930. OGG_LIBS = @OGG_LIBS@
  45931. +OTOOL = @OTOOL@
  45932. +OTOOL64 = @OTOOL64@
  45933. PACKAGE = @PACKAGE@
  45934. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45935. PACKAGE_NAME = @PACKAGE_NAME@
  45936. PACKAGE_STRING = @PACKAGE_STRING@
  45937. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45938. +PACKAGE_URL = @PACKAGE_URL@
  45939. PACKAGE_VERSION = @PACKAGE_VERSION@
  45940. PATH_SEPARATOR = @PATH_SEPARATOR@
  45941. PDFXMLTEX = @PDFXMLTEX@
  45942. PKG_CONFIG = @PKG_CONFIG@
  45943. PROFILE = @PROFILE@
  45944. RANLIB = @RANLIB@
  45945. +SED = @SED@
  45946. SET_MAKE = @SET_MAKE@
  45947. SHELL = @SHELL@
  45948. STRIP = @STRIP@
  45949. @@ -136,8 +172,7 @@
  45950. abs_top_builddir = @abs_top_builddir@
  45951. abs_top_srcdir = @abs_top_srcdir@
  45952. ac_ct_CC = @ac_ct_CC@
  45953. -ac_ct_CXX = @ac_ct_CXX@
  45954. -ac_ct_F77 = @ac_ct_F77@
  45955. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45956. am__include = @am__include@
  45957. am__leading_dot = @am__leading_dot@
  45958. am__quote = @am__quote@
  45959. @@ -168,6 +203,7 @@
  45960. libexecdir = @libexecdir@
  45961. localedir = @localedir@
  45962. localstatedir = @localstatedir@
  45963. +lt_ECHO = @lt_ECHO@
  45964. mandir = @mandir@
  45965. mkdir_p = @mkdir_p@
  45966. oldincludedir = @oldincludedir@
  45967. @@ -185,6 +221,7 @@
  45968. target_cpu = @target_cpu@
  45969. target_os = @target_os@
  45970. target_vendor = @target_vendor@
  45971. +top_build_prefix = @top_build_prefix@
  45972. top_builddir = @top_builddir@
  45973. top_srcdir = @top_srcdir@
  45974. SUBDIRS = coupled uncoupled floor
  45975. @@ -195,14 +232,14 @@
  45976. @for dep in $?; do \
  45977. case '$(am__configure_deps)' in \
  45978. *$$dep*) \
  45979. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45980. - && exit 0; \
  45981. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45982. + && { if test -f $@; then exit 0; else break; fi; }; \
  45983. exit 1;; \
  45984. esac; \
  45985. done; \
  45986. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/Makefile'; \
  45987. - cd $(top_srcdir) && \
  45988. - $(AUTOMAKE) --gnu lib/books/Makefile
  45989. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/Makefile'; \
  45990. + $(am__cd) $(top_srcdir) && \
  45991. + $(AUTOMAKE) --gnu lib/books/Makefile
  45992. .PRECIOUS: Makefile
  45993. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45994. @case '$?' in \
  45995. @@ -220,6 +257,7 @@
  45996. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45997. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45998. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45999. +$(am__aclocal_m4_deps):
  46000. mostlyclean-libtool:
  46001. -rm -f *.lo
  46002. @@ -234,7 +272,7 @@
  46003. # (which will cause the Makefiles to be regenerated when you run `make');
  46004. # (2) otherwise, pass the desired values on the `make' command line.
  46005. $(RECURSIVE_TARGETS):
  46006. - @failcom='exit 1'; \
  46007. + @fail= failcom='exit 1'; \
  46008. for f in x $$MAKEFLAGS; do \
  46009. case $$f in \
  46010. *=* | --[!k]*);; \
  46011. @@ -251,7 +289,7 @@
  46012. else \
  46013. local_target="$$target"; \
  46014. fi; \
  46015. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46016. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46017. || eval $$failcom; \
  46018. done; \
  46019. if test "$$dot_seen" = "no"; then \
  46020. @@ -259,7 +297,7 @@
  46021. fi; test -z "$$fail"
  46022. $(RECURSIVE_CLEAN_TARGETS):
  46023. - @failcom='exit 1'; \
  46024. + @fail= failcom='exit 1'; \
  46025. for f in x $$MAKEFLAGS; do \
  46026. case $$f in \
  46027. *=* | --[!k]*);; \
  46028. @@ -285,16 +323,16 @@
  46029. else \
  46030. local_target="$$target"; \
  46031. fi; \
  46032. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46033. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46034. || eval $$failcom; \
  46035. done && test -z "$$fail"
  46036. tags-recursive:
  46037. list='$(SUBDIRS)'; for subdir in $$list; do \
  46038. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46039. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46040. done
  46041. ctags-recursive:
  46042. list='$(SUBDIRS)'; for subdir in $$list; do \
  46043. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46044. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46045. done
  46046. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  46047. @@ -302,14 +340,14 @@
  46048. unique=`for i in $$list; do \
  46049. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46050. done | \
  46051. - $(AWK) ' { files[$$0] = 1; } \
  46052. - END { for (i in files) print i; }'`; \
  46053. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46054. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46055. mkid -fID $$unique
  46056. tags: TAGS
  46057. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46058. $(TAGS_FILES) $(LISP)
  46059. - tags=; \
  46060. + set x; \
  46061. here=`pwd`; \
  46062. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  46063. include_option=--etags-include; \
  46064. @@ -321,39 +359,43 @@
  46065. list='$(SUBDIRS)'; for subdir in $$list; do \
  46066. if test "$$subdir" = .; then :; else \
  46067. test ! -f $$subdir/TAGS || \
  46068. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  46069. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  46070. fi; \
  46071. done; \
  46072. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46073. unique=`for i in $$list; do \
  46074. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46075. done | \
  46076. - $(AWK) ' { files[$$0] = 1; } \
  46077. - END { for (i in files) print i; }'`; \
  46078. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  46079. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46080. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46081. + shift; \
  46082. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  46083. test -n "$$unique" || unique=$$empty_fix; \
  46084. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46085. - $$tags $$unique; \
  46086. + if test $$# -gt 0; then \
  46087. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46088. + "$$@" $$unique; \
  46089. + else \
  46090. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46091. + $$unique; \
  46092. + fi; \
  46093. fi
  46094. ctags: CTAGS
  46095. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46096. $(TAGS_FILES) $(LISP)
  46097. - tags=; \
  46098. - here=`pwd`; \
  46099. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46100. unique=`for i in $$list; do \
  46101. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46102. done | \
  46103. - $(AWK) ' { files[$$0] = 1; } \
  46104. - END { for (i in files) print i; }'`; \
  46105. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  46106. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46107. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46108. + test -z "$(CTAGS_ARGS)$$unique" \
  46109. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  46110. - $$tags $$unique
  46111. + $$unique
  46112. GTAGS:
  46113. here=`$(am__cd) $(top_builddir) && pwd` \
  46114. - && cd $(top_srcdir) \
  46115. - && gtags -i $(GTAGS_ARGS) $$here
  46116. + && $(am__cd) $(top_srcdir) \
  46117. + && gtags -i $(GTAGS_ARGS) "$$here"
  46118. distclean-tags:
  46119. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  46120. @@ -374,29 +416,44 @@
  46121. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46122. if test -d $$d/$$file; then \
  46123. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46124. + if test -d "$(distdir)/$$file"; then \
  46125. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46126. + fi; \
  46127. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46128. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46129. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46130. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46131. fi; \
  46132. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46133. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46134. else \
  46135. - test -f $(distdir)/$$file \
  46136. - || cp -p $$d/$$file $(distdir)/$$file \
  46137. + test -f "$(distdir)/$$file" \
  46138. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46139. || exit 1; \
  46140. fi; \
  46141. done
  46142. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46143. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46144. if test "$$subdir" = .; then :; else \
  46145. test -d "$(distdir)/$$subdir" \
  46146. || $(MKDIR_P) "$(distdir)/$$subdir" \
  46147. || exit 1; \
  46148. - distdir=`$(am__cd) $(distdir) && pwd`; \
  46149. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  46150. - (cd $$subdir && \
  46151. + fi; \
  46152. + done
  46153. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46154. + if test "$$subdir" = .; then :; else \
  46155. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  46156. + $(am__relativize); \
  46157. + new_distdir=$$reldir; \
  46158. + dir1=$$subdir; dir2="$(top_distdir)"; \
  46159. + $(am__relativize); \
  46160. + new_top_distdir=$$reldir; \
  46161. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  46162. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  46163. + ($(am__cd) $$subdir && \
  46164. $(MAKE) $(AM_MAKEFLAGS) \
  46165. - top_distdir="$$top_distdir" \
  46166. - distdir="$$distdir/$$subdir" \
  46167. + top_distdir="$$new_top_distdir" \
  46168. + distdir="$$new_distdir" \
  46169. am__remove_distdir=: \
  46170. am__skip_length_check=: \
  46171. + am__skip_mode_fix=: \
  46172. distdir) \
  46173. || exit 1; \
  46174. fi; \
  46175. @@ -426,6 +483,7 @@
  46176. distclean-generic:
  46177. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46178. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46179. maintainer-clean-generic:
  46180. @echo "This command is intended for maintainers to use"
  46181. @@ -444,6 +502,8 @@
  46182. html: html-recursive
  46183. +html-am:
  46184. +
  46185. info: info-recursive
  46186. info-am:
  46187. @@ -452,18 +512,28 @@
  46188. install-dvi: install-dvi-recursive
  46189. +install-dvi-am:
  46190. +
  46191. install-exec-am:
  46192. install-html: install-html-recursive
  46193. +install-html-am:
  46194. +
  46195. install-info: install-info-recursive
  46196. +install-info-am:
  46197. +
  46198. install-man:
  46199. install-pdf: install-pdf-recursive
  46200. +install-pdf-am:
  46201. +
  46202. install-ps: install-ps-recursive
  46203. +install-ps-am:
  46204. +
  46205. installcheck-am:
  46206. maintainer-clean: maintainer-clean-recursive
  46207. @@ -484,8 +554,8 @@
  46208. uninstall-am:
  46209. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  46210. - install-strip
  46211. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  46212. + install-am install-strip tags-recursive
  46213. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  46214. all all-am check check-am clean clean-generic clean-libtool \
  46215. @@ -501,6 +571,7 @@
  46216. mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  46217. uninstall uninstall-am
  46218. +
  46219. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46220. # Otherwise a system limit (for SysV at least) may be exceeded.
  46221. .NOEXPORT:
  46222. diff -Nur libvorbis-1.2.0.orig/lib/books/uncoupled/Makefile.in libvorbis-1.2.0/lib/books/uncoupled/Makefile.in
  46223. --- libvorbis-1.2.0.orig/lib/books/uncoupled/Makefile.in 2007-07-25 18:46:36.000000000 +0200
  46224. +++ libvorbis-1.2.0/lib/books/uncoupled/Makefile.in 2011-02-17 18:30:21.324117807 +0100
  46225. @@ -1,8 +1,9 @@
  46226. -# Makefile.in generated by automake 1.10 from Makefile.am.
  46227. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46228. # @configure_input@
  46229. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46230. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  46231. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46232. +# Inc.
  46233. # This Makefile.in is free software; the Free Software Foundation
  46234. # gives unlimited permission to copy and/or distribute it,
  46235. # with or without modifications, as long as this notice is preserved.
  46236. @@ -15,8 +16,9 @@
  46237. @SET_MAKE@
  46238. VPATH = @srcdir@
  46239. pkgdatadir = $(datadir)/@PACKAGE@
  46240. -pkglibdir = $(libdir)/@PACKAGE@
  46241. pkgincludedir = $(includedir)/@PACKAGE@
  46242. +pkglibdir = $(libdir)/@PACKAGE@
  46243. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46244. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46245. install_sh_DATA = $(install_sh) -c -m 644
  46246. install_sh_PROGRAM = $(install_sh) -c
  46247. @@ -42,6 +44,7 @@
  46248. mkinstalldirs = $(install_sh) -d
  46249. CONFIG_HEADER = $(top_builddir)/config.h
  46250. CONFIG_CLEAN_FILES =
  46251. +CONFIG_CLEAN_VPATH_FILES =
  46252. SOURCES =
  46253. DIST_SOURCES =
  46254. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46255. @@ -58,22 +61,18 @@
  46256. CFLAGS = @CFLAGS@
  46257. CPP = @CPP@
  46258. CPPFLAGS = @CPPFLAGS@
  46259. -CXX = @CXX@
  46260. -CXXCPP = @CXXCPP@
  46261. -CXXDEPMODE = @CXXDEPMODE@
  46262. -CXXFLAGS = @CXXFLAGS@
  46263. CYGPATH_W = @CYGPATH_W@
  46264. DEBUG = @DEBUG@
  46265. DEFS = @DEFS@
  46266. DEPDIR = @DEPDIR@
  46267. -ECHO = @ECHO@
  46268. +DSYMUTIL = @DSYMUTIL@
  46269. +DUMPBIN = @DUMPBIN@
  46270. ECHO_C = @ECHO_C@
  46271. ECHO_N = @ECHO_N@
  46272. ECHO_T = @ECHO_T@
  46273. EGREP = @EGREP@
  46274. EXEEXT = @EXEEXT@
  46275. -F77 = @F77@
  46276. -FFLAGS = @FFLAGS@
  46277. +FGREP = @FGREP@
  46278. GREP = @GREP@
  46279. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  46280. INSTALL = @INSTALL@
  46281. @@ -81,29 +80,38 @@
  46282. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46283. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46284. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46285. +LD = @LD@
  46286. LDFLAGS = @LDFLAGS@
  46287. LIBOBJS = @LIBOBJS@
  46288. LIBS = @LIBS@
  46289. LIBTOOL = @LIBTOOL@
  46290. +LIPO = @LIPO@
  46291. LN_S = @LN_S@
  46292. LTLIBOBJS = @LTLIBOBJS@
  46293. MAINT = @MAINT@
  46294. MAKEINFO = @MAKEINFO@
  46295. MKDIR_P = @MKDIR_P@
  46296. +NM = @NM@
  46297. +NMEDIT = @NMEDIT@
  46298. +OBJDUMP = @OBJDUMP@
  46299. OBJEXT = @OBJEXT@
  46300. OGG_CFLAGS = @OGG_CFLAGS@
  46301. OGG_LIBS = @OGG_LIBS@
  46302. +OTOOL = @OTOOL@
  46303. +OTOOL64 = @OTOOL64@
  46304. PACKAGE = @PACKAGE@
  46305. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46306. PACKAGE_NAME = @PACKAGE_NAME@
  46307. PACKAGE_STRING = @PACKAGE_STRING@
  46308. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46309. +PACKAGE_URL = @PACKAGE_URL@
  46310. PACKAGE_VERSION = @PACKAGE_VERSION@
  46311. PATH_SEPARATOR = @PATH_SEPARATOR@
  46312. PDFXMLTEX = @PDFXMLTEX@
  46313. PKG_CONFIG = @PKG_CONFIG@
  46314. PROFILE = @PROFILE@
  46315. RANLIB = @RANLIB@
  46316. +SED = @SED@
  46317. SET_MAKE = @SET_MAKE@
  46318. SHELL = @SHELL@
  46319. STRIP = @STRIP@
  46320. @@ -124,8 +132,7 @@
  46321. abs_top_builddir = @abs_top_builddir@
  46322. abs_top_srcdir = @abs_top_srcdir@
  46323. ac_ct_CC = @ac_ct_CC@
  46324. -ac_ct_CXX = @ac_ct_CXX@
  46325. -ac_ct_F77 = @ac_ct_F77@
  46326. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46327. am__include = @am__include@
  46328. am__leading_dot = @am__leading_dot@
  46329. am__quote = @am__quote@
  46330. @@ -156,6 +163,7 @@
  46331. libexecdir = @libexecdir@
  46332. localedir = @localedir@
  46333. localstatedir = @localstatedir@
  46334. +lt_ECHO = @lt_ECHO@
  46335. mandir = @mandir@
  46336. mkdir_p = @mkdir_p@
  46337. oldincludedir = @oldincludedir@
  46338. @@ -173,6 +181,7 @@
  46339. target_cpu = @target_cpu@
  46340. target_os = @target_os@
  46341. target_vendor = @target_vendor@
  46342. +top_build_prefix = @top_build_prefix@
  46343. top_builddir = @top_builddir@
  46344. top_srcdir = @top_srcdir@
  46345. EXTRA_DIST = res_books_uncoupled.h
  46346. @@ -183,14 +192,14 @@
  46347. @for dep in $?; do \
  46348. case '$(am__configure_deps)' in \
  46349. *$$dep*) \
  46350. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46351. - && exit 0; \
  46352. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46353. + && { if test -f $@; then exit 0; else break; fi; }; \
  46354. exit 1;; \
  46355. esac; \
  46356. done; \
  46357. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/uncoupled/Makefile'; \
  46358. - cd $(top_srcdir) && \
  46359. - $(AUTOMAKE) --gnu lib/books/uncoupled/Makefile
  46360. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/books/uncoupled/Makefile'; \
  46361. + $(am__cd) $(top_srcdir) && \
  46362. + $(AUTOMAKE) --gnu lib/books/uncoupled/Makefile
  46363. .PRECIOUS: Makefile
  46364. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46365. @case '$?' in \
  46366. @@ -208,6 +217,7 @@
  46367. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46368. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  46369. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46370. +$(am__aclocal_m4_deps):
  46371. mostlyclean-libtool:
  46372. -rm -f *.lo
  46373. @@ -237,13 +247,17 @@
  46374. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46375. if test -d $$d/$$file; then \
  46376. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46377. + if test -d "$(distdir)/$$file"; then \
  46378. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46379. + fi; \
  46380. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46381. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46382. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46383. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46384. fi; \
  46385. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46386. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46387. else \
  46388. - test -f $(distdir)/$$file \
  46389. - || cp -p $$d/$$file $(distdir)/$$file \
  46390. + test -f "$(distdir)/$$file" \
  46391. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46392. || exit 1; \
  46393. fi; \
  46394. done
  46395. @@ -271,6 +285,7 @@
  46396. distclean-generic:
  46397. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46398. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46399. maintainer-clean-generic:
  46400. @echo "This command is intended for maintainers to use"
  46401. @@ -289,6 +304,8 @@
  46402. html: html-am
  46403. +html-am:
  46404. +
  46405. info: info-am
  46406. info-am:
  46407. @@ -297,18 +314,28 @@
  46408. install-dvi: install-dvi-am
  46409. +install-dvi-am:
  46410. +
  46411. install-exec-am:
  46412. install-html: install-html-am
  46413. +install-html-am:
  46414. +
  46415. install-info: install-info-am
  46416. +install-info-am:
  46417. +
  46418. install-man:
  46419. install-pdf: install-pdf-am
  46420. +install-pdf-am:
  46421. +
  46422. install-ps: install-ps-am
  46423. +install-ps-am:
  46424. +
  46425. installcheck-am:
  46426. maintainer-clean: maintainer-clean-am
  46427. @@ -342,6 +369,7 @@
  46428. maintainer-clean-generic mostlyclean mostlyclean-generic \
  46429. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  46430. +
  46431. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46432. # Otherwise a system limit (for SysV at least) may be exceeded.
  46433. .NOEXPORT:
  46434. diff -Nur libvorbis-1.2.0.orig/lib/Makefile.in libvorbis-1.2.0/lib/Makefile.in
  46435. --- libvorbis-1.2.0.orig/lib/Makefile.in 2007-07-25 18:46:35.000000000 +0200
  46436. +++ libvorbis-1.2.0/lib/Makefile.in 2011-02-17 18:30:21.207302342 +0100
  46437. @@ -1,8 +1,9 @@
  46438. -# Makefile.in generated by automake 1.10 from Makefile.am.
  46439. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46440. # @configure_input@
  46441. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46442. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  46443. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46444. +# Inc.
  46445. # This Makefile.in is free software; the Free Software Foundation
  46446. # gives unlimited permission to copy and/or distribute it,
  46447. # with or without modifications, as long as this notice is preserved.
  46448. @@ -16,8 +17,9 @@
  46449. VPATH = @srcdir@
  46450. pkgdatadir = $(datadir)/@PACKAGE@
  46451. -pkglibdir = $(libdir)/@PACKAGE@
  46452. pkgincludedir = $(includedir)/@PACKAGE@
  46453. +pkglibdir = $(libdir)/@PACKAGE@
  46454. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46455. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46456. install_sh_DATA = $(install_sh) -c -m 644
  46457. install_sh_PROGRAM = $(install_sh) -c
  46458. @@ -44,14 +46,29 @@
  46459. mkinstalldirs = $(install_sh) -d
  46460. CONFIG_HEADER = $(top_builddir)/config.h
  46461. CONFIG_CLEAN_FILES =
  46462. +CONFIG_CLEAN_VPATH_FILES =
  46463. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  46464. am__vpath_adj = case $$p in \
  46465. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  46466. *) f=$$p;; \
  46467. esac;
  46468. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  46469. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  46470. +am__install_max = 40
  46471. +am__nobase_strip_setup = \
  46472. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  46473. +am__nobase_strip = \
  46474. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  46475. +am__nobase_list = $(am__nobase_strip_setup); \
  46476. + for p in $$list; do echo "$$p $$p"; done | \
  46477. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  46478. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  46479. + if (++n[$$2] == $(am__install_max)) \
  46480. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  46481. + END { for (dir in files) print dir, files[dir] }'
  46482. +am__base_list = \
  46483. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  46484. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  46485. am__installdirs = "$(DESTDIR)$(libdir)"
  46486. -libLTLIBRARIES_INSTALL = $(INSTALL)
  46487. LTLIBRARIES = $(lib_LTLIBRARIES)
  46488. libvorbis_la_DEPENDENCIES =
  46489. am_libvorbis_la_OBJECTS = mdct.lo smallft.lo block.lo envelope.lo \
  46490. @@ -86,9 +103,10 @@
  46491. am_tone_OBJECTS = tone.$(OBJEXT)
  46492. tone_OBJECTS = $(am_tone_OBJECTS)
  46493. tone_LDADD = $(LDADD)
  46494. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  46495. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  46496. depcomp = $(SHELL) $(top_srcdir)/depcomp
  46497. am__depfiles_maybe = depfiles
  46498. +am__mv = mv -f
  46499. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  46500. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  46501. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  46502. @@ -113,10 +131,38 @@
  46503. ps-recursive uninstall-recursive
  46504. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  46505. distclean-recursive maintainer-clean-recursive
  46506. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  46507. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  46508. + distdir
  46509. ETAGS = etags
  46510. CTAGS = ctags
  46511. DIST_SUBDIRS = $(SUBDIRS)
  46512. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46513. +am__relativize = \
  46514. + dir0=`pwd`; \
  46515. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  46516. + sed_rest='s,^[^/]*/*,,'; \
  46517. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  46518. + sed_butlast='s,/*[^/]*$$,,'; \
  46519. + while test -n "$$dir1"; do \
  46520. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  46521. + if test "$$first" != "."; then \
  46522. + if test "$$first" = ".."; then \
  46523. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  46524. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  46525. + else \
  46526. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  46527. + if test "$$first2" = "$$first"; then \
  46528. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  46529. + else \
  46530. + dir2="../$$dir2"; \
  46531. + fi; \
  46532. + dir0="$$dir0"/"$$first"; \
  46533. + fi; \
  46534. + fi; \
  46535. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  46536. + done; \
  46537. + reldir="$$dir2"
  46538. ACLOCAL = @ACLOCAL@
  46539. ALLOCA = @ALLOCA@
  46540. AMTAR = @AMTAR@
  46541. @@ -130,22 +176,18 @@
  46542. CFLAGS = @CFLAGS@
  46543. CPP = @CPP@
  46544. CPPFLAGS = @CPPFLAGS@
  46545. -CXX = @CXX@
  46546. -CXXCPP = @CXXCPP@
  46547. -CXXDEPMODE = @CXXDEPMODE@
  46548. -CXXFLAGS = @CXXFLAGS@
  46549. CYGPATH_W = @CYGPATH_W@
  46550. DEBUG = @DEBUG@
  46551. DEFS = @DEFS@
  46552. DEPDIR = @DEPDIR@
  46553. -ECHO = @ECHO@
  46554. +DSYMUTIL = @DSYMUTIL@
  46555. +DUMPBIN = @DUMPBIN@
  46556. ECHO_C = @ECHO_C@
  46557. ECHO_N = @ECHO_N@
  46558. ECHO_T = @ECHO_T@
  46559. EGREP = @EGREP@
  46560. EXEEXT = @EXEEXT@
  46561. -F77 = @F77@
  46562. -FFLAGS = @FFLAGS@
  46563. +FGREP = @FGREP@
  46564. GREP = @GREP@
  46565. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  46566. INSTALL = @INSTALL@
  46567. @@ -153,29 +195,38 @@
  46568. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46569. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46570. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46571. +LD = @LD@
  46572. LDFLAGS = @LDFLAGS@
  46573. LIBOBJS = @LIBOBJS@
  46574. LIBS = @LIBS@
  46575. LIBTOOL = @LIBTOOL@
  46576. +LIPO = @LIPO@
  46577. LN_S = @LN_S@
  46578. LTLIBOBJS = @LTLIBOBJS@
  46579. MAINT = @MAINT@
  46580. MAKEINFO = @MAKEINFO@
  46581. MKDIR_P = @MKDIR_P@
  46582. +NM = @NM@
  46583. +NMEDIT = @NMEDIT@
  46584. +OBJDUMP = @OBJDUMP@
  46585. OBJEXT = @OBJEXT@
  46586. OGG_CFLAGS = @OGG_CFLAGS@
  46587. OGG_LIBS = @OGG_LIBS@
  46588. +OTOOL = @OTOOL@
  46589. +OTOOL64 = @OTOOL64@
  46590. PACKAGE = @PACKAGE@
  46591. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46592. PACKAGE_NAME = @PACKAGE_NAME@
  46593. PACKAGE_STRING = @PACKAGE_STRING@
  46594. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46595. +PACKAGE_URL = @PACKAGE_URL@
  46596. PACKAGE_VERSION = @PACKAGE_VERSION@
  46597. PATH_SEPARATOR = @PATH_SEPARATOR@
  46598. PDFXMLTEX = @PDFXMLTEX@
  46599. PKG_CONFIG = @PKG_CONFIG@
  46600. PROFILE = @PROFILE@
  46601. RANLIB = @RANLIB@
  46602. +SED = @SED@
  46603. SET_MAKE = @SET_MAKE@
  46604. SHELL = @SHELL@
  46605. STRIP = @STRIP@
  46606. @@ -196,8 +247,7 @@
  46607. abs_top_builddir = @abs_top_builddir@
  46608. abs_top_srcdir = @abs_top_srcdir@
  46609. ac_ct_CC = @ac_ct_CC@
  46610. -ac_ct_CXX = @ac_ct_CXX@
  46611. -ac_ct_F77 = @ac_ct_F77@
  46612. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46613. am__include = @am__include@
  46614. am__leading_dot = @am__leading_dot@
  46615. am__quote = @am__quote@
  46616. @@ -228,6 +278,7 @@
  46617. libexecdir = @libexecdir@
  46618. localedir = @localedir@
  46619. localstatedir = @localstatedir@
  46620. +lt_ECHO = @lt_ECHO@
  46621. mandir = @mandir@
  46622. mkdir_p = @mkdir_p@
  46623. oldincludedir = @oldincludedir@
  46624. @@ -245,6 +296,7 @@
  46625. target_cpu = @target_cpu@
  46626. target_os = @target_os@
  46627. target_vendor = @target_vendor@
  46628. +top_build_prefix = @top_build_prefix@
  46629. top_builddir = @top_builddir@
  46630. top_srcdir = @top_srcdir@
  46631. SUBDIRS = modes books
  46632. @@ -283,14 +335,14 @@
  46633. @for dep in $?; do \
  46634. case '$(am__configure_deps)' in \
  46635. *$$dep*) \
  46636. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46637. - && exit 0; \
  46638. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46639. + && { if test -f $@; then exit 0; else break; fi; }; \
  46640. exit 1;; \
  46641. esac; \
  46642. done; \
  46643. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \
  46644. - cd $(top_srcdir) && \
  46645. - $(AUTOMAKE) --gnu lib/Makefile
  46646. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \
  46647. + $(am__cd) $(top_srcdir) && \
  46648. + $(AUTOMAKE) --gnu lib/Makefile
  46649. .PRECIOUS: Makefile
  46650. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46651. @case '$?' in \
  46652. @@ -308,23 +360,28 @@
  46653. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46654. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  46655. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46656. +$(am__aclocal_m4_deps):
  46657. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  46658. @$(NORMAL_INSTALL)
  46659. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  46660. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  46661. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  46662. + list2=; for p in $$list; do \
  46663. if test -f $$p; then \
  46664. - f=$(am__strip_dir) \
  46665. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  46666. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  46667. + list2="$$list2 $$p"; \
  46668. else :; fi; \
  46669. - done
  46670. + done; \
  46671. + test -z "$$list2" || { \
  46672. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  46673. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  46674. + }
  46675. uninstall-libLTLIBRARIES:
  46676. @$(NORMAL_UNINSTALL)
  46677. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  46678. - p=$(am__strip_dir) \
  46679. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  46680. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  46681. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  46682. + for p in $$list; do \
  46683. + $(am__strip_dir) \
  46684. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  46685. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  46686. done
  46687. clean-libLTLIBRARIES:
  46688. @@ -385,21 +442,21 @@
  46689. .c.o:
  46690. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  46691. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  46692. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  46693. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  46694. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  46695. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  46696. .c.obj:
  46697. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  46698. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  46699. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  46700. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  46701. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  46702. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  46703. .c.lo:
  46704. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  46705. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  46706. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  46707. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  46708. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  46709. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  46710. @@ -417,7 +474,7 @@
  46711. # (which will cause the Makefiles to be regenerated when you run `make');
  46712. # (2) otherwise, pass the desired values on the `make' command line.
  46713. $(RECURSIVE_TARGETS):
  46714. - @failcom='exit 1'; \
  46715. + @fail= failcom='exit 1'; \
  46716. for f in x $$MAKEFLAGS; do \
  46717. case $$f in \
  46718. *=* | --[!k]*);; \
  46719. @@ -434,7 +491,7 @@
  46720. else \
  46721. local_target="$$target"; \
  46722. fi; \
  46723. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46724. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46725. || eval $$failcom; \
  46726. done; \
  46727. if test "$$dot_seen" = "no"; then \
  46728. @@ -442,7 +499,7 @@
  46729. fi; test -z "$$fail"
  46730. $(RECURSIVE_CLEAN_TARGETS):
  46731. - @failcom='exit 1'; \
  46732. + @fail= failcom='exit 1'; \
  46733. for f in x $$MAKEFLAGS; do \
  46734. case $$f in \
  46735. *=* | --[!k]*);; \
  46736. @@ -468,16 +525,16 @@
  46737. else \
  46738. local_target="$$target"; \
  46739. fi; \
  46740. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46741. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46742. || eval $$failcom; \
  46743. done && test -z "$$fail"
  46744. tags-recursive:
  46745. list='$(SUBDIRS)'; for subdir in $$list; do \
  46746. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46747. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46748. done
  46749. ctags-recursive:
  46750. list='$(SUBDIRS)'; for subdir in $$list; do \
  46751. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46752. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46753. done
  46754. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  46755. @@ -485,14 +542,14 @@
  46756. unique=`for i in $$list; do \
  46757. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46758. done | \
  46759. - $(AWK) ' { files[$$0] = 1; } \
  46760. - END { for (i in files) print i; }'`; \
  46761. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46762. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46763. mkid -fID $$unique
  46764. tags: TAGS
  46765. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46766. $(TAGS_FILES) $(LISP)
  46767. - tags=; \
  46768. + set x; \
  46769. here=`pwd`; \
  46770. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  46771. include_option=--etags-include; \
  46772. @@ -504,39 +561,43 @@
  46773. list='$(SUBDIRS)'; for subdir in $$list; do \
  46774. if test "$$subdir" = .; then :; else \
  46775. test ! -f $$subdir/TAGS || \
  46776. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  46777. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  46778. fi; \
  46779. done; \
  46780. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46781. unique=`for i in $$list; do \
  46782. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46783. done | \
  46784. - $(AWK) ' { files[$$0] = 1; } \
  46785. - END { for (i in files) print i; }'`; \
  46786. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  46787. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46788. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46789. + shift; \
  46790. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  46791. test -n "$$unique" || unique=$$empty_fix; \
  46792. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46793. - $$tags $$unique; \
  46794. + if test $$# -gt 0; then \
  46795. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46796. + "$$@" $$unique; \
  46797. + else \
  46798. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46799. + $$unique; \
  46800. + fi; \
  46801. fi
  46802. ctags: CTAGS
  46803. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46804. $(TAGS_FILES) $(LISP)
  46805. - tags=; \
  46806. - here=`pwd`; \
  46807. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46808. unique=`for i in $$list; do \
  46809. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46810. done | \
  46811. - $(AWK) ' { files[$$0] = 1; } \
  46812. - END { for (i in files) print i; }'`; \
  46813. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  46814. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46815. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46816. + test -z "$(CTAGS_ARGS)$$unique" \
  46817. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  46818. - $$tags $$unique
  46819. + $$unique
  46820. GTAGS:
  46821. here=`$(am__cd) $(top_builddir) && pwd` \
  46822. - && cd $(top_srcdir) \
  46823. - && gtags -i $(GTAGS_ARGS) $$here
  46824. + && $(am__cd) $(top_srcdir) \
  46825. + && gtags -i $(GTAGS_ARGS) "$$here"
  46826. distclean-tags:
  46827. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  46828. @@ -557,29 +618,44 @@
  46829. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46830. if test -d $$d/$$file; then \
  46831. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46832. + if test -d "$(distdir)/$$file"; then \
  46833. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46834. + fi; \
  46835. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46836. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46837. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46838. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46839. fi; \
  46840. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46841. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46842. else \
  46843. - test -f $(distdir)/$$file \
  46844. - || cp -p $$d/$$file $(distdir)/$$file \
  46845. + test -f "$(distdir)/$$file" \
  46846. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46847. || exit 1; \
  46848. fi; \
  46849. done
  46850. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46851. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46852. if test "$$subdir" = .; then :; else \
  46853. test -d "$(distdir)/$$subdir" \
  46854. || $(MKDIR_P) "$(distdir)/$$subdir" \
  46855. || exit 1; \
  46856. - distdir=`$(am__cd) $(distdir) && pwd`; \
  46857. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  46858. - (cd $$subdir && \
  46859. + fi; \
  46860. + done
  46861. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46862. + if test "$$subdir" = .; then :; else \
  46863. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  46864. + $(am__relativize); \
  46865. + new_distdir=$$reldir; \
  46866. + dir1=$$subdir; dir2="$(top_distdir)"; \
  46867. + $(am__relativize); \
  46868. + new_top_distdir=$$reldir; \
  46869. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  46870. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  46871. + ($(am__cd) $$subdir && \
  46872. $(MAKE) $(AM_MAKEFLAGS) \
  46873. - top_distdir="$$top_distdir" \
  46874. - distdir="$$distdir/$$subdir" \
  46875. + top_distdir="$$new_top_distdir" \
  46876. + distdir="$$new_distdir" \
  46877. am__remove_distdir=: \
  46878. am__skip_length_check=: \
  46879. + am__skip_mode_fix=: \
  46880. distdir) \
  46881. || exit 1; \
  46882. fi; \
  46883. @@ -613,6 +689,7 @@
  46884. distclean-generic:
  46885. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46886. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46887. maintainer-clean-generic:
  46888. @echo "This command is intended for maintainers to use"
  46889. @@ -634,6 +711,8 @@
  46890. html: html-recursive
  46891. +html-am:
  46892. +
  46893. info: info-recursive
  46894. info-am:
  46895. @@ -642,18 +721,28 @@
  46896. install-dvi: install-dvi-recursive
  46897. +install-dvi-am:
  46898. +
  46899. install-exec-am: install-libLTLIBRARIES
  46900. install-html: install-html-recursive
  46901. +install-html-am:
  46902. +
  46903. install-info: install-info-recursive
  46904. +install-info-am:
  46905. +
  46906. install-man:
  46907. install-pdf: install-pdf-recursive
  46908. +install-pdf-am:
  46909. +
  46910. install-ps: install-ps-recursive
  46911. +install-ps-am:
  46912. +
  46913. installcheck-am:
  46914. maintainer-clean: maintainer-clean-recursive
  46915. @@ -676,8 +765,8 @@
  46916. uninstall-am: uninstall-libLTLIBRARIES
  46917. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  46918. - install-strip
  46919. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  46920. + install-am install-strip tags-recursive
  46921. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  46922. all all-am check check-am clean clean-generic \
  46923. @@ -701,6 +790,7 @@
  46924. profile:
  46925. $(MAKE) all CFLAGS="@PROFILE@"
  46926. +
  46927. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46928. # Otherwise a system limit (for SysV at least) may be exceeded.
  46929. .NOEXPORT:
  46930. diff -Nur libvorbis-1.2.0.orig/lib/modes/Makefile.in libvorbis-1.2.0/lib/modes/Makefile.in
  46931. --- libvorbis-1.2.0.orig/lib/modes/Makefile.in 2007-07-25 18:46:36.000000000 +0200
  46932. +++ libvorbis-1.2.0/lib/modes/Makefile.in 2011-02-17 18:30:21.354043559 +0100
  46933. @@ -1,8 +1,9 @@
  46934. -# Makefile.in generated by automake 1.10 from Makefile.am.
  46935. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46936. # @configure_input@
  46937. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46938. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  46939. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46940. +# Inc.
  46941. # This Makefile.in is free software; the Free Software Foundation
  46942. # gives unlimited permission to copy and/or distribute it,
  46943. # with or without modifications, as long as this notice is preserved.
  46944. @@ -15,8 +16,9 @@
  46945. @SET_MAKE@
  46946. VPATH = @srcdir@
  46947. pkgdatadir = $(datadir)/@PACKAGE@
  46948. -pkglibdir = $(libdir)/@PACKAGE@
  46949. pkgincludedir = $(includedir)/@PACKAGE@
  46950. +pkglibdir = $(libdir)/@PACKAGE@
  46951. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46952. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46953. install_sh_DATA = $(install_sh) -c -m 644
  46954. install_sh_PROGRAM = $(install_sh) -c
  46955. @@ -42,6 +44,7 @@
  46956. mkinstalldirs = $(install_sh) -d
  46957. CONFIG_HEADER = $(top_builddir)/config.h
  46958. CONFIG_CLEAN_FILES =
  46959. +CONFIG_CLEAN_VPATH_FILES =
  46960. SOURCES =
  46961. DIST_SOURCES =
  46962. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46963. @@ -58,22 +61,18 @@
  46964. CFLAGS = @CFLAGS@
  46965. CPP = @CPP@
  46966. CPPFLAGS = @CPPFLAGS@
  46967. -CXX = @CXX@
  46968. -CXXCPP = @CXXCPP@
  46969. -CXXDEPMODE = @CXXDEPMODE@
  46970. -CXXFLAGS = @CXXFLAGS@
  46971. CYGPATH_W = @CYGPATH_W@
  46972. DEBUG = @DEBUG@
  46973. DEFS = @DEFS@
  46974. DEPDIR = @DEPDIR@
  46975. -ECHO = @ECHO@
  46976. +DSYMUTIL = @DSYMUTIL@
  46977. +DUMPBIN = @DUMPBIN@
  46978. ECHO_C = @ECHO_C@
  46979. ECHO_N = @ECHO_N@
  46980. ECHO_T = @ECHO_T@
  46981. EGREP = @EGREP@
  46982. EXEEXT = @EXEEXT@
  46983. -F77 = @F77@
  46984. -FFLAGS = @FFLAGS@
  46985. +FGREP = @FGREP@
  46986. GREP = @GREP@
  46987. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  46988. INSTALL = @INSTALL@
  46989. @@ -81,29 +80,38 @@
  46990. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46991. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46992. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46993. +LD = @LD@
  46994. LDFLAGS = @LDFLAGS@
  46995. LIBOBJS = @LIBOBJS@
  46996. LIBS = @LIBS@
  46997. LIBTOOL = @LIBTOOL@
  46998. +LIPO = @LIPO@
  46999. LN_S = @LN_S@
  47000. LTLIBOBJS = @LTLIBOBJS@
  47001. MAINT = @MAINT@
  47002. MAKEINFO = @MAKEINFO@
  47003. MKDIR_P = @MKDIR_P@
  47004. +NM = @NM@
  47005. +NMEDIT = @NMEDIT@
  47006. +OBJDUMP = @OBJDUMP@
  47007. OBJEXT = @OBJEXT@
  47008. OGG_CFLAGS = @OGG_CFLAGS@
  47009. OGG_LIBS = @OGG_LIBS@
  47010. +OTOOL = @OTOOL@
  47011. +OTOOL64 = @OTOOL64@
  47012. PACKAGE = @PACKAGE@
  47013. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  47014. PACKAGE_NAME = @PACKAGE_NAME@
  47015. PACKAGE_STRING = @PACKAGE_STRING@
  47016. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  47017. +PACKAGE_URL = @PACKAGE_URL@
  47018. PACKAGE_VERSION = @PACKAGE_VERSION@
  47019. PATH_SEPARATOR = @PATH_SEPARATOR@
  47020. PDFXMLTEX = @PDFXMLTEX@
  47021. PKG_CONFIG = @PKG_CONFIG@
  47022. PROFILE = @PROFILE@
  47023. RANLIB = @RANLIB@
  47024. +SED = @SED@
  47025. SET_MAKE = @SET_MAKE@
  47026. SHELL = @SHELL@
  47027. STRIP = @STRIP@
  47028. @@ -124,8 +132,7 @@
  47029. abs_top_builddir = @abs_top_builddir@
  47030. abs_top_srcdir = @abs_top_srcdir@
  47031. ac_ct_CC = @ac_ct_CC@
  47032. -ac_ct_CXX = @ac_ct_CXX@
  47033. -ac_ct_F77 = @ac_ct_F77@
  47034. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  47035. am__include = @am__include@
  47036. am__leading_dot = @am__leading_dot@
  47037. am__quote = @am__quote@
  47038. @@ -156,6 +163,7 @@
  47039. libexecdir = @libexecdir@
  47040. localedir = @localedir@
  47041. localstatedir = @localstatedir@
  47042. +lt_ECHO = @lt_ECHO@
  47043. mandir = @mandir@
  47044. mkdir_p = @mkdir_p@
  47045. oldincludedir = @oldincludedir@
  47046. @@ -173,6 +181,7 @@
  47047. target_cpu = @target_cpu@
  47048. target_os = @target_os@
  47049. target_vendor = @target_vendor@
  47050. +top_build_prefix = @top_build_prefix@
  47051. top_builddir = @top_builddir@
  47052. top_srcdir = @top_srcdir@
  47053. EXTRA_DIST = floor_all.h psych_44.h residue_44.h setup_11.h setup_32.h \
  47054. @@ -187,14 +196,14 @@
  47055. @for dep in $?; do \
  47056. case '$(am__configure_deps)' in \
  47057. *$$dep*) \
  47058. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  47059. - && exit 0; \
  47060. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  47061. + && { if test -f $@; then exit 0; else break; fi; }; \
  47062. exit 1;; \
  47063. esac; \
  47064. done; \
  47065. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/modes/Makefile'; \
  47066. - cd $(top_srcdir) && \
  47067. - $(AUTOMAKE) --gnu lib/modes/Makefile
  47068. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/modes/Makefile'; \
  47069. + $(am__cd) $(top_srcdir) && \
  47070. + $(AUTOMAKE) --gnu lib/modes/Makefile
  47071. .PRECIOUS: Makefile
  47072. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  47073. @case '$?' in \
  47074. @@ -212,6 +221,7 @@
  47075. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  47076. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  47077. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  47078. +$(am__aclocal_m4_deps):
  47079. mostlyclean-libtool:
  47080. -rm -f *.lo
  47081. @@ -241,13 +251,17 @@
  47082. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  47083. if test -d $$d/$$file; then \
  47084. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  47085. + if test -d "$(distdir)/$$file"; then \
  47086. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  47087. + fi; \
  47088. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  47089. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  47090. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  47091. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  47092. fi; \
  47093. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  47094. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  47095. else \
  47096. - test -f $(distdir)/$$file \
  47097. - || cp -p $$d/$$file $(distdir)/$$file \
  47098. + test -f "$(distdir)/$$file" \
  47099. + || cp -p $$d/$$file "$(distdir)/$$file" \
  47100. || exit 1; \
  47101. fi; \
  47102. done
  47103. @@ -275,6 +289,7 @@
  47104. distclean-generic:
  47105. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  47106. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  47107. maintainer-clean-generic:
  47108. @echo "This command is intended for maintainers to use"
  47109. @@ -293,6 +308,8 @@
  47110. html: html-am
  47111. +html-am:
  47112. +
  47113. info: info-am
  47114. info-am:
  47115. @@ -301,18 +318,28 @@
  47116. install-dvi: install-dvi-am
  47117. +install-dvi-am:
  47118. +
  47119. install-exec-am:
  47120. install-html: install-html-am
  47121. +install-html-am:
  47122. +
  47123. install-info: install-info-am
  47124. +install-info-am:
  47125. +
  47126. install-man:
  47127. install-pdf: install-pdf-am
  47128. +install-pdf-am:
  47129. +
  47130. install-ps: install-ps-am
  47131. +install-ps-am:
  47132. +
  47133. installcheck-am:
  47134. maintainer-clean: maintainer-clean-am
  47135. @@ -346,6 +373,7 @@
  47136. maintainer-clean-generic mostlyclean mostlyclean-generic \
  47137. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  47138. +
  47139. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  47140. # Otherwise a system limit (for SysV at least) may be exceeded.
  47141. .NOEXPORT:
  47142. diff -Nur libvorbis-1.2.0.orig/ltmain.sh libvorbis-1.2.0/ltmain.sh
  47143. --- libvorbis-1.2.0.orig/ltmain.sh 2006-06-19 21:29:20.000000000 +0200
  47144. +++ libvorbis-1.2.0/ltmain.sh 2011-02-17 18:30:17.543552043 +0100
  47145. @@ -1,30 +1,174 @@
  47146. -# ltmain.sh - Provide generalized library-building support services.
  47147. -# NOTE: Changing this file will not affect anything until you rerun configure.
  47148. -#
  47149. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  47150. -# Free Software Foundation, Inc.
  47151. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47152. -#
  47153. -# This program is free software; you can redistribute it and/or modify
  47154. +# Generated from ltmain.m4sh.
  47155. +
  47156. +# ltmain.sh (GNU libtool) 2.2.6b
  47157. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47158. +
  47159. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  47160. +# This is free software; see the source for copying conditions. There is NO
  47161. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  47162. +
  47163. +# GNU Libtool is free software; you can redistribute it and/or modify
  47164. # it under the terms of the GNU General Public License as published by
  47165. # the Free Software Foundation; either version 2 of the License, or
  47166. # (at your option) any later version.
  47167. #
  47168. -# This program is distributed in the hope that it will be useful, but
  47169. +# As a special exception to the GNU General Public License,
  47170. +# if you distribute this file as part of a program or library that
  47171. +# is built using GNU Libtool, you may include this file under the
  47172. +# same distribution terms that you use for the rest of that program.
  47173. +#
  47174. +# GNU Libtool is distributed in the hope that it will be useful, but
  47175. # WITHOUT ANY WARRANTY; without even the implied warranty of
  47176. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  47177. # General Public License for more details.
  47178. #
  47179. # You should have received a copy of the GNU General Public License
  47180. -# along with this program; if not, write to the Free Software
  47181. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47182. +# along with GNU Libtool; see the file COPYING. If not, a copy
  47183. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  47184. +# or obtained by writing to the Free Software Foundation, Inc.,
  47185. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47186. +
  47187. +# Usage: $progname [OPTION]... [MODE-ARG]...
  47188. +#
  47189. +# Provide generalized library-building support services.
  47190. #
  47191. -# As a special exception to the GNU General Public License, if you
  47192. -# distribute this file as part of a program that contains a
  47193. -# configuration script generated by Autoconf, you may include it under
  47194. -# the same distribution terms that you use for the rest of that program.
  47195. +# --config show all configuration variables
  47196. +# --debug enable verbose shell tracing
  47197. +# -n, --dry-run display commands without modifying any files
  47198. +# --features display basic configuration information and exit
  47199. +# --mode=MODE use operation mode MODE
  47200. +# --preserve-dup-deps don't remove duplicate dependency libraries
  47201. +# --quiet, --silent don't print informational messages
  47202. +# --tag=TAG use configuration variables from tag TAG
  47203. +# -v, --verbose print informational messages (default)
  47204. +# --version print version information
  47205. +# -h, --help print short or long help message
  47206. +#
  47207. +# MODE must be one of the following:
  47208. +#
  47209. +# clean remove files from the build directory
  47210. +# compile compile a source file into a libtool object
  47211. +# execute automatically set library path, then run a program
  47212. +# finish complete the installation of libtool libraries
  47213. +# install install libraries or executables
  47214. +# link create a library or an executable
  47215. +# uninstall remove libraries from an installed directory
  47216. +#
  47217. +# MODE-ARGS vary depending on the MODE.
  47218. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  47219. +#
  47220. +# When reporting a bug, please describe a test case to reproduce it and
  47221. +# include the following information:
  47222. +#
  47223. +# host-triplet: $host
  47224. +# shell: $SHELL
  47225. +# compiler: $LTCC
  47226. +# compiler flags: $LTCFLAGS
  47227. +# linker: $LD (gnu? $with_gnu_ld)
  47228. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  47229. +# automake: $automake_version
  47230. +# autoconf: $autoconf_version
  47231. +#
  47232. +# Report bugs to <bug-libtool@gnu.org>.
  47233. +
  47234. +PROGRAM=ltmain.sh
  47235. +PACKAGE=libtool
  47236. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  47237. +TIMESTAMP=""
  47238. +package_revision=1.3017
  47239. +
  47240. +# Be Bourne compatible
  47241. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  47242. + emulate sh
  47243. + NULLCMD=:
  47244. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  47245. + # is contrary to our usage. Disable this feature.
  47246. + alias -g '${1+"$@"}'='"$@"'
  47247. + setopt NO_GLOB_SUBST
  47248. +else
  47249. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  47250. +fi
  47251. +BIN_SH=xpg4; export BIN_SH # for Tru64
  47252. +DUALCASE=1; export DUALCASE # for MKS sh
  47253. +
  47254. +# NLS nuisances: We save the old values to restore during execute mode.
  47255. +# Only set LANG and LC_ALL to C if already set.
  47256. +# These must not be set unconditionally because not all systems understand
  47257. +# e.g. LANG=C (notably SCO).
  47258. +lt_user_locale=
  47259. +lt_safe_locale=
  47260. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47261. +do
  47262. + eval "if test \"\${$lt_var+set}\" = set; then
  47263. + save_$lt_var=\$$lt_var
  47264. + $lt_var=C
  47265. + export $lt_var
  47266. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  47267. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  47268. + fi"
  47269. +done
  47270. +
  47271. +$lt_unset CDPATH
  47272. +
  47273. +
  47274. +
  47275. +
  47276. +
  47277. +: ${CP="cp -f"}
  47278. +: ${ECHO="echo"}
  47279. +: ${EGREP="/bin/grep -E"}
  47280. +: ${FGREP="/bin/grep -F"}
  47281. +: ${GREP="/bin/grep"}
  47282. +: ${LN_S="ln -s"}
  47283. +: ${MAKE="make"}
  47284. +: ${MKDIR="mkdir"}
  47285. +: ${MV="mv -f"}
  47286. +: ${RM="rm -f"}
  47287. +: ${SED="/bin/sed"}
  47288. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  47289. +: ${Xsed="$SED -e 1s/^X//"}
  47290. -basename="s,^.*/,,g"
  47291. +# Global variables:
  47292. +EXIT_SUCCESS=0
  47293. +EXIT_FAILURE=1
  47294. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  47295. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  47296. +
  47297. +exit_status=$EXIT_SUCCESS
  47298. +
  47299. +# Make sure IFS has a sensible default
  47300. +lt_nl='
  47301. +'
  47302. +IFS=" $lt_nl"
  47303. +
  47304. +dirname="s,/[^/]*$,,"
  47305. +basename="s,^.*/,,"
  47306. +
  47307. +# func_dirname_and_basename file append nondir_replacement
  47308. +# perform func_basename and func_dirname in a single function
  47309. +# call:
  47310. +# dirname: Compute the dirname of FILE. If nonempty,
  47311. +# add APPEND to the result, otherwise set result
  47312. +# to NONDIR_REPLACEMENT.
  47313. +# value returned in "$func_dirname_result"
  47314. +# basename: Compute filename of FILE.
  47315. +# value retuned in "$func_basename_result"
  47316. +# Implementation must be kept synchronized with func_dirname
  47317. +# and func_basename. For efficiency, we do not delegate to
  47318. +# those functions but instead duplicate the functionality here.
  47319. +func_dirname_and_basename ()
  47320. +{
  47321. + # Extract subdirectory from the argument.
  47322. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  47323. + if test "X$func_dirname_result" = "X${1}"; then
  47324. + func_dirname_result="${3}"
  47325. + else
  47326. + func_dirname_result="$func_dirname_result${2}"
  47327. + fi
  47328. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  47329. +}
  47330. +
  47331. +# Generated shell functions inserted here.
  47332. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  47333. # is ksh but when the shell is invoked as "sh" and the current value of
  47334. @@ -34,112 +178,174 @@
  47335. progpath="$0"
  47336. # The name of this program:
  47337. -progname=`echo "$progpath" | $SED $basename`
  47338. -modename="$progname"
  47339. +# In the unlikely event $progname began with a '-', it would play havoc with
  47340. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  47341. +func_dirname_and_basename "$progpath"
  47342. +progname=$func_basename_result
  47343. +case $progname in
  47344. + -*) progname=./$progname ;;
  47345. +esac
  47346. -# Global variables:
  47347. -EXIT_SUCCESS=0
  47348. -EXIT_FAILURE=1
  47349. +# Make sure we have an absolute path for reexecution:
  47350. +case $progpath in
  47351. + [\\/]*|[A-Za-z]:\\*) ;;
  47352. + *[\\/]*)
  47353. + progdir=$func_dirname_result
  47354. + progdir=`cd "$progdir" && pwd`
  47355. + progpath="$progdir/$progname"
  47356. + ;;
  47357. + *)
  47358. + save_IFS="$IFS"
  47359. + IFS=:
  47360. + for progdir in $PATH; do
  47361. + IFS="$save_IFS"
  47362. + test -x "$progdir/$progname" && break
  47363. + done
  47364. + IFS="$save_IFS"
  47365. + test -n "$progdir" || progdir=`pwd`
  47366. + progpath="$progdir/$progname"
  47367. + ;;
  47368. +esac
  47369. -PROGRAM=ltmain.sh
  47370. -PACKAGE=libtool
  47371. -VERSION="1.5.22 Debian 1.5.22-4"
  47372. -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  47373. +# Sed substitution that helps us do robust quoting. It backslashifies
  47374. +# metacharacters that are still active within double-quoted strings.
  47375. +Xsed="${SED}"' -e 1s/^X//'
  47376. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  47377. -# See if we are running on zsh, and set the options which allow our
  47378. -# commands through without removal of \ escapes.
  47379. -if test -n "${ZSH_VERSION+set}" ; then
  47380. - setopt NO_GLOB_SUBST
  47381. -fi
  47382. +# Same as above, but do not quote variable references.
  47383. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  47384. -# Check that we have a working $echo.
  47385. -if test "X$1" = X--no-reexec; then
  47386. - # Discard the --no-reexec flag, and continue.
  47387. - shift
  47388. -elif test "X$1" = X--fallback-echo; then
  47389. - # Avoid inline document here, it may be left over
  47390. - :
  47391. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  47392. - # Yippee, $echo works!
  47393. - :
  47394. -else
  47395. - # Restart under the correct shell, and then maybe $echo will work.
  47396. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  47397. -fi
  47398. +# Re-`\' parameter expansions in output of double_quote_subst that were
  47399. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  47400. +# in input to double_quote_subst, that '$' was protected from expansion.
  47401. +# Since each input `\' is now two `\'s, look for any number of runs of
  47402. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  47403. +bs='\\'
  47404. +bs2='\\\\'
  47405. +bs4='\\\\\\\\'
  47406. +dollar='\$'
  47407. +sed_double_backslash="\
  47408. + s/$bs4/&\\
  47409. +/g
  47410. + s/^$bs2$dollar/$bs&/
  47411. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  47412. + s/\n//g"
  47413. +
  47414. +# Standard options:
  47415. +opt_dry_run=false
  47416. +opt_help=false
  47417. +opt_quiet=false
  47418. +opt_verbose=false
  47419. +opt_warning=:
  47420. +
  47421. +# func_echo arg...
  47422. +# Echo program name prefixed message, along with the current mode
  47423. +# name if it has been set yet.
  47424. +func_echo ()
  47425. +{
  47426. + $ECHO "$progname${mode+: }$mode: $*"
  47427. +}
  47428. -if test "X$1" = X--fallback-echo; then
  47429. - # used as fallback echo
  47430. - shift
  47431. - cat <<EOF
  47432. -$*
  47433. -EOF
  47434. - exit $EXIT_SUCCESS
  47435. -fi
  47436. +# func_verbose arg...
  47437. +# Echo program name prefixed message in verbose mode only.
  47438. +func_verbose ()
  47439. +{
  47440. + $opt_verbose && func_echo ${1+"$@"}
  47441. -default_mode=
  47442. -help="Try \`$progname --help' for more information."
  47443. -magic="%%%MAGIC variable%%%"
  47444. -mkdir="mkdir"
  47445. -mv="mv -f"
  47446. -rm="rm -f"
  47447. + # A bug in bash halts the script if the last line of a function
  47448. + # fails when set -e is in force, so we need another command to
  47449. + # work around that:
  47450. + :
  47451. +}
  47452. -# Sed substitution that helps us do robust quoting. It backslashifies
  47453. -# metacharacters that are still active within double-quoted strings.
  47454. -Xsed="${SED}"' -e 1s/^X//'
  47455. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  47456. -# test EBCDIC or ASCII
  47457. -case `echo X|tr X '\101'` in
  47458. - A) # ASCII based system
  47459. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  47460. - SP2NL='tr \040 \012'
  47461. - NL2SP='tr \015\012 \040\040'
  47462. - ;;
  47463. - *) # EBCDIC based system
  47464. - SP2NL='tr \100 \n'
  47465. - NL2SP='tr \r\n \100\100'
  47466. - ;;
  47467. -esac
  47468. +# func_error arg...
  47469. +# Echo program name prefixed message to standard error.
  47470. +func_error ()
  47471. +{
  47472. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  47473. +}
  47474. -# NLS nuisances.
  47475. -# Only set LANG and LC_ALL to C if already set.
  47476. -# These must not be set unconditionally because not all systems understand
  47477. -# e.g. LANG=C (notably SCO).
  47478. -# We save the old values to restore during execute mode.
  47479. -if test "${LC_ALL+set}" = set; then
  47480. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  47481. -fi
  47482. -if test "${LANG+set}" = set; then
  47483. - save_LANG="$LANG"; LANG=C; export LANG
  47484. -fi
  47485. +# func_warning arg...
  47486. +# Echo program name prefixed warning message to standard error.
  47487. +func_warning ()
  47488. +{
  47489. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  47490. -# Make sure IFS has a sensible default
  47491. -lt_nl='
  47492. -'
  47493. -IFS=" $lt_nl"
  47494. + # bash bug again:
  47495. + :
  47496. +}
  47497. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  47498. - $echo "$modename: not configured to build any kind of library" 1>&2
  47499. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  47500. - exit $EXIT_FAILURE
  47501. -fi
  47502. +# func_fatal_error arg...
  47503. +# Echo program name prefixed message to standard error, and exit.
  47504. +func_fatal_error ()
  47505. +{
  47506. + func_error ${1+"$@"}
  47507. + exit $EXIT_FAILURE
  47508. +}
  47509. -# Global variables.
  47510. -mode=$default_mode
  47511. -nonopt=
  47512. -prev=
  47513. -prevopt=
  47514. -run=
  47515. -show="$echo"
  47516. -show_help=
  47517. -execute_dlfiles=
  47518. -duplicate_deps=no
  47519. -preserve_args=
  47520. -lo2o="s/\\.lo\$/.${objext}/"
  47521. -o2lo="s/\\.${objext}\$/.lo/"
  47522. +# func_fatal_help arg...
  47523. +# Echo program name prefixed message to standard error, followed by
  47524. +# a help hint, and exit.
  47525. +func_fatal_help ()
  47526. +{
  47527. + func_error ${1+"$@"}
  47528. + func_fatal_error "$help"
  47529. +}
  47530. +help="Try \`$progname --help' for more information." ## default
  47531. +
  47532. +
  47533. +# func_grep expression filename
  47534. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  47535. +func_grep ()
  47536. +{
  47537. + $GREP "$1" "$2" >/dev/null 2>&1
  47538. +}
  47539. +
  47540. +
  47541. +# func_mkdir_p directory-path
  47542. +# Make sure the entire path to DIRECTORY-PATH is available.
  47543. +func_mkdir_p ()
  47544. +{
  47545. + my_directory_path="$1"
  47546. + my_dir_list=
  47547. +
  47548. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  47549. +
  47550. + # Protect directory names starting with `-'
  47551. + case $my_directory_path in
  47552. + -*) my_directory_path="./$my_directory_path" ;;
  47553. + esac
  47554. +
  47555. + # While some portion of DIR does not yet exist...
  47556. + while test ! -d "$my_directory_path"; do
  47557. + # ...make a list in topmost first order. Use a colon delimited
  47558. + # list incase some portion of path contains whitespace.
  47559. + my_dir_list="$my_directory_path:$my_dir_list"
  47560. +
  47561. + # If the last portion added has no slash in it, the list is done
  47562. + case $my_directory_path in */*) ;; *) break ;; esac
  47563. +
  47564. + # ...otherwise throw away the child directory and loop
  47565. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  47566. + done
  47567. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  47568. +
  47569. + save_mkdir_p_IFS="$IFS"; IFS=':'
  47570. + for my_dir in $my_dir_list; do
  47571. + IFS="$save_mkdir_p_IFS"
  47572. + # mkdir can fail with a `File exist' error if two processes
  47573. + # try to create one of the directories concurrently. Don't
  47574. + # stop in that case!
  47575. + $MKDIR "$my_dir" 2>/dev/null || :
  47576. + done
  47577. + IFS="$save_mkdir_p_IFS"
  47578. +
  47579. + # Bail out if we (or some other process) failed to create a directory.
  47580. + test -d "$my_directory_path" || \
  47581. + func_fatal_error "Failed to create \`$1'"
  47582. + fi
  47583. +}
  47584. -#####################################
  47585. -# Shell function definitions:
  47586. -# This seems to be the best place for them
  47587. # func_mktempdir [string]
  47588. # Make a temporary directory that won't clash with other running
  47589. @@ -149,7 +355,7 @@
  47590. {
  47591. my_template="${TMPDIR-/tmp}/${1-$progname}"
  47592. - if test "$run" = ":"; then
  47593. + if test "$opt_dry_run" = ":"; then
  47594. # Return a directory name, but don't create it in dry-run mode
  47595. my_tmpdir="${my_template}-$$"
  47596. else
  47597. @@ -158,546 +364,818 @@
  47598. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  47599. if test ! -d "$my_tmpdir"; then
  47600. - # Failing that, at least try and use $RANDOM to avoid a race
  47601. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  47602. + # Failing that, at least try and use $RANDOM to avoid a race
  47603. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  47604. - save_mktempdir_umask=`umask`
  47605. - umask 0077
  47606. - $mkdir "$my_tmpdir"
  47607. - umask $save_mktempdir_umask
  47608. + save_mktempdir_umask=`umask`
  47609. + umask 0077
  47610. + $MKDIR "$my_tmpdir"
  47611. + umask $save_mktempdir_umask
  47612. fi
  47613. # If we're not in dry-run mode, bomb out on failure
  47614. - test -d "$my_tmpdir" || {
  47615. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  47616. - exit $EXIT_FAILURE
  47617. - }
  47618. + test -d "$my_tmpdir" || \
  47619. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  47620. fi
  47621. - $echo "X$my_tmpdir" | $Xsed
  47622. + $ECHO "X$my_tmpdir" | $Xsed
  47623. }
  47624. -# func_win32_libid arg
  47625. -# return the library type of file 'arg'
  47626. -#
  47627. -# Need a lot of goo to handle *both* DLLs and import libs
  47628. -# Has to be a shell function in order to 'eat' the argument
  47629. -# that is supplied when $file_magic_command is called.
  47630. -func_win32_libid ()
  47631. +# func_quote_for_eval arg
  47632. +# Aesthetically quote ARG to be evaled later.
  47633. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  47634. +# is double-quoted, suitable for a subsequent eval, whereas
  47635. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  47636. +# which are still active within double quotes backslashified.
  47637. +func_quote_for_eval ()
  47638. {
  47639. - win32_libid_type="unknown"
  47640. - win32_fileres=`file -L $1 2>/dev/null`
  47641. - case $win32_fileres in
  47642. - *ar\ archive\ import\ library*) # definitely import
  47643. - win32_libid_type="x86 archive import"
  47644. - ;;
  47645. - *ar\ archive*) # could be an import, or static
  47646. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  47647. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  47648. - win32_nmres=`eval $NM -f posix -A $1 | \
  47649. - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  47650. - case $win32_nmres in
  47651. - import*) win32_libid_type="x86 archive import";;
  47652. - *) win32_libid_type="x86 archive static";;
  47653. - esac
  47654. - fi
  47655. - ;;
  47656. - *DLL*)
  47657. - win32_libid_type="x86 DLL"
  47658. - ;;
  47659. - *executable*) # but shell scripts are "executable" too...
  47660. - case $win32_fileres in
  47661. - *MS\ Windows\ PE\ Intel*)
  47662. - win32_libid_type="x86 DLL"
  47663. - ;;
  47664. + case $1 in
  47665. + *[\\\`\"\$]*)
  47666. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  47667. + *)
  47668. + func_quote_for_eval_unquoted_result="$1" ;;
  47669. + esac
  47670. +
  47671. + case $func_quote_for_eval_unquoted_result in
  47672. + # Double-quote args containing shell metacharacters to delay
  47673. + # word splitting, command substitution and and variable
  47674. + # expansion for a subsequent eval.
  47675. + # Many Bourne shells cannot handle close brackets correctly
  47676. + # in scan sets, so we specify it separately.
  47677. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47678. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  47679. + ;;
  47680. + *)
  47681. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  47682. esac
  47683. - ;;
  47684. - esac
  47685. - $echo $win32_libid_type
  47686. }
  47687. -# func_infer_tag arg
  47688. -# Infer tagged configuration to use if any are available and
  47689. -# if one wasn't chosen via the "--tag" command line option.
  47690. -# Only attempt this if the compiler in the base compile
  47691. -# command doesn't match the default compiler.
  47692. -# arg is usually of the form 'gcc ...'
  47693. -func_infer_tag ()
  47694. +# func_quote_for_expand arg
  47695. +# Aesthetically quote ARG to be evaled later; same as above,
  47696. +# but do not quote variable references.
  47697. +func_quote_for_expand ()
  47698. {
  47699. - if test -n "$available_tags" && test -z "$tagname"; then
  47700. - CC_quoted=
  47701. - for arg in $CC; do
  47702. - case $arg in
  47703. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47704. - arg="\"$arg\""
  47705. - ;;
  47706. - esac
  47707. - CC_quoted="$CC_quoted $arg"
  47708. - done
  47709. - case $@ in
  47710. - # Blanks in the command may have been stripped by the calling shell,
  47711. - # but not from the CC environment variable when configure was run.
  47712. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  47713. - # Blanks at the start of $base_compile will cause this to fail
  47714. - # if we don't check for them as well.
  47715. + case $1 in
  47716. + *[\\\`\"]*)
  47717. + my_arg=`$ECHO "X$1" | $Xsed \
  47718. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  47719. *)
  47720. - for z in $available_tags; do
  47721. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  47722. - # Evaluate the configuration.
  47723. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  47724. - CC_quoted=
  47725. - for arg in $CC; do
  47726. - # Double-quote args containing other shell metacharacters.
  47727. - case $arg in
  47728. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47729. - arg="\"$arg\""
  47730. - ;;
  47731. - esac
  47732. - CC_quoted="$CC_quoted $arg"
  47733. - done
  47734. - case "$@ " in
  47735. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  47736. - # The compiler in the base compile command matches
  47737. - # the one in the tagged configuration.
  47738. - # Assume this is the tagged configuration we want.
  47739. - tagname=$z
  47740. - break
  47741. - ;;
  47742. - esac
  47743. - fi
  47744. - done
  47745. - # If $tagname still isn't set, then no tagged configuration
  47746. - # was found and let the user know that the "--tag" command
  47747. - # line option must be used.
  47748. - if test -z "$tagname"; then
  47749. - $echo "$modename: unable to infer tagged configuration"
  47750. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  47751. - exit $EXIT_FAILURE
  47752. -# else
  47753. -# $echo "$modename: using $tagname tagged configuration"
  47754. - fi
  47755. - ;;
  47756. - esac
  47757. - fi
  47758. + my_arg="$1" ;;
  47759. + esac
  47760. +
  47761. + case $my_arg in
  47762. + # Double-quote args containing shell metacharacters to delay
  47763. + # word splitting and command substitution for a subsequent eval.
  47764. + # Many Bourne shells cannot handle close brackets correctly
  47765. + # in scan sets, so we specify it separately.
  47766. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  47767. + my_arg="\"$my_arg\""
  47768. + ;;
  47769. + esac
  47770. +
  47771. + func_quote_for_expand_result="$my_arg"
  47772. }
  47773. -# func_extract_an_archive dir oldlib
  47774. -func_extract_an_archive ()
  47775. +# func_show_eval cmd [fail_exp]
  47776. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  47777. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  47778. +# is given, then evaluate it.
  47779. +func_show_eval ()
  47780. {
  47781. - f_ex_an_ar_dir="$1"; shift
  47782. - f_ex_an_ar_oldlib="$1"
  47783. + my_cmd="$1"
  47784. + my_fail_exp="${2-:}"
  47785. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  47786. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  47787. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  47788. - :
  47789. - else
  47790. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  47791. - exit $EXIT_FAILURE
  47792. + ${opt_silent-false} || {
  47793. + func_quote_for_expand "$my_cmd"
  47794. + eval "func_echo $func_quote_for_expand_result"
  47795. + }
  47796. +
  47797. + if ${opt_dry_run-false}; then :; else
  47798. + eval "$my_cmd"
  47799. + my_status=$?
  47800. + if test "$my_status" -eq 0; then :; else
  47801. + eval "(exit $my_status); $my_fail_exp"
  47802. + fi
  47803. fi
  47804. }
  47805. -# func_extract_archives gentop oldlib ...
  47806. -func_extract_archives ()
  47807. +
  47808. +# func_show_eval_locale cmd [fail_exp]
  47809. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  47810. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  47811. +# is given, then evaluate it. Use the saved locale for evaluation.
  47812. +func_show_eval_locale ()
  47813. {
  47814. - my_gentop="$1"; shift
  47815. - my_oldlibs=${1+"$@"}
  47816. - my_oldobjs=""
  47817. - my_xlib=""
  47818. - my_xabs=""
  47819. - my_xdir=""
  47820. - my_status=""
  47821. + my_cmd="$1"
  47822. + my_fail_exp="${2-:}"
  47823. +
  47824. + ${opt_silent-false} || {
  47825. + func_quote_for_expand "$my_cmd"
  47826. + eval "func_echo $func_quote_for_expand_result"
  47827. + }
  47828. - $show "${rm}r $my_gentop"
  47829. - $run ${rm}r "$my_gentop"
  47830. - $show "$mkdir $my_gentop"
  47831. - $run $mkdir "$my_gentop"
  47832. - my_status=$?
  47833. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  47834. - exit $my_status
  47835. + if ${opt_dry_run-false}; then :; else
  47836. + eval "$lt_user_locale
  47837. + $my_cmd"
  47838. + my_status=$?
  47839. + eval "$lt_safe_locale"
  47840. + if test "$my_status" -eq 0; then :; else
  47841. + eval "(exit $my_status); $my_fail_exp"
  47842. + fi
  47843. fi
  47844. +}
  47845. - for my_xlib in $my_oldlibs; do
  47846. - # Extract the objects.
  47847. - case $my_xlib in
  47848. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  47849. - *) my_xabs=`pwd`"/$my_xlib" ;;
  47850. - esac
  47851. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  47852. - my_xdir="$my_gentop/$my_xlib"
  47853. - $show "${rm}r $my_xdir"
  47854. - $run ${rm}r "$my_xdir"
  47855. - $show "$mkdir $my_xdir"
  47856. - $run $mkdir "$my_xdir"
  47857. - exit_status=$?
  47858. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  47859. - exit $exit_status
  47860. - fi
  47861. - case $host in
  47862. - *-darwin*)
  47863. - $show "Extracting $my_xabs"
  47864. - # Do not bother doing anything if just a dry run
  47865. - if test -z "$run"; then
  47866. - darwin_orig_dir=`pwd`
  47867. - cd $my_xdir || exit $?
  47868. - darwin_archive=$my_xabs
  47869. - darwin_curdir=`pwd`
  47870. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  47871. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  47872. - if test -n "$darwin_arches"; then
  47873. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  47874. - darwin_arch=
  47875. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  47876. - for darwin_arch in $darwin_arches ; do
  47877. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  47878. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  47879. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  47880. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  47881. - cd "$darwin_curdir"
  47882. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  47883. - done # $darwin_arches
  47884. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  47885. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  47886. - darwin_file=
  47887. - darwin_files=
  47888. - for darwin_file in $darwin_filelist; do
  47889. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  47890. - lipo -create -output "$darwin_file" $darwin_files
  47891. - done # $darwin_filelist
  47892. - ${rm}r unfat-$$
  47893. - cd "$darwin_orig_dir"
  47894. - else
  47895. - cd "$darwin_orig_dir"
  47896. - func_extract_an_archive "$my_xdir" "$my_xabs"
  47897. - fi # $darwin_arches
  47898. - fi # $run
  47899. - ;;
  47900. - *)
  47901. - func_extract_an_archive "$my_xdir" "$my_xabs"
  47902. - ;;
  47903. - esac
  47904. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  47905. - done
  47906. - func_extract_archives_result="$my_oldobjs"
  47907. +
  47908. +
  47909. +
  47910. +# func_version
  47911. +# Echo version message to standard output and exit.
  47912. +func_version ()
  47913. +{
  47914. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  47915. + s/^# //
  47916. + s/^# *$//
  47917. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  47918. + p
  47919. + }' < "$progpath"
  47920. + exit $?
  47921. }
  47922. -# End of Shell function definitions
  47923. -#####################################
  47924. -# Darwin sucks
  47925. -eval std_shrext=\"$shrext_cmds\"
  47926. +# func_usage
  47927. +# Echo short help message to standard output and exit.
  47928. +func_usage ()
  47929. +{
  47930. + $SED -n '/^# Usage:/,/# -h/ {
  47931. + s/^# //
  47932. + s/^# *$//
  47933. + s/\$progname/'$progname'/
  47934. + p
  47935. + }' < "$progpath"
  47936. + $ECHO
  47937. + $ECHO "run \`$progname --help | more' for full usage"
  47938. + exit $?
  47939. +}
  47940. -disable_libs=no
  47941. +# func_help
  47942. +# Echo long help message to standard output and exit.
  47943. +func_help ()
  47944. +{
  47945. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  47946. + s/^# //
  47947. + s/^# *$//
  47948. + s*\$progname*'$progname'*
  47949. + s*\$host*'"$host"'*
  47950. + s*\$SHELL*'"$SHELL"'*
  47951. + s*\$LTCC*'"$LTCC"'*
  47952. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  47953. + s*\$LD*'"$LD"'*
  47954. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  47955. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  47956. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  47957. + p
  47958. + }' < "$progpath"
  47959. + exit $?
  47960. +}
  47961. -# Parse our command line options once, thoroughly.
  47962. -while test "$#" -gt 0
  47963. -do
  47964. - arg="$1"
  47965. +# func_missing_arg argname
  47966. +# Echo program name prefixed message to standard error and set global
  47967. +# exit_cmd.
  47968. +func_missing_arg ()
  47969. +{
  47970. + func_error "missing argument for $1"
  47971. + exit_cmd=exit
  47972. +}
  47973. +
  47974. +exit_cmd=:
  47975. +
  47976. +
  47977. +
  47978. +
  47979. +
  47980. +# Check that we have a working $ECHO.
  47981. +if test "X$1" = X--no-reexec; then
  47982. + # Discard the --no-reexec flag, and continue.
  47983. shift
  47984. +elif test "X$1" = X--fallback-echo; then
  47985. + # Avoid inline document here, it may be left over
  47986. + :
  47987. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  47988. + # Yippee, $ECHO works!
  47989. + :
  47990. +else
  47991. + # Restart under the correct shell, and then maybe $ECHO will work.
  47992. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  47993. +fi
  47994. - case $arg in
  47995. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  47996. - *) optarg= ;;
  47997. - esac
  47998. +if test "X$1" = X--fallback-echo; then
  47999. + # used as fallback echo
  48000. + shift
  48001. + cat <<EOF
  48002. +$*
  48003. +EOF
  48004. + exit $EXIT_SUCCESS
  48005. +fi
  48006. - # If the previous option needs an argument, assign it.
  48007. - if test -n "$prev"; then
  48008. - case $prev in
  48009. - execute_dlfiles)
  48010. - execute_dlfiles="$execute_dlfiles $arg"
  48011. - ;;
  48012. - tag)
  48013. - tagname="$arg"
  48014. - preserve_args="${preserve_args}=$arg"
  48015. -
  48016. - # Check whether tagname contains only valid characters
  48017. - case $tagname in
  48018. - *[!-_A-Za-z0-9,/]*)
  48019. - $echo "$progname: invalid tag name: $tagname" 1>&2
  48020. - exit $EXIT_FAILURE
  48021. - ;;
  48022. - esac
  48023. +magic="%%%MAGIC variable%%%"
  48024. +magic_exe="%%%MAGIC EXE variable%%%"
  48025. - case $tagname in
  48026. - CC)
  48027. - # Don't test for the "default" C tag, as we know, it's there, but
  48028. - # not specially marked.
  48029. - ;;
  48030. - *)
  48031. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  48032. - taglist="$taglist $tagname"
  48033. - # Evaluate the configuration.
  48034. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  48035. - else
  48036. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  48037. - fi
  48038. - ;;
  48039. - esac
  48040. - ;;
  48041. - *)
  48042. - eval "$prev=\$arg"
  48043. - ;;
  48044. - esac
  48045. +# Global variables.
  48046. +# $mode is unset
  48047. +nonopt=
  48048. +execute_dlfiles=
  48049. +preserve_args=
  48050. +lo2o="s/\\.lo\$/.${objext}/"
  48051. +o2lo="s/\\.${objext}\$/.lo/"
  48052. +extracted_archives=
  48053. +extracted_serial=0
  48054. - prev=
  48055. - prevopt=
  48056. - continue
  48057. - fi
  48058. +opt_dry_run=false
  48059. +opt_duplicate_deps=false
  48060. +opt_silent=false
  48061. +opt_debug=:
  48062. - # Have we seen a non-optional argument yet?
  48063. - case $arg in
  48064. - --help)
  48065. - show_help=yes
  48066. - ;;
  48067. +# If this variable is set in any of the actions, the command in it
  48068. +# will be execed at the end. This prevents here-documents from being
  48069. +# left over by shells.
  48070. +exec_cmd=
  48071. - --version)
  48072. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  48073. - $echo
  48074. - $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  48075. - $echo "This is free software; see the source for copying conditions. There is NO"
  48076. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  48077. - exit $?
  48078. - ;;
  48079. +# func_fatal_configuration arg...
  48080. +# Echo program name prefixed message to standard error, followed by
  48081. +# a configuration failure hint, and exit.
  48082. +func_fatal_configuration ()
  48083. +{
  48084. + func_error ${1+"$@"}
  48085. + func_error "See the $PACKAGE documentation for more information."
  48086. + func_fatal_error "Fatal configuration error."
  48087. +}
  48088. +
  48089. +
  48090. +# func_config
  48091. +# Display the configuration for all the tags in this script.
  48092. +func_config ()
  48093. +{
  48094. + re_begincf='^# ### BEGIN LIBTOOL'
  48095. + re_endcf='^# ### END LIBTOOL'
  48096. +
  48097. + # Default configuration.
  48098. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  48099. - --config)
  48100. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  48101. # Now print the configurations for the tags.
  48102. for tagname in $taglist; do
  48103. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  48104. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  48105. done
  48106. - exit $?
  48107. - ;;
  48108. - --debug)
  48109. - $echo "$progname: enabling shell trace mode"
  48110. - set -x
  48111. - preserve_args="$preserve_args $arg"
  48112. - ;;
  48113. -
  48114. - --dry-run | -n)
  48115. - run=:
  48116. - ;;
  48117. + exit $?
  48118. +}
  48119. - --features)
  48120. - $echo "host: $host"
  48121. +# func_features
  48122. +# Display the features supported by this script.
  48123. +func_features ()
  48124. +{
  48125. + $ECHO "host: $host"
  48126. if test "$build_libtool_libs" = yes; then
  48127. - $echo "enable shared libraries"
  48128. + $ECHO "enable shared libraries"
  48129. else
  48130. - $echo "disable shared libraries"
  48131. + $ECHO "disable shared libraries"
  48132. fi
  48133. if test "$build_old_libs" = yes; then
  48134. - $echo "enable static libraries"
  48135. + $ECHO "enable static libraries"
  48136. else
  48137. - $echo "disable static libraries"
  48138. + $ECHO "disable static libraries"
  48139. fi
  48140. +
  48141. exit $?
  48142. - ;;
  48143. +}
  48144. - --finish) mode="finish" ;;
  48145. +# func_enable_tag tagname
  48146. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  48147. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  48148. +# variable here.
  48149. +func_enable_tag ()
  48150. +{
  48151. + # Global variable:
  48152. + tagname="$1"
  48153. - --mode) prevopt="--mode" prev=mode ;;
  48154. - --mode=*) mode="$optarg" ;;
  48155. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  48156. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  48157. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  48158. +
  48159. + # Validate tagname.
  48160. + case $tagname in
  48161. + *[!-_A-Za-z0-9,/]*)
  48162. + func_fatal_error "invalid tag name: $tagname"
  48163. + ;;
  48164. + esac
  48165. - --preserve-dup-deps) duplicate_deps="yes" ;;
  48166. + # Don't test for the "default" C tag, as we know it's
  48167. + # there but not specially marked.
  48168. + case $tagname in
  48169. + CC) ;;
  48170. + *)
  48171. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  48172. + taglist="$taglist $tagname"
  48173. - --quiet | --silent)
  48174. - show=:
  48175. - preserve_args="$preserve_args $arg"
  48176. - ;;
  48177. + # Evaluate the configuration. Be careful to quote the path
  48178. + # and the sed script, to avoid splitting on whitespace, but
  48179. + # also don't use non-portable quotes within backquotes within
  48180. + # quotes we have to do it in 2 steps:
  48181. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  48182. + eval "$extractedcf"
  48183. + else
  48184. + func_error "ignoring unknown tag $tagname"
  48185. + fi
  48186. + ;;
  48187. + esac
  48188. +}
  48189. +
  48190. +# Parse options once, thoroughly. This comes as soon as possible in
  48191. +# the script to make things like `libtool --version' happen quickly.
  48192. +{
  48193. - --tag)
  48194. - prevopt="--tag"
  48195. - prev=tag
  48196. - preserve_args="$preserve_args --tag"
  48197. + # Shorthand for --mode=foo, only valid as the first argument
  48198. + case $1 in
  48199. + clean|clea|cle|cl)
  48200. + shift; set dummy --mode clean ${1+"$@"}; shift
  48201. ;;
  48202. - --tag=*)
  48203. - set tag "$optarg" ${1+"$@"}
  48204. - shift
  48205. - prev=tag
  48206. - preserve_args="$preserve_args --tag"
  48207. + compile|compil|compi|comp|com|co|c)
  48208. + shift; set dummy --mode compile ${1+"$@"}; shift
  48209. ;;
  48210. -
  48211. - -dlopen)
  48212. - prevopt="-dlopen"
  48213. - prev=execute_dlfiles
  48214. + execute|execut|execu|exec|exe|ex|e)
  48215. + shift; set dummy --mode execute ${1+"$@"}; shift
  48216. ;;
  48217. -
  48218. - -*)
  48219. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  48220. - $echo "$help" 1>&2
  48221. - exit $EXIT_FAILURE
  48222. + finish|finis|fini|fin|fi|f)
  48223. + shift; set dummy --mode finish ${1+"$@"}; shift
  48224. ;;
  48225. -
  48226. - *)
  48227. - nonopt="$arg"
  48228. - break
  48229. + install|instal|insta|inst|ins|in|i)
  48230. + shift; set dummy --mode install ${1+"$@"}; shift
  48231. + ;;
  48232. + link|lin|li|l)
  48233. + shift; set dummy --mode link ${1+"$@"}; shift
  48234. + ;;
  48235. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  48236. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  48237. ;;
  48238. esac
  48239. -done
  48240. -if test -n "$prevopt"; then
  48241. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  48242. - $echo "$help" 1>&2
  48243. - exit $EXIT_FAILURE
  48244. -fi
  48245. + # Parse non-mode specific arguments:
  48246. + while test "$#" -gt 0; do
  48247. + opt="$1"
  48248. + shift
  48249. -case $disable_libs in
  48250. -no)
  48251. - ;;
  48252. -shared)
  48253. - build_libtool_libs=no
  48254. - build_old_libs=yes
  48255. - ;;
  48256. -static)
  48257. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  48258. - ;;
  48259. -esac
  48260. + case $opt in
  48261. + --config) func_config ;;
  48262. -# If this variable is set in any of the actions, the command in it
  48263. -# will be execed at the end. This prevents here-documents from being
  48264. -# left over by shells.
  48265. -exec_cmd=
  48266. + --debug) preserve_args="$preserve_args $opt"
  48267. + func_echo "enabling shell trace mode"
  48268. + opt_debug='set -x'
  48269. + $opt_debug
  48270. + ;;
  48271. +
  48272. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48273. + execute_dlfiles="$execute_dlfiles $1"
  48274. + shift
  48275. + ;;
  48276. -if test -z "$show_help"; then
  48277. + --dry-run | -n) opt_dry_run=: ;;
  48278. + --features) func_features ;;
  48279. + --finish) mode="finish" ;;
  48280. +
  48281. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48282. + case $1 in
  48283. + # Valid mode arguments:
  48284. + clean) ;;
  48285. + compile) ;;
  48286. + execute) ;;
  48287. + finish) ;;
  48288. + install) ;;
  48289. + link) ;;
  48290. + relink) ;;
  48291. + uninstall) ;;
  48292. +
  48293. + # Catch anything else as an error
  48294. + *) func_error "invalid argument for $opt"
  48295. + exit_cmd=exit
  48296. + break
  48297. + ;;
  48298. + esac
  48299. - # Infer the operation mode.
  48300. - if test -z "$mode"; then
  48301. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  48302. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  48303. - case $nonopt in
  48304. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  48305. - mode=link
  48306. - for arg
  48307. - do
  48308. - case $arg in
  48309. - -c)
  48310. - mode=compile
  48311. - break
  48312. - ;;
  48313. - esac
  48314. - done
  48315. - ;;
  48316. - *db | *dbx | *strace | *truss)
  48317. - mode=execute
  48318. - ;;
  48319. - *install*|cp|mv)
  48320. - mode=install
  48321. - ;;
  48322. - *rm)
  48323. - mode=uninstall
  48324. + mode="$1"
  48325. + shift
  48326. + ;;
  48327. +
  48328. + --preserve-dup-deps)
  48329. + opt_duplicate_deps=: ;;
  48330. +
  48331. + --quiet|--silent) preserve_args="$preserve_args $opt"
  48332. + opt_silent=:
  48333. + ;;
  48334. +
  48335. + --verbose| -v) preserve_args="$preserve_args $opt"
  48336. + opt_silent=false
  48337. + ;;
  48338. +
  48339. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48340. + preserve_args="$preserve_args $opt $1"
  48341. + func_enable_tag "$1" # tagname is set here
  48342. + shift
  48343. + ;;
  48344. +
  48345. + # Separate optargs to long options:
  48346. + -dlopen=*|--mode=*|--tag=*)
  48347. + func_opt_split "$opt"
  48348. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  48349. + shift
  48350. + ;;
  48351. +
  48352. + -\?|-h) func_usage ;;
  48353. + --help) opt_help=: ;;
  48354. + --version) func_version ;;
  48355. +
  48356. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  48357. +
  48358. + *) nonopt="$opt"
  48359. + break
  48360. + ;;
  48361. + esac
  48362. + done
  48363. +
  48364. +
  48365. + case $host in
  48366. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  48367. + # don't eliminate duplications in $postdeps and $predeps
  48368. + opt_duplicate_compiler_generated_deps=:
  48369. ;;
  48370. *)
  48371. - # If we have no mode, but dlfiles were specified, then do execute mode.
  48372. - test -n "$execute_dlfiles" && mode=execute
  48373. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  48374. + ;;
  48375. + esac
  48376. - # Just use the default operation mode.
  48377. - if test -z "$mode"; then
  48378. - if test -n "$nonopt"; then
  48379. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  48380. - else
  48381. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  48382. - fi
  48383. + # Having warned about all mis-specified options, bail out if
  48384. + # anything was wrong.
  48385. + $exit_cmd $EXIT_FAILURE
  48386. +}
  48387. +
  48388. +# func_check_version_match
  48389. +# Ensure that we are using m4 macros, and libtool script from the same
  48390. +# release of libtool.
  48391. +func_check_version_match ()
  48392. +{
  48393. + if test "$package_revision" != "$macro_revision"; then
  48394. + if test "$VERSION" != "$macro_version"; then
  48395. + if test -z "$macro_version"; then
  48396. + cat >&2 <<_LT_EOF
  48397. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  48398. +$progname: definition of this LT_INIT comes from an older release.
  48399. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  48400. +$progname: and run autoconf again.
  48401. +_LT_EOF
  48402. + else
  48403. + cat >&2 <<_LT_EOF
  48404. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  48405. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  48406. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  48407. +$progname: and run autoconf again.
  48408. +_LT_EOF
  48409. fi
  48410. - ;;
  48411. - esac
  48412. + else
  48413. + cat >&2 <<_LT_EOF
  48414. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  48415. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  48416. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  48417. +$progname: of $PACKAGE $VERSION and run autoconf again.
  48418. +_LT_EOF
  48419. + fi
  48420. +
  48421. + exit $EXIT_MISMATCH
  48422. + fi
  48423. +}
  48424. +
  48425. +
  48426. +## ----------- ##
  48427. +## Main. ##
  48428. +## ----------- ##
  48429. +
  48430. +$opt_help || {
  48431. + # Sanity checks first:
  48432. + func_check_version_match
  48433. +
  48434. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  48435. + func_fatal_configuration "not configured to build any kind of library"
  48436. fi
  48437. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  48438. +
  48439. +
  48440. + # Darwin sucks
  48441. + eval std_shrext=\"$shrext_cmds\"
  48442. +
  48443. +
  48444. # Only execute mode is allowed to have -dlopen flags.
  48445. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  48446. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  48447. - $echo "$help" 1>&2
  48448. + func_error "unrecognized option \`-dlopen'"
  48449. + $ECHO "$help" 1>&2
  48450. exit $EXIT_FAILURE
  48451. fi
  48452. # Change the help message to a mode-specific one.
  48453. generic_help="$help"
  48454. - help="Try \`$modename --help --mode=$mode' for more information."
  48455. + help="Try \`$progname --help --mode=$mode' for more information."
  48456. +}
  48457. - # These modes are in order of execution frequency so that they run quickly.
  48458. - case $mode in
  48459. - # libtool compile mode
  48460. - compile)
  48461. - modename="$modename: compile"
  48462. - # Get the compilation command and the source file.
  48463. - base_compile=
  48464. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48465. - suppress_opt=yes
  48466. - suppress_output=
  48467. - arg_mode=normal
  48468. - libobj=
  48469. - later=
  48470. - for arg
  48471. - do
  48472. - case $arg_mode in
  48473. - arg )
  48474. - # do not "continue". Instead, add this to base_compile
  48475. - lastarg="$arg"
  48476. - arg_mode=normal
  48477. - ;;
  48478. +# func_lalib_p file
  48479. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  48480. +# This function is only a basic sanity check; it will hardly flush out
  48481. +# determined imposters.
  48482. +func_lalib_p ()
  48483. +{
  48484. + test -f "$1" &&
  48485. + $SED -e 4q "$1" 2>/dev/null \
  48486. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  48487. +}
  48488. - target )
  48489. - libobj="$arg"
  48490. - arg_mode=normal
  48491. - continue
  48492. - ;;
  48493. +# func_lalib_unsafe_p file
  48494. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  48495. +# This function implements the same check as func_lalib_p without
  48496. +# resorting to external programs. To this end, it redirects stdin and
  48497. +# closes it afterwards, without saving the original file descriptor.
  48498. +# As a safety measure, use it only where a negative result would be
  48499. +# fatal anyway. Works if `file' does not exist.
  48500. +func_lalib_unsafe_p ()
  48501. +{
  48502. + lalib_p=no
  48503. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  48504. + for lalib_p_l in 1 2 3 4
  48505. + do
  48506. + read lalib_p_line
  48507. + case "$lalib_p_line" in
  48508. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  48509. + esac
  48510. + done
  48511. + exec 0<&5 5<&-
  48512. + fi
  48513. + test "$lalib_p" = yes
  48514. +}
  48515. - normal )
  48516. - # Accept any command-line options.
  48517. - case $arg in
  48518. - -o)
  48519. - if test -n "$libobj" ; then
  48520. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  48521. - exit $EXIT_FAILURE
  48522. - fi
  48523. - arg_mode=target
  48524. - continue
  48525. - ;;
  48526. +# func_ltwrapper_script_p file
  48527. +# True iff FILE is a libtool wrapper script
  48528. +# This function is only a basic sanity check; it will hardly flush out
  48529. +# determined imposters.
  48530. +func_ltwrapper_script_p ()
  48531. +{
  48532. + func_lalib_p "$1"
  48533. +}
  48534. - -static | -prefer-pic | -prefer-non-pic)
  48535. - later="$later $arg"
  48536. - continue
  48537. - ;;
  48538. +# func_ltwrapper_executable_p file
  48539. +# True iff FILE is a libtool wrapper executable
  48540. +# This function is only a basic sanity check; it will hardly flush out
  48541. +# determined imposters.
  48542. +func_ltwrapper_executable_p ()
  48543. +{
  48544. + func_ltwrapper_exec_suffix=
  48545. + case $1 in
  48546. + *.exe) ;;
  48547. + *) func_ltwrapper_exec_suffix=.exe ;;
  48548. + esac
  48549. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  48550. +}
  48551. - -no-suppress)
  48552. - suppress_opt=no
  48553. - continue
  48554. - ;;
  48555. +# func_ltwrapper_scriptname file
  48556. +# Assumes file is an ltwrapper_executable
  48557. +# uses $file to determine the appropriate filename for a
  48558. +# temporary ltwrapper_script.
  48559. +func_ltwrapper_scriptname ()
  48560. +{
  48561. + func_ltwrapper_scriptname_result=""
  48562. + if func_ltwrapper_executable_p "$1"; then
  48563. + func_dirname_and_basename "$1" "" "."
  48564. + func_stripname '' '.exe' "$func_basename_result"
  48565. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  48566. + fi
  48567. +}
  48568. - -Xcompiler)
  48569. - arg_mode=arg # the next one goes into the "base_compile" arg list
  48570. - continue # The current "srcfile" will either be retained or
  48571. - ;; # replaced later. I would guess that would be a bug.
  48572. +# func_ltwrapper_p file
  48573. +# True iff FILE is a libtool wrapper script or wrapper executable
  48574. +# This function is only a basic sanity check; it will hardly flush out
  48575. +# determined imposters.
  48576. +func_ltwrapper_p ()
  48577. +{
  48578. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  48579. +}
  48580. - -Wc,*)
  48581. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  48582. - lastarg=
  48583. - save_ifs="$IFS"; IFS=','
  48584. - for arg in $args; do
  48585. - IFS="$save_ifs"
  48586. - # Double-quote args containing other shell metacharacters.
  48587. - # Many Bourne shells cannot handle close brackets correctly
  48588. - # in scan sets, so we specify it separately.
  48589. - case $arg in
  48590. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48591. - arg="\"$arg\""
  48592. +# func_execute_cmds commands fail_cmd
  48593. +# Execute tilde-delimited COMMANDS.
  48594. +# If FAIL_CMD is given, eval that upon failure.
  48595. +# FAIL_CMD may read-access the current command in variable CMD!
  48596. +func_execute_cmds ()
  48597. +{
  48598. + $opt_debug
  48599. + save_ifs=$IFS; IFS='~'
  48600. + for cmd in $1; do
  48601. + IFS=$save_ifs
  48602. + eval cmd=\"$cmd\"
  48603. + func_show_eval "$cmd" "${2-:}"
  48604. + done
  48605. + IFS=$save_ifs
  48606. +}
  48607. +
  48608. +
  48609. +# func_source file
  48610. +# Source FILE, adding directory component if necessary.
  48611. +# Note that it is not necessary on cygwin/mingw to append a dot to
  48612. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  48613. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  48614. +# `FILE.' does not work on cygwin managed mounts.
  48615. +func_source ()
  48616. +{
  48617. + $opt_debug
  48618. + case $1 in
  48619. + */* | *\\*) . "$1" ;;
  48620. + *) . "./$1" ;;
  48621. + esac
  48622. +}
  48623. +
  48624. +
  48625. +# func_infer_tag arg
  48626. +# Infer tagged configuration to use if any are available and
  48627. +# if one wasn't chosen via the "--tag" command line option.
  48628. +# Only attempt this if the compiler in the base compile
  48629. +# command doesn't match the default compiler.
  48630. +# arg is usually of the form 'gcc ...'
  48631. +func_infer_tag ()
  48632. +{
  48633. + $opt_debug
  48634. + if test -n "$available_tags" && test -z "$tagname"; then
  48635. + CC_quoted=
  48636. + for arg in $CC; do
  48637. + func_quote_for_eval "$arg"
  48638. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  48639. + done
  48640. + case $@ in
  48641. + # Blanks in the command may have been stripped by the calling shell,
  48642. + # but not from the CC environment variable when configure was run.
  48643. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  48644. + # Blanks at the start of $base_compile will cause this to fail
  48645. + # if we don't check for them as well.
  48646. + *)
  48647. + for z in $available_tags; do
  48648. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  48649. + # Evaluate the configuration.
  48650. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  48651. + CC_quoted=
  48652. + for arg in $CC; do
  48653. + # Double-quote args containing other shell metacharacters.
  48654. + func_quote_for_eval "$arg"
  48655. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  48656. + done
  48657. + case "$@ " in
  48658. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  48659. + # The compiler in the base compile command matches
  48660. + # the one in the tagged configuration.
  48661. + # Assume this is the tagged configuration we want.
  48662. + tagname=$z
  48663. + break
  48664. ;;
  48665. esac
  48666. - lastarg="$lastarg $arg"
  48667. + fi
  48668. + done
  48669. + # If $tagname still isn't set, then no tagged configuration
  48670. + # was found and let the user know that the "--tag" command
  48671. + # line option must be used.
  48672. + if test -z "$tagname"; then
  48673. + func_echo "unable to infer tagged configuration"
  48674. + func_fatal_error "specify a tag with \`--tag'"
  48675. +# else
  48676. +# func_verbose "using $tagname tagged configuration"
  48677. + fi
  48678. + ;;
  48679. + esac
  48680. + fi
  48681. +}
  48682. +
  48683. +
  48684. +
  48685. +# func_write_libtool_object output_name pic_name nonpic_name
  48686. +# Create a libtool object file (analogous to a ".la" file),
  48687. +# but don't create it if we're doing a dry run.
  48688. +func_write_libtool_object ()
  48689. +{
  48690. + write_libobj=${1}
  48691. + if test "$build_libtool_libs" = yes; then
  48692. + write_lobj=\'${2}\'
  48693. + else
  48694. + write_lobj=none
  48695. + fi
  48696. +
  48697. + if test "$build_old_libs" = yes; then
  48698. + write_oldobj=\'${3}\'
  48699. + else
  48700. + write_oldobj=none
  48701. + fi
  48702. +
  48703. + $opt_dry_run || {
  48704. + cat >${write_libobj}T <<EOF
  48705. +# $write_libobj - a libtool object file
  48706. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  48707. +#
  48708. +# Please DO NOT delete this file!
  48709. +# It is necessary for linking the library.
  48710. +
  48711. +# Name of the PIC object.
  48712. +pic_object=$write_lobj
  48713. +
  48714. +# Name of the non-PIC object
  48715. +non_pic_object=$write_oldobj
  48716. +
  48717. +EOF
  48718. + $MV "${write_libobj}T" "${write_libobj}"
  48719. + }
  48720. +}
  48721. +
  48722. +# func_mode_compile arg...
  48723. +func_mode_compile ()
  48724. +{
  48725. + $opt_debug
  48726. + # Get the compilation command and the source file.
  48727. + base_compile=
  48728. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48729. + suppress_opt=yes
  48730. + suppress_output=
  48731. + arg_mode=normal
  48732. + libobj=
  48733. + later=
  48734. + pie_flag=
  48735. +
  48736. + for arg
  48737. + do
  48738. + case $arg_mode in
  48739. + arg )
  48740. + # do not "continue". Instead, add this to base_compile
  48741. + lastarg="$arg"
  48742. + arg_mode=normal
  48743. + ;;
  48744. +
  48745. + target )
  48746. + libobj="$arg"
  48747. + arg_mode=normal
  48748. + continue
  48749. + ;;
  48750. +
  48751. + normal )
  48752. + # Accept any command-line options.
  48753. + case $arg in
  48754. + -o)
  48755. + test -n "$libobj" && \
  48756. + func_fatal_error "you cannot specify \`-o' more than once"
  48757. + arg_mode=target
  48758. + continue
  48759. + ;;
  48760. +
  48761. + -pie | -fpie | -fPIE)
  48762. + pie_flag="$pie_flag $arg"
  48763. + continue
  48764. + ;;
  48765. +
  48766. + -shared | -static | -prefer-pic | -prefer-non-pic)
  48767. + later="$later $arg"
  48768. + continue
  48769. + ;;
  48770. +
  48771. + -no-suppress)
  48772. + suppress_opt=no
  48773. + continue
  48774. + ;;
  48775. +
  48776. + -Xcompiler)
  48777. + arg_mode=arg # the next one goes into the "base_compile" arg list
  48778. + continue # The current "srcfile" will either be retained or
  48779. + ;; # replaced later. I would guess that would be a bug.
  48780. +
  48781. + -Wc,*)
  48782. + func_stripname '-Wc,' '' "$arg"
  48783. + args=$func_stripname_result
  48784. + lastarg=
  48785. + save_ifs="$IFS"; IFS=','
  48786. + for arg in $args; do
  48787. + IFS="$save_ifs"
  48788. + func_quote_for_eval "$arg"
  48789. + lastarg="$lastarg $func_quote_for_eval_result"
  48790. done
  48791. IFS="$save_ifs"
  48792. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  48793. + func_stripname ' ' '' "$lastarg"
  48794. + lastarg=$func_stripname_result
  48795. # Add the arguments to base_compile.
  48796. base_compile="$base_compile $lastarg"
  48797. continue
  48798. ;;
  48799. - * )
  48800. + *)
  48801. # Accept the current argument as the source file.
  48802. # The previous "srcfile" becomes the current argument.
  48803. #
  48804. @@ -709,64 +1187,42 @@
  48805. esac # case $arg_mode
  48806. # Aesthetically quote the previous argument.
  48807. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  48808. -
  48809. - case $lastarg in
  48810. - # Double-quote args containing other shell metacharacters.
  48811. - # Many Bourne shells cannot handle close brackets correctly
  48812. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  48813. - # in scan sets (worked around with variable expansion),
  48814. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  48815. - # at all, so we specify them separately.
  48816. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48817. - lastarg="\"$lastarg\""
  48818. - ;;
  48819. - esac
  48820. -
  48821. - base_compile="$base_compile $lastarg"
  48822. + func_quote_for_eval "$lastarg"
  48823. + base_compile="$base_compile $func_quote_for_eval_result"
  48824. done # for arg
  48825. case $arg_mode in
  48826. arg)
  48827. - $echo "$modename: you must specify an argument for -Xcompile"
  48828. - exit $EXIT_FAILURE
  48829. + func_fatal_error "you must specify an argument for -Xcompile"
  48830. ;;
  48831. target)
  48832. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  48833. - exit $EXIT_FAILURE
  48834. + func_fatal_error "you must specify a target with \`-o'"
  48835. ;;
  48836. *)
  48837. # Get the name of the library object.
  48838. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  48839. + test -z "$libobj" && {
  48840. + func_basename "$srcfile"
  48841. + libobj="$func_basename_result"
  48842. + }
  48843. ;;
  48844. esac
  48845. # Recognize several different file suffixes.
  48846. # If the user specifies -o file.o, it is replaced with file.lo
  48847. - xform='[cCFSifmso]'
  48848. case $libobj in
  48849. - *.ada) xform=ada ;;
  48850. - *.adb) xform=adb ;;
  48851. - *.ads) xform=ads ;;
  48852. - *.asm) xform=asm ;;
  48853. - *.c++) xform=c++ ;;
  48854. - *.cc) xform=cc ;;
  48855. - *.ii) xform=ii ;;
  48856. - *.class) xform=class ;;
  48857. - *.cpp) xform=cpp ;;
  48858. - *.cxx) xform=cxx ;;
  48859. - *.f90) xform=f90 ;;
  48860. - *.for) xform=for ;;
  48861. - *.java) xform=java ;;
  48862. + *.[cCFSifmso] | \
  48863. + *.ada | *.adb | *.ads | *.asm | \
  48864. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  48865. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  48866. + func_xform "$libobj"
  48867. + libobj=$func_xform_result
  48868. + ;;
  48869. esac
  48870. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  48871. -
  48872. case $libobj in
  48873. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  48874. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  48875. *)
  48876. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  48877. - exit $EXIT_FAILURE
  48878. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  48879. ;;
  48880. esac
  48881. @@ -774,7 +1230,15 @@
  48882. for arg in $later; do
  48883. case $arg in
  48884. + -shared)
  48885. + test "$build_libtool_libs" != yes && \
  48886. + func_fatal_configuration "can not build a shared library"
  48887. + build_old_libs=no
  48888. + continue
  48889. + ;;
  48890. +
  48891. -static)
  48892. + build_libtool_libs=no
  48893. build_old_libs=yes
  48894. continue
  48895. ;;
  48896. @@ -791,28 +1255,17 @@
  48897. esac
  48898. done
  48899. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  48900. - case $qlibobj in
  48901. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48902. - qlibobj="\"$qlibobj\"" ;;
  48903. - esac
  48904. - test "X$libobj" != "X$qlibobj" \
  48905. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  48906. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  48907. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  48908. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  48909. - if test "X$xdir" = "X$obj"; then
  48910. - xdir=
  48911. - else
  48912. - xdir=$xdir/
  48913. - fi
  48914. + func_quote_for_eval "$libobj"
  48915. + test "X$libobj" != "X$func_quote_for_eval_result" \
  48916. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  48917. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  48918. + func_dirname_and_basename "$obj" "/" ""
  48919. + objname="$func_basename_result"
  48920. + xdir="$func_dirname_result"
  48921. lobj=${xdir}$objdir/$objname
  48922. - if test -z "$base_compile"; then
  48923. - $echo "$modename: you must specify a compilation command" 1>&2
  48924. - $echo "$help" 1>&2
  48925. - exit $EXIT_FAILURE
  48926. - fi
  48927. + test -z "$base_compile" && \
  48928. + func_fatal_help "you must specify a compilation command"
  48929. # Delete any leftover library objects.
  48930. if test "$build_old_libs" = yes; then
  48931. @@ -821,12 +1274,9 @@
  48932. removelist="$lobj $libobj ${libobj}T"
  48933. fi
  48934. - $run $rm $removelist
  48935. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  48936. -
  48937. # On Cygwin there's no "real" PIC flag so we must build both object types
  48938. case $host_os in
  48939. - cygwin* | mingw* | pw32* | os2*)
  48940. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  48941. pic_mode=default
  48942. ;;
  48943. esac
  48944. @@ -838,10 +1288,8 @@
  48945. # Calculate the filename of the output object if compiler does
  48946. # not support -o with -c
  48947. if test "$compiler_c_o" = no; then
  48948. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  48949. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  48950. lockfile="$output_obj.lock"
  48951. - removelist="$removelist $output_obj $lockfile"
  48952. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  48953. else
  48954. output_obj=
  48955. need_locks=no
  48956. @@ -851,13 +1299,13 @@
  48957. # Lock this critical section if it is needed
  48958. # We use this script file to make the link, it avoids creating a new file
  48959. if test "$need_locks" = yes; then
  48960. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  48961. - $show "Waiting for $lockfile to be removed"
  48962. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  48963. + func_echo "Waiting for $lockfile to be removed"
  48964. sleep 2
  48965. done
  48966. elif test "$need_locks" = warn; then
  48967. if test -f "$lockfile"; then
  48968. - $echo "\
  48969. + $ECHO "\
  48970. *** ERROR, $lockfile exists and contains:
  48971. `cat $lockfile 2>/dev/null`
  48972. @@ -868,34 +1316,22 @@
  48973. avoid parallel builds (make -j) in this platform, or get a better
  48974. compiler."
  48975. - $run $rm $removelist
  48976. + $opt_dry_run || $RM $removelist
  48977. exit $EXIT_FAILURE
  48978. fi
  48979. - $echo "$srcfile" > "$lockfile"
  48980. + removelist="$removelist $output_obj"
  48981. + $ECHO "$srcfile" > "$lockfile"
  48982. fi
  48983. + $opt_dry_run || $RM $removelist
  48984. + removelist="$removelist $lockfile"
  48985. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  48986. +
  48987. if test -n "$fix_srcfile_path"; then
  48988. eval srcfile=\"$fix_srcfile_path\"
  48989. fi
  48990. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  48991. - case $qsrcfile in
  48992. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48993. - qsrcfile="\"$qsrcfile\"" ;;
  48994. - esac
  48995. -
  48996. - $run $rm "$libobj" "${libobj}T"
  48997. -
  48998. - # Create a libtool object file (analogous to a ".la" file),
  48999. - # but don't create it if we're doing a dry run.
  49000. - test -z "$run" && cat > ${libobj}T <<EOF
  49001. -# $libobj - a libtool object file
  49002. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  49003. -#
  49004. -# Please DO NOT delete this file!
  49005. -# It is necessary for linking the library.
  49006. -
  49007. -# Name of the PIC object.
  49008. -EOF
  49009. + func_quote_for_eval "$srcfile"
  49010. + qsrcfile=$func_quote_for_eval_result
  49011. # Only build a PIC object if we are building libtool libraries.
  49012. if test "$build_libtool_libs" = yes; then
  49013. @@ -909,32 +1345,19 @@
  49014. command="$base_compile $qsrcfile"
  49015. fi
  49016. - if test ! -d "${xdir}$objdir"; then
  49017. - $show "$mkdir ${xdir}$objdir"
  49018. - $run $mkdir ${xdir}$objdir
  49019. - exit_status=$?
  49020. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  49021. - exit $exit_status
  49022. - fi
  49023. - fi
  49024. + func_mkdir_p "$xdir$objdir"
  49025. if test -z "$output_obj"; then
  49026. # Place PIC objects in $objdir
  49027. command="$command -o $lobj"
  49028. fi
  49029. - $run $rm "$lobj" "$output_obj"
  49030. -
  49031. - $show "$command"
  49032. - if $run eval "$command"; then :
  49033. - else
  49034. - test -n "$output_obj" && $run $rm $removelist
  49035. - exit $EXIT_FAILURE
  49036. - fi
  49037. + func_show_eval_locale "$command" \
  49038. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  49039. if test "$need_locks" = warn &&
  49040. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49041. - $echo "\
  49042. + $ECHO "\
  49043. *** ERROR, $lockfile contains:
  49044. `cat $lockfile 2>/dev/null`
  49045. @@ -948,45 +1371,27 @@
  49046. avoid parallel builds (make -j) in this platform, or get a better
  49047. compiler."
  49048. - $run $rm $removelist
  49049. + $opt_dry_run || $RM $removelist
  49050. exit $EXIT_FAILURE
  49051. fi
  49052. # Just move the object if needed, then go on to compile the next one
  49053. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  49054. - $show "$mv $output_obj $lobj"
  49055. - if $run $mv $output_obj $lobj; then :
  49056. - else
  49057. - error=$?
  49058. - $run $rm $removelist
  49059. - exit $error
  49060. - fi
  49061. + func_show_eval '$MV "$output_obj" "$lobj"' \
  49062. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  49063. fi
  49064. - # Append the name of the PIC object to the libtool object file.
  49065. - test -z "$run" && cat >> ${libobj}T <<EOF
  49066. -pic_object='$objdir/$objname'
  49067. -
  49068. -EOF
  49069. -
  49070. # Allow error messages only from the first compilation.
  49071. if test "$suppress_opt" = yes; then
  49072. - suppress_output=' >/dev/null 2>&1'
  49073. + suppress_output=' >/dev/null 2>&1'
  49074. fi
  49075. - else
  49076. - # No PIC object so indicate it doesn't exist in the libtool
  49077. - # object file.
  49078. - test -z "$run" && cat >> ${libobj}T <<EOF
  49079. -pic_object=none
  49080. -
  49081. -EOF
  49082. fi
  49083. # Only build a position-dependent object if we build old libraries.
  49084. if test "$build_old_libs" = yes; then
  49085. if test "$pic_mode" != yes; then
  49086. # Don't build PIC code
  49087. - command="$base_compile $qsrcfile"
  49088. + command="$base_compile $qsrcfile$pie_flag"
  49089. else
  49090. command="$base_compile $qsrcfile $pic_flag"
  49091. fi
  49092. @@ -996,17 +1401,12 @@
  49093. # Suppress compiler output if we already did a PIC compilation.
  49094. command="$command$suppress_output"
  49095. - $run $rm "$obj" "$output_obj"
  49096. - $show "$command"
  49097. - if $run eval "$command"; then :
  49098. - else
  49099. - $run $rm $removelist
  49100. - exit $EXIT_FAILURE
  49101. - fi
  49102. + func_show_eval_locale "$command" \
  49103. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  49104. if test "$need_locks" = warn &&
  49105. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49106. - $echo "\
  49107. + $ECHO "\
  49108. *** ERROR, $lockfile contains:
  49109. `cat $lockfile 2>/dev/null`
  49110. @@ -1020,5431 +1420,6784 @@
  49111. avoid parallel builds (make -j) in this platform, or get a better
  49112. compiler."
  49113. - $run $rm $removelist
  49114. + $opt_dry_run || $RM $removelist
  49115. exit $EXIT_FAILURE
  49116. fi
  49117. # Just move the object if needed
  49118. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  49119. - $show "$mv $output_obj $obj"
  49120. - if $run $mv $output_obj $obj; then :
  49121. - else
  49122. - error=$?
  49123. - $run $rm $removelist
  49124. - exit $error
  49125. - fi
  49126. + func_show_eval '$MV "$output_obj" "$obj"' \
  49127. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  49128. fi
  49129. -
  49130. - # Append the name of the non-PIC object the libtool object file.
  49131. - # Only append if the libtool object file exists.
  49132. - test -z "$run" && cat >> ${libobj}T <<EOF
  49133. -# Name of the non-PIC object.
  49134. -non_pic_object='$objname'
  49135. -
  49136. -EOF
  49137. - else
  49138. - # Append the name of the non-PIC object the libtool object file.
  49139. - # Only append if the libtool object file exists.
  49140. - test -z "$run" && cat >> ${libobj}T <<EOF
  49141. -# Name of the non-PIC object.
  49142. -non_pic_object=none
  49143. -
  49144. -EOF
  49145. fi
  49146. - $run $mv "${libobj}T" "${libobj}"
  49147. + $opt_dry_run || {
  49148. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  49149. - # Unlock the critical section if it was locked
  49150. - if test "$need_locks" != no; then
  49151. - $run $rm "$lockfile"
  49152. - fi
  49153. + # Unlock the critical section if it was locked
  49154. + if test "$need_locks" != no; then
  49155. + removelist=$lockfile
  49156. + $RM "$lockfile"
  49157. + fi
  49158. + }
  49159. exit $EXIT_SUCCESS
  49160. - ;;
  49161. -
  49162. - # libtool link mode
  49163. - link | relink)
  49164. - modename="$modename: link"
  49165. - case $host in
  49166. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49167. - # It is impossible to link a dll without this setting, and
  49168. - # we shouldn't force the makefile maintainer to figure out
  49169. - # which system we are compiling for in order to pass an extra
  49170. - # flag for every libtool invocation.
  49171. - # allow_undefined=no
  49172. +}
  49173. - # FIXME: Unfortunately, there are problems with the above when trying
  49174. - # to make a dll which has undefined symbols, in which case not
  49175. - # even a static library is built. For now, we need to specify
  49176. - # -no-undefined on the libtool link line when we can be certain
  49177. - # that all symbols are satisfied, otherwise we get a static library.
  49178. - allow_undefined=yes
  49179. - ;;
  49180. - *)
  49181. - allow_undefined=yes
  49182. - ;;
  49183. - esac
  49184. - libtool_args="$nonopt"
  49185. - base_compile="$nonopt $@"
  49186. - compile_command="$nonopt"
  49187. - finalize_command="$nonopt"
  49188. +$opt_help || {
  49189. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  49190. +}
  49191. - compile_rpath=
  49192. - finalize_rpath=
  49193. - compile_shlibpath=
  49194. - finalize_shlibpath=
  49195. - convenience=
  49196. - old_convenience=
  49197. - deplibs=
  49198. - old_deplibs=
  49199. - compiler_flags=
  49200. - linker_flags=
  49201. - dllsearchpath=
  49202. - lib_search_path=`pwd`
  49203. - inst_prefix_dir=
  49204. +func_mode_help ()
  49205. +{
  49206. + # We need to display help for each of the modes.
  49207. + case $mode in
  49208. + "")
  49209. + # Generic help is extracted from the usage comments
  49210. + # at the start of this file.
  49211. + func_help
  49212. + ;;
  49213. - avoid_version=no
  49214. - dlfiles=
  49215. - dlprefiles=
  49216. - dlself=no
  49217. - export_dynamic=no
  49218. - export_symbols=
  49219. - export_symbols_regex=
  49220. - generated=
  49221. - libobjs=
  49222. - ltlibs=
  49223. - module=no
  49224. - no_install=no
  49225. - objs=
  49226. - non_pic_objects=
  49227. - notinst_path= # paths that contain not-installed libtool libraries
  49228. - precious_files_regex=
  49229. - prefer_static_libs=no
  49230. - preload=no
  49231. - prev=
  49232. - prevarg=
  49233. - release=
  49234. - rpath=
  49235. - xrpath=
  49236. - perm_rpath=
  49237. - temp_rpath=
  49238. - thread_safe=no
  49239. - vinfo=
  49240. - vinfo_number=no
  49241. + clean)
  49242. + $ECHO \
  49243. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  49244. - func_infer_tag $base_compile
  49245. +Remove files from the build directory.
  49246. - # We need to know -static, to get the right output filenames.
  49247. - for arg
  49248. - do
  49249. - case $arg in
  49250. - -all-static | -static)
  49251. - if test "X$arg" = "X-all-static"; then
  49252. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  49253. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  49254. - fi
  49255. - if test -n "$link_static_flag"; then
  49256. - dlopen_self=$dlopen_self_static
  49257. - fi
  49258. - prefer_static_libs=yes
  49259. - else
  49260. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49261. - dlopen_self=$dlopen_self_static
  49262. - fi
  49263. - prefer_static_libs=built
  49264. - fi
  49265. - build_libtool_libs=no
  49266. - build_old_libs=yes
  49267. - break
  49268. - ;;
  49269. - esac
  49270. - done
  49271. +RM is the name of the program to use to delete files associated with each FILE
  49272. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49273. +to RM.
  49274. - # See if our shared archives depend on static archives.
  49275. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  49276. +If FILE is a libtool library, object or program, all the files associated
  49277. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  49278. + ;;
  49279. - # Go through the arguments, transforming them on the way.
  49280. - while test "$#" -gt 0; do
  49281. - arg="$1"
  49282. - shift
  49283. - case $arg in
  49284. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49285. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  49286. - ;;
  49287. - *) qarg=$arg ;;
  49288. - esac
  49289. - libtool_args="$libtool_args $qarg"
  49290. + compile)
  49291. + $ECHO \
  49292. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  49293. - # If the previous option needs an argument, assign it.
  49294. - if test -n "$prev"; then
  49295. - case $prev in
  49296. - output)
  49297. - compile_command="$compile_command @OUTPUT@"
  49298. - finalize_command="$finalize_command @OUTPUT@"
  49299. - ;;
  49300. - esac
  49301. +Compile a source file into a libtool library object.
  49302. - case $prev in
  49303. - dlfiles|dlprefiles)
  49304. - if test "$preload" = no; then
  49305. - # Add the symbol object into the linking commands.
  49306. - compile_command="$compile_command @SYMFILE@"
  49307. - finalize_command="$finalize_command @SYMFILE@"
  49308. - preload=yes
  49309. - fi
  49310. - case $arg in
  49311. - *.la | *.lo) ;; # We handle these cases below.
  49312. - force)
  49313. - if test "$dlself" = no; then
  49314. - dlself=needless
  49315. - export_dynamic=yes
  49316. - fi
  49317. - prev=
  49318. - continue
  49319. - ;;
  49320. - self)
  49321. - if test "$prev" = dlprefiles; then
  49322. - dlself=yes
  49323. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  49324. - dlself=yes
  49325. - else
  49326. - dlself=needless
  49327. - export_dynamic=yes
  49328. - fi
  49329. - prev=
  49330. - continue
  49331. - ;;
  49332. - *)
  49333. - if test "$prev" = dlfiles; then
  49334. - dlfiles="$dlfiles $arg"
  49335. - else
  49336. - dlprefiles="$dlprefiles $arg"
  49337. - fi
  49338. - prev=
  49339. - continue
  49340. - ;;
  49341. - esac
  49342. - ;;
  49343. - expsyms)
  49344. - export_symbols="$arg"
  49345. - if test ! -f "$arg"; then
  49346. - $echo "$modename: symbol file \`$arg' does not exist"
  49347. - exit $EXIT_FAILURE
  49348. - fi
  49349. - prev=
  49350. - continue
  49351. - ;;
  49352. - expsyms_regex)
  49353. - export_symbols_regex="$arg"
  49354. - prev=
  49355. - continue
  49356. - ;;
  49357. - inst_prefix)
  49358. - inst_prefix_dir="$arg"
  49359. - prev=
  49360. - continue
  49361. - ;;
  49362. - precious_regex)
  49363. - precious_files_regex="$arg"
  49364. - prev=
  49365. - continue
  49366. - ;;
  49367. - release)
  49368. - release="-$arg"
  49369. - prev=
  49370. - continue
  49371. - ;;
  49372. - objectlist)
  49373. - if test -f "$arg"; then
  49374. - save_arg=$arg
  49375. - moreargs=
  49376. - for fil in `cat $save_arg`
  49377. - do
  49378. -# moreargs="$moreargs $fil"
  49379. - arg=$fil
  49380. - # A libtool-controlled object.
  49381. +This mode accepts the following additional options:
  49382. - # Check to see that this really is a libtool object.
  49383. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49384. - pic_object=
  49385. - non_pic_object=
  49386. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  49387. + -no-suppress do not suppress compiler output for multiple passes
  49388. + -prefer-pic try to building PIC objects only
  49389. + -prefer-non-pic try to building non-PIC objects only
  49390. + -shared do not build a \`.o' file suitable for static linking
  49391. + -static only build a \`.o' file suitable for static linking
  49392. - # Read the .lo file
  49393. - # If there is no directory component, then add one.
  49394. - case $arg in
  49395. - */* | *\\*) . $arg ;;
  49396. - *) . ./$arg ;;
  49397. - esac
  49398. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  49399. +from the given SOURCEFILE.
  49400. - if test -z "$pic_object" || \
  49401. - test -z "$non_pic_object" ||
  49402. - test "$pic_object" = none && \
  49403. - test "$non_pic_object" = none; then
  49404. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  49405. - exit $EXIT_FAILURE
  49406. - fi
  49407. +The output file name is determined by removing the directory component from
  49408. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  49409. +library object suffix, \`.lo'."
  49410. + ;;
  49411. - # Extract subdirectory from the argument.
  49412. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49413. - if test "X$xdir" = "X$arg"; then
  49414. - xdir=
  49415. - else
  49416. - xdir="$xdir/"
  49417. - fi
  49418. + execute)
  49419. + $ECHO \
  49420. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  49421. - if test "$pic_object" != none; then
  49422. - # Prepend the subdirectory the object is found in.
  49423. - pic_object="$xdir$pic_object"
  49424. +Automatically set library path, then run a program.
  49425. - if test "$prev" = dlfiles; then
  49426. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  49427. - dlfiles="$dlfiles $pic_object"
  49428. - prev=
  49429. - continue
  49430. - else
  49431. - # If libtool objects are unsupported, then we need to preload.
  49432. - prev=dlprefiles
  49433. - fi
  49434. - fi
  49435. +This mode accepts the following additional options:
  49436. - # CHECK ME: I think I busted this. -Ossama
  49437. - if test "$prev" = dlprefiles; then
  49438. - # Preload the old-style object.
  49439. - dlprefiles="$dlprefiles $pic_object"
  49440. - prev=
  49441. - fi
  49442. + -dlopen FILE add the directory containing FILE to the library path
  49443. - # A PIC object.
  49444. - libobjs="$libobjs $pic_object"
  49445. - arg="$pic_object"
  49446. - fi
  49447. +This mode sets the library path environment variable according to \`-dlopen'
  49448. +flags.
  49449. - # Non-PIC object.
  49450. - if test "$non_pic_object" != none; then
  49451. - # Prepend the subdirectory the object is found in.
  49452. - non_pic_object="$xdir$non_pic_object"
  49453. +If any of the ARGS are libtool executable wrappers, then they are translated
  49454. +into their corresponding uninstalled binary, and any of their required library
  49455. +directories are added to the library path.
  49456. - # A standard non-PIC object
  49457. - non_pic_objects="$non_pic_objects $non_pic_object"
  49458. - if test -z "$pic_object" || test "$pic_object" = none ; then
  49459. - arg="$non_pic_object"
  49460. - fi
  49461. - else
  49462. - # If the PIC object exists, use it instead.
  49463. - # $xdir was prepended to $pic_object above.
  49464. - non_pic_object="$pic_object"
  49465. - non_pic_objects="$non_pic_objects $non_pic_object"
  49466. - fi
  49467. - else
  49468. - # Only an error if not doing a dry-run.
  49469. - if test -z "$run"; then
  49470. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  49471. - exit $EXIT_FAILURE
  49472. - else
  49473. - # Dry-run case.
  49474. +Then, COMMAND is executed, with ARGS as arguments."
  49475. + ;;
  49476. - # Extract subdirectory from the argument.
  49477. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49478. - if test "X$xdir" = "X$arg"; then
  49479. - xdir=
  49480. - else
  49481. - xdir="$xdir/"
  49482. - fi
  49483. + finish)
  49484. + $ECHO \
  49485. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  49486. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  49487. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  49488. - libobjs="$libobjs $pic_object"
  49489. - non_pic_objects="$non_pic_objects $non_pic_object"
  49490. - fi
  49491. - fi
  49492. - done
  49493. - else
  49494. - $echo "$modename: link input file \`$save_arg' does not exist"
  49495. - exit $EXIT_FAILURE
  49496. - fi
  49497. - arg=$save_arg
  49498. - prev=
  49499. - continue
  49500. - ;;
  49501. - rpath | xrpath)
  49502. - # We need an absolute path.
  49503. - case $arg in
  49504. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49505. - *)
  49506. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  49507. - exit $EXIT_FAILURE
  49508. - ;;
  49509. - esac
  49510. - if test "$prev" = rpath; then
  49511. - case "$rpath " in
  49512. - *" $arg "*) ;;
  49513. - *) rpath="$rpath $arg" ;;
  49514. - esac
  49515. - else
  49516. - case "$xrpath " in
  49517. - *" $arg "*) ;;
  49518. - *) xrpath="$xrpath $arg" ;;
  49519. - esac
  49520. - fi
  49521. - prev=
  49522. - continue
  49523. - ;;
  49524. - xcompiler)
  49525. - compiler_flags="$compiler_flags $qarg"
  49526. - prev=
  49527. - compile_command="$compile_command $qarg"
  49528. - finalize_command="$finalize_command $qarg"
  49529. - continue
  49530. - ;;
  49531. - xlinker)
  49532. - linker_flags="$linker_flags $qarg"
  49533. - compiler_flags="$compiler_flags $wl$qarg"
  49534. - prev=
  49535. - compile_command="$compile_command $wl$qarg"
  49536. - finalize_command="$finalize_command $wl$qarg"
  49537. - continue
  49538. - ;;
  49539. - xcclinker)
  49540. - linker_flags="$linker_flags $qarg"
  49541. - compiler_flags="$compiler_flags $qarg"
  49542. - prev=
  49543. - compile_command="$compile_command $qarg"
  49544. - finalize_command="$finalize_command $qarg"
  49545. - continue
  49546. - ;;
  49547. - shrext)
  49548. - shrext_cmds="$arg"
  49549. - prev=
  49550. - continue
  49551. - ;;
  49552. - darwin_framework|darwin_framework_skip)
  49553. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  49554. - compile_command="$compile_command $arg"
  49555. - finalize_command="$finalize_command $arg"
  49556. - prev=
  49557. - continue
  49558. - ;;
  49559. - *)
  49560. - eval "$prev=\"\$arg\""
  49561. - prev=
  49562. - continue
  49563. - ;;
  49564. - esac
  49565. - fi # test -n "$prev"
  49566. +Complete the installation of libtool libraries.
  49567. - prevarg="$arg"
  49568. +Each LIBDIR is a directory that contains libtool libraries.
  49569. - case $arg in
  49570. - -all-static)
  49571. - if test -n "$link_static_flag"; then
  49572. - compile_command="$compile_command $link_static_flag"
  49573. - finalize_command="$finalize_command $link_static_flag"
  49574. - fi
  49575. - continue
  49576. - ;;
  49577. +The commands that this mode executes may require superuser privileges. Use
  49578. +the \`--dry-run' option if you just want to see what would be executed."
  49579. + ;;
  49580. - -allow-undefined)
  49581. - # FIXME: remove this flag sometime in the future.
  49582. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  49583. - continue
  49584. - ;;
  49585. + install)
  49586. + $ECHO \
  49587. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  49588. - -avoid-version)
  49589. - avoid_version=yes
  49590. - continue
  49591. - ;;
  49592. +Install executables or libraries.
  49593. - -dlopen)
  49594. - prev=dlfiles
  49595. - continue
  49596. - ;;
  49597. +INSTALL-COMMAND is the installation command. The first component should be
  49598. +either the \`install' or \`cp' program.
  49599. - -dlpreopen)
  49600. - prev=dlprefiles
  49601. - continue
  49602. - ;;
  49603. +The following components of INSTALL-COMMAND are treated specially:
  49604. - -export-dynamic)
  49605. - export_dynamic=yes
  49606. - continue
  49607. - ;;
  49608. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  49609. - -export-symbols | -export-symbols-regex)
  49610. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  49611. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  49612. - exit $EXIT_FAILURE
  49613. - fi
  49614. - if test "X$arg" = "X-export-symbols"; then
  49615. - prev=expsyms
  49616. - else
  49617. - prev=expsyms_regex
  49618. - fi
  49619. - continue
  49620. - ;;
  49621. +The rest of the components are interpreted as arguments to that command (only
  49622. +BSD-compatible install options are recognized)."
  49623. + ;;
  49624. - -framework|-arch|-isysroot)
  49625. - case " $CC " in
  49626. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  49627. - prev=darwin_framework_skip ;;
  49628. - *) compiler_flags="$compiler_flags $arg"
  49629. - prev=darwin_framework ;;
  49630. - esac
  49631. - compile_command="$compile_command $arg"
  49632. - finalize_command="$finalize_command $arg"
  49633. - continue
  49634. - ;;
  49635. + link)
  49636. + $ECHO \
  49637. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  49638. - -inst-prefix-dir)
  49639. - prev=inst_prefix
  49640. - continue
  49641. - ;;
  49642. +Link object files or libraries together to form another library, or to
  49643. +create an executable program.
  49644. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  49645. - # so, if we see these flags be careful not to treat them like -L
  49646. - -L[A-Z][A-Z]*:*)
  49647. - case $with_gcc/$host in
  49648. - no/*-*-irix* | /*-*-irix*)
  49649. - compile_command="$compile_command $arg"
  49650. - finalize_command="$finalize_command $arg"
  49651. - ;;
  49652. - esac
  49653. - continue
  49654. - ;;
  49655. +LINK-COMMAND is a command using the C compiler that you would use to create
  49656. +a program from several object files.
  49657. - -L*)
  49658. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  49659. - # We need an absolute path.
  49660. - case $dir in
  49661. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49662. - *)
  49663. - absdir=`cd "$dir" && pwd`
  49664. - if test -z "$absdir"; then
  49665. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  49666. - absdir="$dir"
  49667. - notinst_path="$notinst_path $dir"
  49668. - fi
  49669. - dir="$absdir"
  49670. - ;;
  49671. - esac
  49672. - case "$deplibs " in
  49673. - *" -L$dir "*) ;;
  49674. - *)
  49675. - deplibs="$deplibs -L$dir"
  49676. - lib_search_path="$lib_search_path $dir"
  49677. - ;;
  49678. - esac
  49679. - case $host in
  49680. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49681. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  49682. - case :$dllsearchpath: in
  49683. - *":$dir:"*) ;;
  49684. - *) dllsearchpath="$dllsearchpath:$dir";;
  49685. - esac
  49686. - case :$dllsearchpath: in
  49687. - *":$testbindir:"*) ;;
  49688. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  49689. - esac
  49690. - ;;
  49691. - esac
  49692. - continue
  49693. - ;;
  49694. +The following components of LINK-COMMAND are treated specially:
  49695. - -l*)
  49696. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  49697. - case $host in
  49698. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  49699. - # These systems don't actually have a C or math library (as such)
  49700. - continue
  49701. - ;;
  49702. - *-*-os2*)
  49703. - # These systems don't actually have a C library (as such)
  49704. - test "X$arg" = "X-lc" && continue
  49705. - ;;
  49706. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  49707. - # Do not include libc due to us having libc/libc_r.
  49708. - test "X$arg" = "X-lc" && continue
  49709. - ;;
  49710. - *-*-rhapsody* | *-*-darwin1.[012])
  49711. - # Rhapsody C and math libraries are in the System framework
  49712. - deplibs="$deplibs -framework System"
  49713. - continue
  49714. - ;;
  49715. - *-*-sco3.2v5* | *-*-sco5v6*)
  49716. - # Causes problems with __ctype
  49717. - test "X$arg" = "X-lc" && continue
  49718. - ;;
  49719. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  49720. - # Compiler inserts libc in the correct place for threads to work
  49721. - test "X$arg" = "X-lc" && continue
  49722. - ;;
  49723. - esac
  49724. - elif test "X$arg" = "X-lc_r"; then
  49725. - case $host in
  49726. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  49727. - # Do not include libc_r directly, use -pthread flag.
  49728. - continue
  49729. - ;;
  49730. - esac
  49731. - fi
  49732. - deplibs="$deplibs $arg"
  49733. - continue
  49734. - ;;
  49735. + -all-static do not do any dynamic linking at all
  49736. + -avoid-version do not add a version suffix if possible
  49737. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  49738. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  49739. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  49740. + -export-symbols SYMFILE
  49741. + try to export only the symbols listed in SYMFILE
  49742. + -export-symbols-regex REGEX
  49743. + try to export only the symbols matching REGEX
  49744. + -LLIBDIR search LIBDIR for required installed libraries
  49745. + -lNAME OUTPUT-FILE requires the installed library libNAME
  49746. + -module build a library that can dlopened
  49747. + -no-fast-install disable the fast-install mode
  49748. + -no-install link a not-installable executable
  49749. + -no-undefined declare that a library does not refer to external symbols
  49750. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  49751. + -objectlist FILE Use a list of object files found in FILE to specify objects
  49752. + -precious-files-regex REGEX
  49753. + don't remove output files matching REGEX
  49754. + -release RELEASE specify package release information
  49755. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  49756. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  49757. + -shared only do dynamic linking of libtool libraries
  49758. + -shrext SUFFIX override the standard shared library file extension
  49759. + -static do not do any dynamic linking of uninstalled libtool libraries
  49760. + -static-libtool-libs
  49761. + do not do any dynamic linking of libtool libraries
  49762. + -version-info CURRENT[:REVISION[:AGE]]
  49763. + specify library version info [each variable defaults to 0]
  49764. + -weak LIBNAME declare that the target provides the LIBNAME interface
  49765. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  49766. - # classes, name mangling, and exception handling.
  49767. - -model)
  49768. - compile_command="$compile_command $arg"
  49769. - compiler_flags="$compiler_flags $arg"
  49770. - finalize_command="$finalize_command $arg"
  49771. - prev=xcompiler
  49772. - continue
  49773. - ;;
  49774. +All other options (arguments beginning with \`-') are ignored.
  49775. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  49776. - compiler_flags="$compiler_flags $arg"
  49777. - compile_command="$compile_command $arg"
  49778. - finalize_command="$finalize_command $arg"
  49779. - continue
  49780. - ;;
  49781. +Every other argument is treated as a filename. Files ending in \`.la' are
  49782. +treated as uninstalled libtool libraries, other files are standard or library
  49783. +object files.
  49784. - -module)
  49785. - module=yes
  49786. - continue
  49787. - ;;
  49788. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  49789. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  49790. +required, except when creating a convenience library.
  49791. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  49792. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  49793. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  49794. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  49795. - # -q* pass through compiler args for the IBM compiler
  49796. - # -m* pass through architecture-specific compiler args for GCC
  49797. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  49798. - # compiler args for GCC
  49799. - # -pg pass through profiling flag for GCC
  49800. - # @file GCC response files
  49801. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  49802. - -t[45]*|-txscale*|@*)
  49803. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  49804. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  49805. - # Unknown arguments in both finalize_command and compile_command need
  49806. - # to be aesthetically quoted because they are evaled later.
  49807. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  49808. - case $arg in
  49809. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49810. - arg="\"$arg\""
  49811. - ;;
  49812. - esac
  49813. - compile_command="$compile_command $arg"
  49814. - finalize_command="$finalize_command $arg"
  49815. - compiler_flags="$compiler_flags $arg"
  49816. - continue
  49817. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  49818. +is created, otherwise an executable program is created."
  49819. ;;
  49820. - -shrext)
  49821. - prev=shrext
  49822. - continue
  49823. - ;;
  49824. + uninstall)
  49825. + $ECHO \
  49826. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  49827. - -no-fast-install)
  49828. - fast_install=no
  49829. - continue
  49830. - ;;
  49831. +Remove libraries from an installation directory.
  49832. - -no-install)
  49833. - case $host in
  49834. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49835. - # The PATH hackery in wrapper scripts is required on Windows
  49836. - # in order for the loader to find any dlls it needs.
  49837. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  49838. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  49839. - fast_install=no
  49840. - ;;
  49841. - *) no_install=yes ;;
  49842. - esac
  49843. - continue
  49844. - ;;
  49845. +RM is the name of the program to use to delete files associated with each FILE
  49846. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49847. +to RM.
  49848. - -no-undefined)
  49849. - allow_undefined=no
  49850. - continue
  49851. - ;;
  49852. +If FILE is a libtool library, all the files associated with it are deleted.
  49853. +Otherwise, only FILE itself is deleted using RM."
  49854. + ;;
  49855. - -objectlist)
  49856. - prev=objectlist
  49857. - continue
  49858. - ;;
  49859. + *)
  49860. + func_fatal_help "invalid operation mode \`$mode'"
  49861. + ;;
  49862. + esac
  49863. - -o) prev=output ;;
  49864. + $ECHO
  49865. + $ECHO "Try \`$progname --help' for more information about other modes."
  49866. - -precious-files-regex)
  49867. - prev=precious_regex
  49868. - continue
  49869. - ;;
  49870. + exit $?
  49871. +}
  49872. - -release)
  49873. - prev=release
  49874. - continue
  49875. - ;;
  49876. + # Now that we've collected a possible --mode arg, show help if necessary
  49877. + $opt_help && func_mode_help
  49878. - -rpath)
  49879. - prev=rpath
  49880. - continue
  49881. - ;;
  49882. - -R)
  49883. - prev=xrpath
  49884. - continue
  49885. - ;;
  49886. +# func_mode_execute arg...
  49887. +func_mode_execute ()
  49888. +{
  49889. + $opt_debug
  49890. + # The first argument is the command name.
  49891. + cmd="$nonopt"
  49892. + test -z "$cmd" && \
  49893. + func_fatal_help "you must specify a COMMAND"
  49894. - -R*)
  49895. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  49896. - # We need an absolute path.
  49897. - case $dir in
  49898. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49899. - *)
  49900. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  49901. - exit $EXIT_FAILURE
  49902. - ;;
  49903. - esac
  49904. - case "$xrpath " in
  49905. - *" $dir "*) ;;
  49906. - *) xrpath="$xrpath $dir" ;;
  49907. - esac
  49908. - continue
  49909. - ;;
  49910. -
  49911. - -static)
  49912. - # The effects of -static are defined in a previous loop.
  49913. - # We used to do the same as -all-static on platforms that
  49914. - # didn't have a PIC flag, but the assumption that the effects
  49915. - # would be equivalent was wrong. It would break on at least
  49916. - # Digital Unix and AIX.
  49917. - continue
  49918. - ;;
  49919. + # Handle -dlopen flags immediately.
  49920. + for file in $execute_dlfiles; do
  49921. + test -f "$file" \
  49922. + || func_fatal_help "\`$file' is not a file"
  49923. - -thread-safe)
  49924. - thread_safe=yes
  49925. - continue
  49926. - ;;
  49927. + dir=
  49928. + case $file in
  49929. + *.la)
  49930. + # Check to see that this really is a libtool archive.
  49931. + func_lalib_unsafe_p "$file" \
  49932. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  49933. - -version-info)
  49934. - prev=vinfo
  49935. - continue
  49936. - ;;
  49937. - -version-number)
  49938. - prev=vinfo
  49939. - vinfo_number=yes
  49940. - continue
  49941. - ;;
  49942. + # Read the libtool library.
  49943. + dlname=
  49944. + library_names=
  49945. + func_source "$file"
  49946. - -Wc,*)
  49947. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  49948. - arg=
  49949. - save_ifs="$IFS"; IFS=','
  49950. - for flag in $args; do
  49951. - IFS="$save_ifs"
  49952. - case $flag in
  49953. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49954. - flag="\"$flag\""
  49955. - ;;
  49956. - esac
  49957. - arg="$arg $wl$flag"
  49958. - compiler_flags="$compiler_flags $flag"
  49959. - done
  49960. - IFS="$save_ifs"
  49961. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  49962. - ;;
  49963. + # Skip this library if it cannot be dlopened.
  49964. + if test -z "$dlname"; then
  49965. + # Warn if it was a shared library.
  49966. + test -n "$library_names" && \
  49967. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  49968. + continue
  49969. + fi
  49970. - -Wl,*)
  49971. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  49972. - arg=
  49973. - save_ifs="$IFS"; IFS=','
  49974. - for flag in $args; do
  49975. - IFS="$save_ifs"
  49976. - case $flag in
  49977. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49978. - flag="\"$flag\""
  49979. - ;;
  49980. - esac
  49981. - arg="$arg $wl$flag"
  49982. - compiler_flags="$compiler_flags $wl$flag"
  49983. - linker_flags="$linker_flags $flag"
  49984. - done
  49985. - IFS="$save_ifs"
  49986. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  49987. - ;;
  49988. + func_dirname "$file" "" "."
  49989. + dir="$func_dirname_result"
  49990. - -Xcompiler)
  49991. - prev=xcompiler
  49992. - continue
  49993. + if test -f "$dir/$objdir/$dlname"; then
  49994. + dir="$dir/$objdir"
  49995. + else
  49996. + if test ! -f "$dir/$dlname"; then
  49997. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  49998. + fi
  49999. + fi
  50000. ;;
  50001. - -Xlinker)
  50002. - prev=xlinker
  50003. - continue
  50004. + *.lo)
  50005. + # Just add the directory containing the .lo file.
  50006. + func_dirname "$file" "" "."
  50007. + dir="$func_dirname_result"
  50008. ;;
  50009. - -XCClinker)
  50010. - prev=xcclinker
  50011. + *)
  50012. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  50013. continue
  50014. ;;
  50015. + esac
  50016. - # Some other compiler flag.
  50017. - -* | +*)
  50018. - # Unknown arguments in both finalize_command and compile_command need
  50019. - # to be aesthetically quoted because they are evaled later.
  50020. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50021. - case $arg in
  50022. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50023. - arg="\"$arg\""
  50024. - ;;
  50025. - esac
  50026. - ;;
  50027. + # Get the absolute pathname.
  50028. + absdir=`cd "$dir" && pwd`
  50029. + test -n "$absdir" && dir="$absdir"
  50030. - *.$objext)
  50031. - # A standard object.
  50032. - objs="$objs $arg"
  50033. - ;;
  50034. + # Now add the directory to shlibpath_var.
  50035. + if eval "test -z \"\$$shlibpath_var\""; then
  50036. + eval "$shlibpath_var=\"\$dir\""
  50037. + else
  50038. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  50039. + fi
  50040. + done
  50041. - *.lo)
  50042. - # A libtool-controlled object.
  50043. + # This variable tells wrapper scripts just to set shlibpath_var
  50044. + # rather than running their programs.
  50045. + libtool_execute_magic="$magic"
  50046. - # Check to see that this really is a libtool object.
  50047. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50048. - pic_object=
  50049. - non_pic_object=
  50050. + # Check if any of the arguments is a wrapper script.
  50051. + args=
  50052. + for file
  50053. + do
  50054. + case $file in
  50055. + -*) ;;
  50056. + *)
  50057. + # Do a test to see if this is really a libtool program.
  50058. + if func_ltwrapper_script_p "$file"; then
  50059. + func_source "$file"
  50060. + # Transform arg to wrapped name.
  50061. + file="$progdir/$program"
  50062. + elif func_ltwrapper_executable_p "$file"; then
  50063. + func_ltwrapper_scriptname "$file"
  50064. + func_source "$func_ltwrapper_scriptname_result"
  50065. + # Transform arg to wrapped name.
  50066. + file="$progdir/$program"
  50067. + fi
  50068. + ;;
  50069. + esac
  50070. + # Quote arguments (to preserve shell metacharacters).
  50071. + func_quote_for_eval "$file"
  50072. + args="$args $func_quote_for_eval_result"
  50073. + done
  50074. - # Read the .lo file
  50075. - # If there is no directory component, then add one.
  50076. - case $arg in
  50077. - */* | *\\*) . $arg ;;
  50078. - *) . ./$arg ;;
  50079. - esac
  50080. + if test "X$opt_dry_run" = Xfalse; then
  50081. + if test -n "$shlibpath_var"; then
  50082. + # Export the shlibpath_var.
  50083. + eval "export $shlibpath_var"
  50084. + fi
  50085. - if test -z "$pic_object" || \
  50086. - test -z "$non_pic_object" ||
  50087. - test "$pic_object" = none && \
  50088. - test "$non_pic_object" = none; then
  50089. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  50090. - exit $EXIT_FAILURE
  50091. - fi
  50092. + # Restore saved environment variables
  50093. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  50094. + do
  50095. + eval "if test \"\${save_$lt_var+set}\" = set; then
  50096. + $lt_var=\$save_$lt_var; export $lt_var
  50097. + else
  50098. + $lt_unset $lt_var
  50099. + fi"
  50100. + done
  50101. - # Extract subdirectory from the argument.
  50102. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50103. - if test "X$xdir" = "X$arg"; then
  50104. - xdir=
  50105. - else
  50106. - xdir="$xdir/"
  50107. - fi
  50108. + # Now prepare to actually exec the command.
  50109. + exec_cmd="\$cmd$args"
  50110. + else
  50111. + # Display what would be done.
  50112. + if test -n "$shlibpath_var"; then
  50113. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  50114. + $ECHO "export $shlibpath_var"
  50115. + fi
  50116. + $ECHO "$cmd$args"
  50117. + exit $EXIT_SUCCESS
  50118. + fi
  50119. +}
  50120. - if test "$pic_object" != none; then
  50121. - # Prepend the subdirectory the object is found in.
  50122. - pic_object="$xdir$pic_object"
  50123. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  50124. - if test "$prev" = dlfiles; then
  50125. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  50126. - dlfiles="$dlfiles $pic_object"
  50127. - prev=
  50128. - continue
  50129. - else
  50130. - # If libtool objects are unsupported, then we need to preload.
  50131. - prev=dlprefiles
  50132. - fi
  50133. - fi
  50134. - # CHECK ME: I think I busted this. -Ossama
  50135. - if test "$prev" = dlprefiles; then
  50136. - # Preload the old-style object.
  50137. - dlprefiles="$dlprefiles $pic_object"
  50138. - prev=
  50139. - fi
  50140. +# func_mode_finish arg...
  50141. +func_mode_finish ()
  50142. +{
  50143. + $opt_debug
  50144. + libdirs="$nonopt"
  50145. + admincmds=
  50146. - # A PIC object.
  50147. - libobjs="$libobjs $pic_object"
  50148. - arg="$pic_object"
  50149. - fi
  50150. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  50151. + for dir
  50152. + do
  50153. + libdirs="$libdirs $dir"
  50154. + done
  50155. - # Non-PIC object.
  50156. - if test "$non_pic_object" != none; then
  50157. - # Prepend the subdirectory the object is found in.
  50158. - non_pic_object="$xdir$non_pic_object"
  50159. + for libdir in $libdirs; do
  50160. + if test -n "$finish_cmds"; then
  50161. + # Do each command in the finish commands.
  50162. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  50163. +'"$cmd"'"'
  50164. + fi
  50165. + if test -n "$finish_eval"; then
  50166. + # Do the single finish_eval.
  50167. + eval cmds=\"$finish_eval\"
  50168. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  50169. + $cmds"
  50170. + fi
  50171. + done
  50172. + fi
  50173. - # A standard non-PIC object
  50174. - non_pic_objects="$non_pic_objects $non_pic_object"
  50175. - if test -z "$pic_object" || test "$pic_object" = none ; then
  50176. - arg="$non_pic_object"
  50177. - fi
  50178. - else
  50179. - # If the PIC object exists, use it instead.
  50180. - # $xdir was prepended to $pic_object above.
  50181. - non_pic_object="$pic_object"
  50182. - non_pic_objects="$non_pic_objects $non_pic_object"
  50183. - fi
  50184. - else
  50185. - # Only an error if not doing a dry-run.
  50186. - if test -z "$run"; then
  50187. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  50188. - exit $EXIT_FAILURE
  50189. - else
  50190. - # Dry-run case.
  50191. + # Exit here if they wanted silent mode.
  50192. + $opt_silent && exit $EXIT_SUCCESS
  50193. - # Extract subdirectory from the argument.
  50194. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50195. - if test "X$xdir" = "X$arg"; then
  50196. - xdir=
  50197. - else
  50198. - xdir="$xdir/"
  50199. - fi
  50200. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  50201. + $ECHO "Libraries have been installed in:"
  50202. + for libdir in $libdirs; do
  50203. + $ECHO " $libdir"
  50204. + done
  50205. + $ECHO
  50206. + $ECHO "If you ever happen to want to link against installed libraries"
  50207. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  50208. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  50209. + $ECHO "flag during linking and do at least one of the following:"
  50210. + if test -n "$shlibpath_var"; then
  50211. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  50212. + $ECHO " during execution"
  50213. + fi
  50214. + if test -n "$runpath_var"; then
  50215. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  50216. + $ECHO " during linking"
  50217. + fi
  50218. + if test -n "$hardcode_libdir_flag_spec"; then
  50219. + libdir=LIBDIR
  50220. + eval flag=\"$hardcode_libdir_flag_spec\"
  50221. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  50222. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  50223. - libobjs="$libobjs $pic_object"
  50224. - non_pic_objects="$non_pic_objects $non_pic_object"
  50225. - fi
  50226. - fi
  50227. - ;;
  50228. + $ECHO " - use the \`$flag' linker flag"
  50229. + fi
  50230. + if test -n "$admincmds"; then
  50231. + $ECHO " - have your system administrator run these commands:$admincmds"
  50232. + fi
  50233. + if test -f /etc/ld.so.conf; then
  50234. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  50235. + fi
  50236. + $ECHO
  50237. - *.$libext)
  50238. - # An archive.
  50239. - deplibs="$deplibs $arg"
  50240. - old_deplibs="$old_deplibs $arg"
  50241. - continue
  50242. + $ECHO "See any operating system documentation about shared libraries for"
  50243. + case $host in
  50244. + solaris2.[6789]|solaris2.1[0-9])
  50245. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  50246. + $ECHO "pages."
  50247. ;;
  50248. + *)
  50249. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  50250. + ;;
  50251. + esac
  50252. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  50253. + exit $EXIT_SUCCESS
  50254. +}
  50255. - *.la)
  50256. - # A libtool-controlled library.
  50257. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  50258. - if test "$prev" = dlfiles; then
  50259. - # This library was specified with -dlopen.
  50260. - dlfiles="$dlfiles $arg"
  50261. - prev=
  50262. - elif test "$prev" = dlprefiles; then
  50263. - # The library was specified with -dlpreopen.
  50264. - dlprefiles="$dlprefiles $arg"
  50265. - prev=
  50266. - else
  50267. - deplibs="$deplibs $arg"
  50268. - fi
  50269. - continue
  50270. - ;;
  50271. - # Some other compiler argument.
  50272. - *)
  50273. - # Unknown arguments in both finalize_command and compile_command need
  50274. - # to be aesthetically quoted because they are evaled later.
  50275. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50276. - case $arg in
  50277. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50278. - arg="\"$arg\""
  50279. - ;;
  50280. - esac
  50281. - ;;
  50282. - esac # arg
  50283. +# func_mode_install arg...
  50284. +func_mode_install ()
  50285. +{
  50286. + $opt_debug
  50287. + # There may be an optional sh(1) argument at the beginning of
  50288. + # install_prog (especially on Windows NT).
  50289. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  50290. + # Allow the use of GNU shtool's install command.
  50291. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  50292. + # Aesthetically quote it.
  50293. + func_quote_for_eval "$nonopt"
  50294. + install_prog="$func_quote_for_eval_result "
  50295. + arg=$1
  50296. + shift
  50297. + else
  50298. + install_prog=
  50299. + arg=$nonopt
  50300. + fi
  50301. - # Now actually substitute the argument into the commands.
  50302. - if test -n "$arg"; then
  50303. - compile_command="$compile_command $arg"
  50304. - finalize_command="$finalize_command $arg"
  50305. + # The real first argument should be the name of the installation program.
  50306. + # Aesthetically quote it.
  50307. + func_quote_for_eval "$arg"
  50308. + install_prog="$install_prog$func_quote_for_eval_result"
  50309. +
  50310. + # We need to accept at least all the BSD install flags.
  50311. + dest=
  50312. + files=
  50313. + opts=
  50314. + prev=
  50315. + install_type=
  50316. + isdir=no
  50317. + stripme=
  50318. + for arg
  50319. + do
  50320. + if test -n "$dest"; then
  50321. + files="$files $dest"
  50322. + dest=$arg
  50323. + continue
  50324. fi
  50325. - done # argument parsing loop
  50326. - if test -n "$prev"; then
  50327. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  50328. - $echo "$help" 1>&2
  50329. - exit $EXIT_FAILURE
  50330. - fi
  50331. + case $arg in
  50332. + -d) isdir=yes ;;
  50333. + -f)
  50334. + case " $install_prog " in
  50335. + *[\\\ /]cp\ *) ;;
  50336. + *) prev=$arg ;;
  50337. + esac
  50338. + ;;
  50339. + -g | -m | -o)
  50340. + prev=$arg
  50341. + ;;
  50342. + -s)
  50343. + stripme=" -s"
  50344. + continue
  50345. + ;;
  50346. + -*)
  50347. + ;;
  50348. + *)
  50349. + # If the previous option needed an argument, then skip it.
  50350. + if test -n "$prev"; then
  50351. + prev=
  50352. + else
  50353. + dest=$arg
  50354. + continue
  50355. + fi
  50356. + ;;
  50357. + esac
  50358. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  50359. - eval arg=\"$export_dynamic_flag_spec\"
  50360. - compile_command="$compile_command $arg"
  50361. - finalize_command="$finalize_command $arg"
  50362. - fi
  50363. + # Aesthetically quote the argument.
  50364. + func_quote_for_eval "$arg"
  50365. + install_prog="$install_prog $func_quote_for_eval_result"
  50366. + done
  50367. - oldlibs=
  50368. - # calculate the name of the file, without its directory
  50369. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  50370. - libobjs_save="$libobjs"
  50371. + test -z "$install_prog" && \
  50372. + func_fatal_help "you must specify an install program"
  50373. - if test -n "$shlibpath_var"; then
  50374. - # get the directories listed in $shlibpath_var
  50375. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  50376. - else
  50377. - shlib_search_path=
  50378. - fi
  50379. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  50380. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  50381. + test -n "$prev" && \
  50382. + func_fatal_help "the \`$prev' option requires an argument"
  50383. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  50384. - if test "X$output_objdir" = "X$output"; then
  50385. - output_objdir="$objdir"
  50386. - else
  50387. - output_objdir="$output_objdir/$objdir"
  50388. - fi
  50389. - # Create the object directory.
  50390. - if test ! -d "$output_objdir"; then
  50391. - $show "$mkdir $output_objdir"
  50392. - $run $mkdir $output_objdir
  50393. - exit_status=$?
  50394. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  50395. - exit $exit_status
  50396. + if test -z "$files"; then
  50397. + if test -z "$dest"; then
  50398. + func_fatal_help "no file or destination specified"
  50399. + else
  50400. + func_fatal_help "you must specify a destination"
  50401. fi
  50402. fi
  50403. - # Determine the type of output
  50404. - case $output in
  50405. - "")
  50406. - $echo "$modename: you must specify an output file" 1>&2
  50407. - $echo "$help" 1>&2
  50408. - exit $EXIT_FAILURE
  50409. - ;;
  50410. - *.$libext) linkmode=oldlib ;;
  50411. - *.lo | *.$objext) linkmode=obj ;;
  50412. - *.la) linkmode=lib ;;
  50413. - *) linkmode=prog ;; # Anything else should be a program.
  50414. - esac
  50415. + # Strip any trailing slash from the destination.
  50416. + func_stripname '' '/' "$dest"
  50417. + dest=$func_stripname_result
  50418. - case $host in
  50419. - *cygwin* | *mingw* | *pw32*)
  50420. - # don't eliminate duplications in $postdeps and $predeps
  50421. - duplicate_compiler_generated_deps=yes
  50422. - ;;
  50423. + # Check to see that the destination is a directory.
  50424. + test -d "$dest" && isdir=yes
  50425. + if test "$isdir" = yes; then
  50426. + destdir="$dest"
  50427. + destname=
  50428. + else
  50429. + func_dirname_and_basename "$dest" "" "."
  50430. + destdir="$func_dirname_result"
  50431. + destname="$func_basename_result"
  50432. +
  50433. + # Not a directory, so check to see that there is only one file specified.
  50434. + set dummy $files; shift
  50435. + test "$#" -gt 1 && \
  50436. + func_fatal_help "\`$dest' is not a directory"
  50437. + fi
  50438. + case $destdir in
  50439. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  50440. *)
  50441. - duplicate_compiler_generated_deps=$duplicate_deps
  50442. + for file in $files; do
  50443. + case $file in
  50444. + *.lo) ;;
  50445. + *)
  50446. + func_fatal_help "\`$destdir' must be an absolute directory name"
  50447. + ;;
  50448. + esac
  50449. + done
  50450. ;;
  50451. esac
  50452. - specialdeplibs=
  50453. - libs=
  50454. - # Find all interdependent deplibs by searching for libraries
  50455. - # that are linked more than once (e.g. -la -lb -la)
  50456. - for deplib in $deplibs; do
  50457. - if test "X$duplicate_deps" = "Xyes" ; then
  50458. - case "$libs " in
  50459. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50460. - esac
  50461. - fi
  50462. - libs="$libs $deplib"
  50463. - done
  50464. + # This variable tells wrapper scripts just to set variables rather
  50465. + # than running their programs.
  50466. + libtool_install_magic="$magic"
  50467. - if test "$linkmode" = lib; then
  50468. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  50469. + staticlibs=
  50470. + future_libdirs=
  50471. + current_libdirs=
  50472. + for file in $files; do
  50473. - # Compute libraries that are listed more than once in $predeps
  50474. - # $postdeps and mark them as special (i.e., whose duplicates are
  50475. - # not to be eliminated).
  50476. - pre_post_deps=
  50477. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  50478. - for pre_post_dep in $predeps $postdeps; do
  50479. - case "$pre_post_deps " in
  50480. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  50481. + # Do each installation.
  50482. + case $file in
  50483. + *.$libext)
  50484. + # Do the static libraries later.
  50485. + staticlibs="$staticlibs $file"
  50486. + ;;
  50487. +
  50488. + *.la)
  50489. + # Check to see that this really is a libtool archive.
  50490. + func_lalib_unsafe_p "$file" \
  50491. + || func_fatal_help "\`$file' is not a valid libtool archive"
  50492. +
  50493. + library_names=
  50494. + old_library=
  50495. + relink_command=
  50496. + func_source "$file"
  50497. +
  50498. + # Add the libdir to current_libdirs if it is the destination.
  50499. + if test "X$destdir" = "X$libdir"; then
  50500. + case "$current_libdirs " in
  50501. + *" $libdir "*) ;;
  50502. + *) current_libdirs="$current_libdirs $libdir" ;;
  50503. esac
  50504. - pre_post_deps="$pre_post_deps $pre_post_dep"
  50505. - done
  50506. - fi
  50507. - pre_post_deps=
  50508. - fi
  50509. + else
  50510. + # Note the libdir as a future libdir.
  50511. + case "$future_libdirs " in
  50512. + *" $libdir "*) ;;
  50513. + *) future_libdirs="$future_libdirs $libdir" ;;
  50514. + esac
  50515. + fi
  50516. - deplibs=
  50517. - newdependency_libs=
  50518. - newlib_search_path=
  50519. - need_relink=no # whether we're linking any uninstalled libtool libraries
  50520. - notinst_deplibs= # not-installed libtool libraries
  50521. - case $linkmode in
  50522. - lib)
  50523. - passes="conv link"
  50524. - for file in $dlfiles $dlprefiles; do
  50525. - case $file in
  50526. - *.la) ;;
  50527. - *)
  50528. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  50529. - exit $EXIT_FAILURE
  50530. + func_dirname "$file" "/" ""
  50531. + dir="$func_dirname_result"
  50532. + dir="$dir$objdir"
  50533. +
  50534. + if test -n "$relink_command"; then
  50535. + # Determine the prefix the user has applied to our future dir.
  50536. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  50537. +
  50538. + # Don't allow the user to place us outside of our expected
  50539. + # location b/c this prevents finding dependent libraries that
  50540. + # are installed to the same prefix.
  50541. + # At present, this check doesn't affect windows .dll's that
  50542. + # are installed into $libdir/../bin (currently, that works fine)
  50543. + # but it's something to keep an eye on.
  50544. + test "$inst_prefix_dir" = "$destdir" && \
  50545. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  50546. +
  50547. + if test -n "$inst_prefix_dir"; then
  50548. + # Stick the inst_prefix_dir data into the link command.
  50549. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  50550. + else
  50551. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  50552. + fi
  50553. +
  50554. + func_warning "relinking \`$file'"
  50555. + func_show_eval "$relink_command" \
  50556. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  50557. + fi
  50558. +
  50559. + # See the names of the shared library.
  50560. + set dummy $library_names; shift
  50561. + if test -n "$1"; then
  50562. + realname="$1"
  50563. + shift
  50564. +
  50565. + srcname="$realname"
  50566. + test -n "$relink_command" && srcname="$realname"T
  50567. +
  50568. + # Install the shared library and build the symlinks.
  50569. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  50570. + 'exit $?'
  50571. + tstripme="$stripme"
  50572. + case $host_os in
  50573. + cygwin* | mingw* | pw32* | cegcc*)
  50574. + case $realname in
  50575. + *.dll.a)
  50576. + tstripme=""
  50577. + ;;
  50578. + esac
  50579. ;;
  50580. esac
  50581. - done
  50582. - ;;
  50583. - prog)
  50584. - compile_deplibs=
  50585. - finalize_deplibs=
  50586. - alldeplibs=no
  50587. - newdlfiles=
  50588. - newdlprefiles=
  50589. - passes="conv scan dlopen dlpreopen link"
  50590. - ;;
  50591. - *) passes="conv"
  50592. + if test -n "$tstripme" && test -n "$striplib"; then
  50593. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  50594. + fi
  50595. +
  50596. + if test "$#" -gt 0; then
  50597. + # Delete the old symlinks, and create new ones.
  50598. + # Try `ln -sf' first, because the `ln' binary might depend on
  50599. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  50600. + # so we also need to try rm && ln -s.
  50601. + for linkname
  50602. + do
  50603. + test "$linkname" != "$realname" \
  50604. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  50605. + done
  50606. + fi
  50607. +
  50608. + # Do each command in the postinstall commands.
  50609. + lib="$destdir/$realname"
  50610. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  50611. + fi
  50612. +
  50613. + # Install the pseudo-library for information purposes.
  50614. + func_basename "$file"
  50615. + name="$func_basename_result"
  50616. + instname="$dir/$name"i
  50617. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  50618. +
  50619. + # Maybe install the static library, too.
  50620. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  50621. ;;
  50622. - esac
  50623. - for pass in $passes; do
  50624. - if test "$linkmode,$pass" = "lib,link" ||
  50625. - test "$linkmode,$pass" = "prog,scan"; then
  50626. - libs="$deplibs"
  50627. - deplibs=
  50628. - fi
  50629. - if test "$linkmode" = prog; then
  50630. - case $pass in
  50631. - dlopen) libs="$dlfiles" ;;
  50632. - dlpreopen) libs="$dlprefiles" ;;
  50633. - link)
  50634. - libs="$deplibs %DEPLIBS%"
  50635. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  50636. +
  50637. + *.lo)
  50638. + # Install (i.e. copy) a libtool object.
  50639. +
  50640. + # Figure out destination file name, if it wasn't already specified.
  50641. + if test -n "$destname"; then
  50642. + destfile="$destdir/$destname"
  50643. + else
  50644. + func_basename "$file"
  50645. + destfile="$func_basename_result"
  50646. + destfile="$destdir/$destfile"
  50647. + fi
  50648. +
  50649. + # Deduce the name of the destination old-style object file.
  50650. + case $destfile in
  50651. + *.lo)
  50652. + func_lo2o "$destfile"
  50653. + staticdest=$func_lo2o_result
  50654. ;;
  50655. - esac
  50656. - fi
  50657. - if test "$pass" = dlopen; then
  50658. - # Collect dlpreopened libraries
  50659. - save_deplibs="$deplibs"
  50660. - deplibs=
  50661. - fi
  50662. - for deplib in $libs; do
  50663. - lib=
  50664. - found=no
  50665. - case $deplib in
  50666. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  50667. - if test "$linkmode,$pass" = "prog,link"; then
  50668. - compile_deplibs="$deplib $compile_deplibs"
  50669. - finalize_deplibs="$deplib $finalize_deplibs"
  50670. - else
  50671. - compiler_flags="$compiler_flags $deplib"
  50672. - fi
  50673. - continue
  50674. + *.$objext)
  50675. + staticdest="$destfile"
  50676. + destfile=
  50677. ;;
  50678. - -l*)
  50679. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  50680. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  50681. - continue
  50682. - fi
  50683. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  50684. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  50685. - for search_ext in .la $std_shrext .so .a; do
  50686. - # Search the libtool library
  50687. - lib="$searchdir/lib${name}${search_ext}"
  50688. - if test -f "$lib"; then
  50689. - if test "$search_ext" = ".la"; then
  50690. - found=yes
  50691. - else
  50692. - found=no
  50693. - fi
  50694. - break 2
  50695. - fi
  50696. - done
  50697. - done
  50698. - if test "$found" != yes; then
  50699. - # deplib doesn't seem to be a libtool library
  50700. - if test "$linkmode,$pass" = "prog,link"; then
  50701. - compile_deplibs="$deplib $compile_deplibs"
  50702. - finalize_deplibs="$deplib $finalize_deplibs"
  50703. - else
  50704. - deplibs="$deplib $deplibs"
  50705. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50706. - fi
  50707. - continue
  50708. - else # deplib is a libtool library
  50709. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  50710. - # We need to do some special things here, and not later.
  50711. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50712. - case " $predeps $postdeps " in
  50713. - *" $deplib "*)
  50714. - if (${SED} -e '2q' $lib |
  50715. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50716. - library_names=
  50717. - old_library=
  50718. - case $lib in
  50719. - */* | *\\*) . $lib ;;
  50720. - *) . ./$lib ;;
  50721. - esac
  50722. - for l in $old_library $library_names; do
  50723. - ll="$l"
  50724. - done
  50725. - if test "X$ll" = "X$old_library" ; then # only static version available
  50726. - found=no
  50727. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  50728. - test "X$ladir" = "X$lib" && ladir="."
  50729. - lib=$ladir/$old_library
  50730. - if test "$linkmode,$pass" = "prog,link"; then
  50731. - compile_deplibs="$deplib $compile_deplibs"
  50732. - finalize_deplibs="$deplib $finalize_deplibs"
  50733. - else
  50734. - deplibs="$deplib $deplibs"
  50735. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50736. - fi
  50737. - continue
  50738. - fi
  50739. - fi
  50740. - ;;
  50741. - *) ;;
  50742. - esac
  50743. + *)
  50744. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  50745. + ;;
  50746. + esac
  50747. +
  50748. + # Install the libtool object if requested.
  50749. + test -n "$destfile" && \
  50750. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  50751. +
  50752. + # Install the old object if enabled.
  50753. + if test "$build_old_libs" = yes; then
  50754. + # Deduce the name of the old-style object file.
  50755. + func_lo2o "$file"
  50756. + staticobj=$func_lo2o_result
  50757. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  50758. + fi
  50759. + exit $EXIT_SUCCESS
  50760. + ;;
  50761. +
  50762. + *)
  50763. + # Figure out destination file name, if it wasn't already specified.
  50764. + if test -n "$destname"; then
  50765. + destfile="$destdir/$destname"
  50766. + else
  50767. + func_basename "$file"
  50768. + destfile="$func_basename_result"
  50769. + destfile="$destdir/$destfile"
  50770. + fi
  50771. +
  50772. + # If the file is missing, and there is a .exe on the end, strip it
  50773. + # because it is most likely a libtool script we actually want to
  50774. + # install
  50775. + stripped_ext=""
  50776. + case $file in
  50777. + *.exe)
  50778. + if test ! -f "$file"; then
  50779. + func_stripname '' '.exe' "$file"
  50780. + file=$func_stripname_result
  50781. + stripped_ext=".exe"
  50782. fi
  50783. - fi
  50784. - ;; # -l
  50785. - -L*)
  50786. - case $linkmode in
  50787. - lib)
  50788. - deplibs="$deplib $deplibs"
  50789. - test "$pass" = conv && continue
  50790. - newdependency_libs="$deplib $newdependency_libs"
  50791. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  50792. ;;
  50793. - prog)
  50794. - if test "$pass" = conv; then
  50795. - deplibs="$deplib $deplibs"
  50796. - continue
  50797. - fi
  50798. - if test "$pass" = scan; then
  50799. - deplibs="$deplib $deplibs"
  50800. + esac
  50801. +
  50802. + # Do a test to see if this is really a libtool program.
  50803. + case $host in
  50804. + *cygwin* | *mingw*)
  50805. + if func_ltwrapper_executable_p "$file"; then
  50806. + func_ltwrapper_scriptname "$file"
  50807. + wrapper=$func_ltwrapper_scriptname_result
  50808. else
  50809. - compile_deplibs="$deplib $compile_deplibs"
  50810. - finalize_deplibs="$deplib $finalize_deplibs"
  50811. + func_stripname '' '.exe' "$file"
  50812. + wrapper=$func_stripname_result
  50813. fi
  50814. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  50815. ;;
  50816. - *)
  50817. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  50818. - ;;
  50819. - esac # linkmode
  50820. - continue
  50821. - ;; # -L
  50822. - -R*)
  50823. - if test "$pass" = link; then
  50824. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  50825. - # Make sure the xrpath contains only unique directories.
  50826. - case "$xrpath " in
  50827. - *" $dir "*) ;;
  50828. - *) xrpath="$xrpath $dir" ;;
  50829. - esac
  50830. - fi
  50831. - deplibs="$deplib $deplibs"
  50832. - continue
  50833. - ;;
  50834. - *.la) lib="$deplib" ;;
  50835. - *.$libext)
  50836. - if test "$pass" = conv; then
  50837. - deplibs="$deplib $deplibs"
  50838. - continue
  50839. - fi
  50840. - case $linkmode in
  50841. - lib)
  50842. - valid_a_lib=no
  50843. - case $deplibs_check_method in
  50844. - match_pattern*)
  50845. - set dummy $deplibs_check_method
  50846. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  50847. - if eval $echo \"$deplib\" 2>/dev/null \
  50848. - | $SED 10q \
  50849. - | $EGREP "$match_pattern_regex" > /dev/null; then
  50850. - valid_a_lib=yes
  50851. - fi
  50852. - ;;
  50853. - pass_all)
  50854. - valid_a_lib=yes
  50855. - ;;
  50856. - esac
  50857. - if test "$valid_a_lib" != yes; then
  50858. - $echo
  50859. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  50860. - $echo "*** I have the capability to make that library automatically link in when"
  50861. - $echo "*** you link to this library. But I can only do this if you have a"
  50862. - $echo "*** shared version of the library, which you do not appear to have"
  50863. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  50864. - $echo "*** that it is just a static archive that I should not used here."
  50865. - else
  50866. - $echo
  50867. - $echo "*** Warning: Linking the shared library $output against the"
  50868. - $echo "*** static library $deplib is not portable!"
  50869. - deplibs="$deplib $deplibs"
  50870. - fi
  50871. - continue
  50872. + *)
  50873. + wrapper=$file
  50874. ;;
  50875. - prog)
  50876. - if test "$pass" != link; then
  50877. - deplibs="$deplib $deplibs"
  50878. - else
  50879. - compile_deplibs="$deplib $compile_deplibs"
  50880. - finalize_deplibs="$deplib $finalize_deplibs"
  50881. + esac
  50882. + if func_ltwrapper_script_p "$wrapper"; then
  50883. + notinst_deplibs=
  50884. + relink_command=
  50885. +
  50886. + func_source "$wrapper"
  50887. +
  50888. + # Check the variables that should have been set.
  50889. + test -z "$generated_by_libtool_version" && \
  50890. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  50891. +
  50892. + finalize=yes
  50893. + for lib in $notinst_deplibs; do
  50894. + # Check to see that each library is installed.
  50895. + libdir=
  50896. + if test -f "$lib"; then
  50897. + func_source "$lib"
  50898. fi
  50899. - continue
  50900. - ;;
  50901. - esac # linkmode
  50902. - ;; # *.$libext
  50903. - *.lo | *.$objext)
  50904. - if test "$pass" = conv; then
  50905. - deplibs="$deplib $deplibs"
  50906. - elif test "$linkmode" = prog; then
  50907. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  50908. - # If there is no dlopen support or we're linking statically,
  50909. - # we need to preload.
  50910. - newdlprefiles="$newdlprefiles $deplib"
  50911. - compile_deplibs="$deplib $compile_deplibs"
  50912. - finalize_deplibs="$deplib $finalize_deplibs"
  50913. - else
  50914. - newdlfiles="$newdlfiles $deplib"
  50915. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  50916. + if test -n "$libdir" && test ! -f "$libfile"; then
  50917. + func_warning "\`$lib' has not been installed in \`$libdir'"
  50918. + finalize=no
  50919. fi
  50920. + done
  50921. +
  50922. + relink_command=
  50923. + func_source "$wrapper"
  50924. +
  50925. + outputname=
  50926. + if test "$fast_install" = no && test -n "$relink_command"; then
  50927. + $opt_dry_run || {
  50928. + if test "$finalize" = yes; then
  50929. + tmpdir=`func_mktempdir`
  50930. + func_basename "$file$stripped_ext"
  50931. + file="$func_basename_result"
  50932. + outputname="$tmpdir/$file"
  50933. + # Replace the output file specification.
  50934. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  50935. +
  50936. + $opt_silent || {
  50937. + func_quote_for_expand "$relink_command"
  50938. + eval "func_echo $func_quote_for_expand_result"
  50939. + }
  50940. + if eval "$relink_command"; then :
  50941. + else
  50942. + func_error "error: relink \`$file' with the above command before installing it"
  50943. + $opt_dry_run || ${RM}r "$tmpdir"
  50944. + continue
  50945. + fi
  50946. + file="$outputname"
  50947. + else
  50948. + func_warning "cannot relink \`$file'"
  50949. + fi
  50950. + }
  50951. + else
  50952. + # Install the binary that we compiled earlier.
  50953. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  50954. fi
  50955. - continue
  50956. - ;;
  50957. - %DEPLIBS%)
  50958. - alldeplibs=yes
  50959. - continue
  50960. - ;;
  50961. - esac # case $deplib
  50962. - if test "$found" = yes || test -f "$lib"; then :
  50963. - else
  50964. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  50965. - exit $EXIT_FAILURE
  50966. fi
  50967. - # Check to see that this really is a libtool archive.
  50968. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  50969. - else
  50970. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  50971. - exit $EXIT_FAILURE
  50972. + # remove .exe since cygwin /usr/bin/install will append another
  50973. + # one anyway
  50974. + case $install_prog,$host in
  50975. + */usr/bin/install*,*cygwin*)
  50976. + case $file:$destfile in
  50977. + *.exe:*.exe)
  50978. + # this is ok
  50979. + ;;
  50980. + *.exe:*)
  50981. + destfile=$destfile.exe
  50982. + ;;
  50983. + *:*.exe)
  50984. + func_stripname '' '.exe' "$destfile"
  50985. + destfile=$func_stripname_result
  50986. + ;;
  50987. + esac
  50988. + ;;
  50989. + esac
  50990. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  50991. + $opt_dry_run || if test -n "$outputname"; then
  50992. + ${RM}r "$tmpdir"
  50993. fi
  50994. + ;;
  50995. + esac
  50996. + done
  50997. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  50998. - test "X$ladir" = "X$lib" && ladir="."
  50999. + for file in $staticlibs; do
  51000. + func_basename "$file"
  51001. + name="$func_basename_result"
  51002. - dlname=
  51003. - dlopen=
  51004. - dlpreopen=
  51005. - libdir=
  51006. - library_names=
  51007. - old_library=
  51008. - # If the library was installed with an old release of libtool,
  51009. - # it will not redefine variables installed, or shouldnotlink
  51010. - installed=yes
  51011. - shouldnotlink=no
  51012. - avoidtemprpath=
  51013. + # Set up the ranlib parameters.
  51014. + oldlib="$destdir/$name"
  51015. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  51016. - # Read the .la file
  51017. - case $lib in
  51018. - */* | *\\*) . $lib ;;
  51019. - *) . ./$lib ;;
  51020. - esac
  51021. + if test -n "$stripme" && test -n "$old_striplib"; then
  51022. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  51023. + fi
  51024. - if test "$linkmode,$pass" = "lib,link" ||
  51025. - test "$linkmode,$pass" = "prog,scan" ||
  51026. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  51027. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  51028. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  51029. - fi
  51030. + # Do each command in the postinstall commands.
  51031. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  51032. + done
  51033. - if test "$pass" = conv; then
  51034. - # Only check for convenience libraries
  51035. - deplibs="$lib $deplibs"
  51036. - if test -z "$libdir"; then
  51037. - if test -z "$old_library"; then
  51038. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51039. - exit $EXIT_FAILURE
  51040. - fi
  51041. - # It is a libtool convenience library, so add in its objects.
  51042. - convenience="$convenience $ladir/$objdir/$old_library"
  51043. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  51044. - tmp_libs=
  51045. - for deplib in $dependency_libs; do
  51046. - deplibs="$deplib $deplibs"
  51047. - if test "X$duplicate_deps" = "Xyes" ; then
  51048. - case "$tmp_libs " in
  51049. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51050. - esac
  51051. - fi
  51052. - tmp_libs="$tmp_libs $deplib"
  51053. - done
  51054. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  51055. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  51056. - exit $EXIT_FAILURE
  51057. - fi
  51058. - continue
  51059. - fi # $pass = conv
  51060. + test -n "$future_libdirs" && \
  51061. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  51062. + if test -n "$current_libdirs"; then
  51063. + # Maybe just do a dry run.
  51064. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  51065. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  51066. + else
  51067. + exit $EXIT_SUCCESS
  51068. + fi
  51069. +}
  51070. - # Get the name of the library we link against.
  51071. - linklib=
  51072. - for l in $old_library $library_names; do
  51073. - linklib="$l"
  51074. - done
  51075. - if test -z "$linklib"; then
  51076. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51077. - exit $EXIT_FAILURE
  51078. - fi
  51079. +test "$mode" = install && func_mode_install ${1+"$@"}
  51080. - # This library was specified with -dlopen.
  51081. - if test "$pass" = dlopen; then
  51082. - if test -z "$libdir"; then
  51083. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  51084. - exit $EXIT_FAILURE
  51085. - fi
  51086. - if test -z "$dlname" ||
  51087. - test "$dlopen_support" != yes ||
  51088. - test "$build_libtool_libs" = no; then
  51089. - # If there is no dlname, no dlopen support or we're linking
  51090. - # statically, we need to preload. We also need to preload any
  51091. - # dependent libraries so libltdl's deplib preloader doesn't
  51092. - # bomb out in the load deplibs phase.
  51093. - dlprefiles="$dlprefiles $lib $dependency_libs"
  51094. - else
  51095. - newdlfiles="$newdlfiles $lib"
  51096. - fi
  51097. - continue
  51098. - fi # $pass = dlopen
  51099. - # We need an absolute path.
  51100. - case $ladir in
  51101. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  51102. - *)
  51103. - abs_ladir=`cd "$ladir" && pwd`
  51104. - if test -z "$abs_ladir"; then
  51105. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  51106. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  51107. - abs_ladir="$ladir"
  51108. +# func_generate_dlsyms outputname originator pic_p
  51109. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  51110. +# a dlpreopen symbol table.
  51111. +func_generate_dlsyms ()
  51112. +{
  51113. + $opt_debug
  51114. + my_outputname="$1"
  51115. + my_originator="$2"
  51116. + my_pic_p="${3-no}"
  51117. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  51118. + my_dlsyms=
  51119. +
  51120. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51121. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  51122. + my_dlsyms="${my_outputname}S.c"
  51123. + else
  51124. + func_error "not configured to extract global symbols from dlpreopened files"
  51125. + fi
  51126. + fi
  51127. +
  51128. + if test -n "$my_dlsyms"; then
  51129. + case $my_dlsyms in
  51130. + "") ;;
  51131. + *.c)
  51132. + # Discover the nlist of each of the dlfiles.
  51133. + nlist="$output_objdir/${my_outputname}.nm"
  51134. +
  51135. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  51136. +
  51137. + # Parse the name list into a source file.
  51138. + func_verbose "creating $output_objdir/$my_dlsyms"
  51139. +
  51140. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  51141. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  51142. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  51143. +
  51144. +#ifdef __cplusplus
  51145. +extern \"C\" {
  51146. +#endif
  51147. +
  51148. +/* External symbol declarations for the compiler. */\
  51149. +"
  51150. +
  51151. + if test "$dlself" = yes; then
  51152. + func_verbose "generating symbol list for \`$output'"
  51153. +
  51154. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  51155. +
  51156. + # Add our own program objects to the symbol list.
  51157. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51158. + for progfile in $progfiles; do
  51159. + func_verbose "extracting global C symbols from \`$progfile'"
  51160. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  51161. + done
  51162. +
  51163. + if test -n "$exclude_expsyms"; then
  51164. + $opt_dry_run || {
  51165. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  51166. + eval '$MV "$nlist"T "$nlist"'
  51167. + }
  51168. fi
  51169. - ;;
  51170. - esac
  51171. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51172. - # Find the relevant object directory and library name.
  51173. - if test "X$installed" = Xyes; then
  51174. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51175. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  51176. - dir="$ladir"
  51177. - absdir="$abs_ladir"
  51178. - libdir="$abs_ladir"
  51179. - else
  51180. - dir="$libdir"
  51181. - absdir="$libdir"
  51182. + if test -n "$export_symbols_regex"; then
  51183. + $opt_dry_run || {
  51184. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  51185. + eval '$MV "$nlist"T "$nlist"'
  51186. + }
  51187. fi
  51188. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  51189. - else
  51190. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51191. - dir="$ladir"
  51192. - absdir="$abs_ladir"
  51193. - # Remove this search path later
  51194. - notinst_path="$notinst_path $abs_ladir"
  51195. +
  51196. + # Prepare the list of exported symbols
  51197. + if test -z "$export_symbols"; then
  51198. + export_symbols="$output_objdir/$outputname.exp"
  51199. + $opt_dry_run || {
  51200. + $RM $export_symbols
  51201. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  51202. + case $host in
  51203. + *cygwin* | *mingw* | *cegcc* )
  51204. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  51205. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  51206. + ;;
  51207. + esac
  51208. + }
  51209. else
  51210. - dir="$ladir/$objdir"
  51211. - absdir="$abs_ladir/$objdir"
  51212. - # Remove this search path later
  51213. - notinst_path="$notinst_path $abs_ladir"
  51214. + $opt_dry_run || {
  51215. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  51216. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  51217. + eval '$MV "$nlist"T "$nlist"'
  51218. + case $host in
  51219. + *cygwin | *mingw* | *cegcc* )
  51220. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  51221. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  51222. + ;;
  51223. + esac
  51224. + }
  51225. fi
  51226. - fi # $installed = yes
  51227. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  51228. + fi
  51229. - # This library was specified with -dlpreopen.
  51230. - if test "$pass" = dlpreopen; then
  51231. - if test -z "$libdir"; then
  51232. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  51233. - exit $EXIT_FAILURE
  51234. + for dlprefile in $dlprefiles; do
  51235. + func_verbose "extracting global C symbols from \`$dlprefile'"
  51236. + func_basename "$dlprefile"
  51237. + name="$func_basename_result"
  51238. + $opt_dry_run || {
  51239. + eval '$ECHO ": $name " >> "$nlist"'
  51240. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  51241. + }
  51242. + done
  51243. +
  51244. + $opt_dry_run || {
  51245. + # Make sure we have at least an empty file.
  51246. + test -f "$nlist" || : > "$nlist"
  51247. +
  51248. + if test -n "$exclude_expsyms"; then
  51249. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  51250. + $MV "$nlist"T "$nlist"
  51251. fi
  51252. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  51253. - # are required to link).
  51254. - if test -n "$old_library"; then
  51255. - newdlprefiles="$newdlprefiles $dir/$old_library"
  51256. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  51257. - elif test -n "$dlname"; then
  51258. - newdlprefiles="$newdlprefiles $dir/$dlname"
  51259. +
  51260. + # Try sorting and uniquifying the output.
  51261. + if $GREP -v "^: " < "$nlist" |
  51262. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  51263. + sort -k 3
  51264. + else
  51265. + sort +2
  51266. + fi |
  51267. + uniq > "$nlist"S; then
  51268. + :
  51269. else
  51270. - newdlprefiles="$newdlprefiles $dir/$linklib"
  51271. + $GREP -v "^: " < "$nlist" > "$nlist"S
  51272. fi
  51273. - fi # $pass = dlpreopen
  51274. - if test -z "$libdir"; then
  51275. - # Link the convenience library
  51276. - if test "$linkmode" = lib; then
  51277. - deplibs="$dir/$old_library $deplibs"
  51278. - elif test "$linkmode,$pass" = "prog,link"; then
  51279. - compile_deplibs="$dir/$old_library $compile_deplibs"
  51280. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  51281. + if test -f "$nlist"S; then
  51282. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  51283. else
  51284. - deplibs="$lib $deplibs" # used for prog,scan pass
  51285. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  51286. fi
  51287. - continue
  51288. - fi
  51289. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51290. - if test "$linkmode" = prog && test "$pass" != link; then
  51291. - newlib_search_path="$newlib_search_path $ladir"
  51292. - deplibs="$lib $deplibs"
  51293. -
  51294. - linkalldeplibs=no
  51295. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  51296. - test "$build_libtool_libs" = no; then
  51297. - linkalldeplibs=yes
  51298. - fi
  51299. +/* The mapping between symbol names and symbols. */
  51300. +typedef struct {
  51301. + const char *name;
  51302. + void *address;
  51303. +} lt_dlsymlist;
  51304. +"
  51305. + case $host in
  51306. + *cygwin* | *mingw* | *cegcc* )
  51307. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51308. +/* DATA imports from DLLs on WIN32 con't be const, because
  51309. + runtime relocations are performed -- see ld's documentation
  51310. + on pseudo-relocs. */"
  51311. + lt_dlsym_const= ;;
  51312. + *osf5*)
  51313. + echo >> "$output_objdir/$my_dlsyms" "\
  51314. +/* This system does not cope well with relocations in const data */"
  51315. + lt_dlsym_const= ;;
  51316. + *)
  51317. + lt_dlsym_const=const ;;
  51318. + esac
  51319. - tmp_libs=
  51320. - for deplib in $dependency_libs; do
  51321. - case $deplib in
  51322. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  51323. - esac
  51324. - # Need to link against all dependency_libs?
  51325. - if test "$linkalldeplibs" = yes; then
  51326. - deplibs="$deplib $deplibs"
  51327. - else
  51328. - # Need to hardcode shared library paths
  51329. - # or/and link against static libraries
  51330. - newdependency_libs="$deplib $newdependency_libs"
  51331. - fi
  51332. - if test "X$duplicate_deps" = "Xyes" ; then
  51333. - case "$tmp_libs " in
  51334. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51335. - esac
  51336. - fi
  51337. - tmp_libs="$tmp_libs $deplib"
  51338. - done # for deplib
  51339. - continue
  51340. - fi # $linkmode = prog...
  51341. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51342. +extern $lt_dlsym_const lt_dlsymlist
  51343. +lt_${my_prefix}_LTX_preloaded_symbols[];
  51344. +$lt_dlsym_const lt_dlsymlist
  51345. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  51346. +{\
  51347. + { \"$my_originator\", (void *) 0 },"
  51348. - if test "$linkmode,$pass" = "prog,link"; then
  51349. - if test -n "$library_names" &&
  51350. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  51351. - # We need to hardcode the library path
  51352. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  51353. - # Make sure the rpath contains only unique directories.
  51354. - case "$temp_rpath " in
  51355. - *" $dir "*) ;;
  51356. - *" $absdir "*) ;;
  51357. - *) temp_rpath="$temp_rpath $absdir" ;;
  51358. - esac
  51359. - fi
  51360. + case $need_lib_prefix in
  51361. + no)
  51362. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  51363. + ;;
  51364. + *)
  51365. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  51366. + ;;
  51367. + esac
  51368. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  51369. + {0, (void *) 0}
  51370. +};
  51371. - # Hardcode the library path.
  51372. - # Skip directories that are in the system default run-time
  51373. - # search path.
  51374. - case " $sys_lib_dlsearch_path " in
  51375. - *" $absdir "*) ;;
  51376. - *)
  51377. - case "$compile_rpath " in
  51378. - *" $absdir "*) ;;
  51379. - *) compile_rpath="$compile_rpath $absdir"
  51380. - esac
  51381. - ;;
  51382. - esac
  51383. - case " $sys_lib_dlsearch_path " in
  51384. - *" $libdir "*) ;;
  51385. - *)
  51386. - case "$finalize_rpath " in
  51387. - *" $libdir "*) ;;
  51388. - *) finalize_rpath="$finalize_rpath $libdir"
  51389. - esac
  51390. - ;;
  51391. - esac
  51392. - fi # $linkmode,$pass = prog,link...
  51393. +/* This works around a problem in FreeBSD linker */
  51394. +#ifdef FREEBSD_WORKAROUND
  51395. +static const void *lt_preloaded_setup() {
  51396. + return lt_${my_prefix}_LTX_preloaded_symbols;
  51397. +}
  51398. +#endif
  51399. - if test "$alldeplibs" = yes &&
  51400. - { test "$deplibs_check_method" = pass_all ||
  51401. - { test "$build_libtool_libs" = yes &&
  51402. - test -n "$library_names"; }; }; then
  51403. - # We only need to search for static libraries
  51404. - continue
  51405. - fi
  51406. - fi
  51407. +#ifdef __cplusplus
  51408. +}
  51409. +#endif\
  51410. +"
  51411. + } # !$opt_dry_run
  51412. - link_static=no # Whether the deplib will be linked statically
  51413. - use_static_libs=$prefer_static_libs
  51414. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  51415. - use_static_libs=no
  51416. - fi
  51417. - if test -n "$library_names" &&
  51418. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  51419. - if test "$installed" = no; then
  51420. - notinst_deplibs="$notinst_deplibs $lib"
  51421. - need_relink=yes
  51422. - fi
  51423. - # This is a shared library
  51424. -
  51425. - # Warn about portability, can't link against -module's on
  51426. - # some systems (darwin)
  51427. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  51428. - $echo
  51429. - if test "$linkmode" = prog; then
  51430. - $echo "*** Warning: Linking the executable $output against the loadable module"
  51431. - else
  51432. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  51433. + pic_flag_for_symtable=
  51434. + case "$compile_command " in
  51435. + *" -static "*) ;;
  51436. + *)
  51437. + case $host in
  51438. + # compiling the symbol table file with pic_flag works around
  51439. + # a FreeBSD bug that causes programs to crash when -lm is
  51440. + # linked before any other PIC object. But we must not use
  51441. + # pic_flag when linking with -static. The problem exists in
  51442. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  51443. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  51444. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  51445. + *-*-hpux*)
  51446. + pic_flag_for_symtable=" $pic_flag" ;;
  51447. + *)
  51448. + if test "X$my_pic_p" != Xno; then
  51449. + pic_flag_for_symtable=" $pic_flag"
  51450. fi
  51451. - $echo "*** $linklib is not portable!"
  51452. - fi
  51453. - if test "$linkmode" = lib &&
  51454. - test "$hardcode_into_libs" = yes; then
  51455. - # Hardcode the library path.
  51456. - # Skip directories that are in the system default run-time
  51457. - # search path.
  51458. - case " $sys_lib_dlsearch_path " in
  51459. - *" $absdir "*) ;;
  51460. - *)
  51461. - case "$compile_rpath " in
  51462. - *" $absdir "*) ;;
  51463. - *) compile_rpath="$compile_rpath $absdir"
  51464. - esac
  51465. - ;;
  51466. - esac
  51467. - case " $sys_lib_dlsearch_path " in
  51468. - *" $libdir "*) ;;
  51469. - *)
  51470. - case "$finalize_rpath " in
  51471. - *" $libdir "*) ;;
  51472. - *) finalize_rpath="$finalize_rpath $libdir"
  51473. - esac
  51474. - ;;
  51475. - esac
  51476. - fi
  51477. + ;;
  51478. + esac
  51479. + ;;
  51480. + esac
  51481. + symtab_cflags=
  51482. + for arg in $LTCFLAGS; do
  51483. + case $arg in
  51484. + -pie | -fpie | -fPIE) ;;
  51485. + *) symtab_cflags="$symtab_cflags $arg" ;;
  51486. + esac
  51487. + done
  51488. - if test -n "$old_archive_from_expsyms_cmds"; then
  51489. - # figure out the soname
  51490. - set dummy $library_names
  51491. - realname="$2"
  51492. - shift; shift
  51493. - libname=`eval \\$echo \"$libname_spec\"`
  51494. - # use dlname if we got it. it's perfectly good, no?
  51495. - if test -n "$dlname"; then
  51496. - soname="$dlname"
  51497. - elif test -n "$soname_spec"; then
  51498. - # bleh windows
  51499. - case $host in
  51500. - *cygwin* | mingw*)
  51501. - major=`expr $current - $age`
  51502. - versuffix="-$major"
  51503. - ;;
  51504. - esac
  51505. - eval soname=\"$soname_spec\"
  51506. - else
  51507. - soname="$realname"
  51508. - fi
  51509. + # Now compile the dynamic symbol file.
  51510. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  51511. - # Make a new name for the extract_expsyms_cmds to use
  51512. - soroot="$soname"
  51513. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  51514. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  51515. + # Clean up the generated files.
  51516. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  51517. - # If the library has no export list, then create one now
  51518. - if test -f "$output_objdir/$soname-def"; then :
  51519. - else
  51520. - $show "extracting exported symbol list from \`$soname'"
  51521. - save_ifs="$IFS"; IFS='~'
  51522. - cmds=$extract_expsyms_cmds
  51523. - for cmd in $cmds; do
  51524. - IFS="$save_ifs"
  51525. - eval cmd=\"$cmd\"
  51526. - $show "$cmd"
  51527. - $run eval "$cmd" || exit $?
  51528. - done
  51529. - IFS="$save_ifs"
  51530. - fi
  51531. + # Transform the symbol file into the correct name.
  51532. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  51533. + case $host in
  51534. + *cygwin* | *mingw* | *cegcc* )
  51535. + if test -f "$output_objdir/$my_outputname.def"; then
  51536. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  51537. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  51538. + else
  51539. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51540. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51541. + fi
  51542. + ;;
  51543. + *)
  51544. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51545. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  51546. + ;;
  51547. + esac
  51548. + ;;
  51549. + *)
  51550. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  51551. + ;;
  51552. + esac
  51553. + else
  51554. + # We keep going just in case the user didn't refer to
  51555. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  51556. + # really was required.
  51557. +
  51558. + # Nullify the symbol file.
  51559. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  51560. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  51561. + fi
  51562. +}
  51563. - # Create $newlib
  51564. - if test -f "$output_objdir/$newlib"; then :; else
  51565. - $show "generating import library for \`$soname'"
  51566. - save_ifs="$IFS"; IFS='~'
  51567. - cmds=$old_archive_from_expsyms_cmds
  51568. - for cmd in $cmds; do
  51569. - IFS="$save_ifs"
  51570. - eval cmd=\"$cmd\"
  51571. - $show "$cmd"
  51572. - $run eval "$cmd" || exit $?
  51573. - done
  51574. - IFS="$save_ifs"
  51575. - fi
  51576. - # make sure the library variables are pointing to the new library
  51577. - dir=$output_objdir
  51578. - linklib=$newlib
  51579. - fi # test -n "$old_archive_from_expsyms_cmds"
  51580. +# func_win32_libid arg
  51581. +# return the library type of file 'arg'
  51582. +#
  51583. +# Need a lot of goo to handle *both* DLLs and import libs
  51584. +# Has to be a shell function in order to 'eat' the argument
  51585. +# that is supplied when $file_magic_command is called.
  51586. +func_win32_libid ()
  51587. +{
  51588. + $opt_debug
  51589. + win32_libid_type="unknown"
  51590. + win32_fileres=`file -L $1 2>/dev/null`
  51591. + case $win32_fileres in
  51592. + *ar\ archive\ import\ library*) # definitely import
  51593. + win32_libid_type="x86 archive import"
  51594. + ;;
  51595. + *ar\ archive*) # could be an import, or static
  51596. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  51597. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  51598. + win32_nmres=`eval $NM -f posix -A $1 |
  51599. + $SED -n -e '
  51600. + 1,100{
  51601. + / I /{
  51602. + s,.*,import,
  51603. + p
  51604. + q
  51605. + }
  51606. + }'`
  51607. + case $win32_nmres in
  51608. + import*) win32_libid_type="x86 archive import";;
  51609. + *) win32_libid_type="x86 archive static";;
  51610. + esac
  51611. + fi
  51612. + ;;
  51613. + *DLL*)
  51614. + win32_libid_type="x86 DLL"
  51615. + ;;
  51616. + *executable*) # but shell scripts are "executable" too...
  51617. + case $win32_fileres in
  51618. + *MS\ Windows\ PE\ Intel*)
  51619. + win32_libid_type="x86 DLL"
  51620. + ;;
  51621. + esac
  51622. + ;;
  51623. + esac
  51624. + $ECHO "$win32_libid_type"
  51625. +}
  51626. - if test "$linkmode" = prog || test "$mode" != relink; then
  51627. - add_shlibpath=
  51628. - add_dir=
  51629. - add=
  51630. - lib_linked=yes
  51631. - case $hardcode_action in
  51632. - immediate | unsupported)
  51633. - if test "$hardcode_direct" = no; then
  51634. - add="$dir/$linklib"
  51635. - case $host in
  51636. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  51637. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  51638. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  51639. - *-*-unixware7*) add_dir="-L$dir" ;;
  51640. - *-*-darwin* )
  51641. - # if the lib is a module then we can not link against
  51642. - # it, someone is ignoring the new warnings I added
  51643. - if /usr/bin/file -L $add 2> /dev/null |
  51644. - $EGREP ": [^:]* bundle" >/dev/null ; then
  51645. - $echo "** Warning, lib $linklib is a module, not a shared library"
  51646. - if test -z "$old_library" ; then
  51647. - $echo
  51648. - $echo "** And there doesn't seem to be a static archive available"
  51649. - $echo "** The link will probably fail, sorry"
  51650. - else
  51651. - add="$dir/$old_library"
  51652. - fi
  51653. - fi
  51654. - esac
  51655. - elif test "$hardcode_minus_L" = no; then
  51656. - case $host in
  51657. - *-*-sunos*) add_shlibpath="$dir" ;;
  51658. - esac
  51659. - add_dir="-L$dir"
  51660. - add="-l$name"
  51661. - elif test "$hardcode_shlibpath_var" = no; then
  51662. - add_shlibpath="$dir"
  51663. - add="-l$name"
  51664. - else
  51665. - lib_linked=no
  51666. - fi
  51667. - ;;
  51668. - relink)
  51669. - if test "$hardcode_direct" = yes; then
  51670. - add="$dir/$linklib"
  51671. - elif test "$hardcode_minus_L" = yes; then
  51672. - add_dir="-L$dir"
  51673. - # Try looking first in the location we're being installed to.
  51674. - if test -n "$inst_prefix_dir"; then
  51675. - case $libdir in
  51676. - [\\/]*)
  51677. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51678. - ;;
  51679. - esac
  51680. - fi
  51681. - add="-l$name"
  51682. - elif test "$hardcode_shlibpath_var" = yes; then
  51683. - add_shlibpath="$dir"
  51684. - add="-l$name"
  51685. - else
  51686. - lib_linked=no
  51687. - fi
  51688. - ;;
  51689. - *) lib_linked=no ;;
  51690. - esac
  51691. - if test "$lib_linked" != yes; then
  51692. - $echo "$modename: configuration error: unsupported hardcode properties"
  51693. - exit $EXIT_FAILURE
  51694. - fi
  51695. - if test -n "$add_shlibpath"; then
  51696. - case :$compile_shlibpath: in
  51697. - *":$add_shlibpath:"*) ;;
  51698. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  51699. - esac
  51700. - fi
  51701. - if test "$linkmode" = prog; then
  51702. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  51703. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  51704. - else
  51705. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51706. - test -n "$add" && deplibs="$add $deplibs"
  51707. - if test "$hardcode_direct" != yes && \
  51708. - test "$hardcode_minus_L" != yes && \
  51709. - test "$hardcode_shlibpath_var" = yes; then
  51710. - case :$finalize_shlibpath: in
  51711. - *":$libdir:"*) ;;
  51712. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51713. - esac
  51714. - fi
  51715. - fi
  51716. - fi
  51717. +# func_extract_an_archive dir oldlib
  51718. +func_extract_an_archive ()
  51719. +{
  51720. + $opt_debug
  51721. + f_ex_an_ar_dir="$1"; shift
  51722. + f_ex_an_ar_oldlib="$1"
  51723. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  51724. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  51725. + :
  51726. + else
  51727. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  51728. + fi
  51729. +}
  51730. - if test "$linkmode" = prog || test "$mode" = relink; then
  51731. - add_shlibpath=
  51732. - add_dir=
  51733. - add=
  51734. - # Finalize command for both is simple: just hardcode it.
  51735. - if test "$hardcode_direct" = yes; then
  51736. - add="$libdir/$linklib"
  51737. - elif test "$hardcode_minus_L" = yes; then
  51738. - add_dir="-L$libdir"
  51739. - add="-l$name"
  51740. - elif test "$hardcode_shlibpath_var" = yes; then
  51741. - case :$finalize_shlibpath: in
  51742. - *":$libdir:"*) ;;
  51743. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51744. - esac
  51745. - add="-l$name"
  51746. - elif test "$hardcode_automatic" = yes; then
  51747. - if test -n "$inst_prefix_dir" &&
  51748. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  51749. - add="$inst_prefix_dir$libdir/$linklib"
  51750. - else
  51751. - add="$libdir/$linklib"
  51752. - fi
  51753. - else
  51754. - # We cannot seem to hardcode it, guess we'll fake it.
  51755. - add_dir="-L$libdir"
  51756. - # Try looking first in the location we're being installed to.
  51757. - if test -n "$inst_prefix_dir"; then
  51758. - case $libdir in
  51759. - [\\/]*)
  51760. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51761. - ;;
  51762. - esac
  51763. - fi
  51764. - add="-l$name"
  51765. - fi
  51766. - if test "$linkmode" = prog; then
  51767. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  51768. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  51769. - else
  51770. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51771. - test -n "$add" && deplibs="$add $deplibs"
  51772. - fi
  51773. - fi
  51774. - elif test "$linkmode" = prog; then
  51775. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  51776. - # is not unsupported. This is valid on all known static and
  51777. - # shared platforms.
  51778. - if test "$hardcode_direct" != unsupported; then
  51779. - test -n "$old_library" && linklib="$old_library"
  51780. - compile_deplibs="$dir/$linklib $compile_deplibs"
  51781. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  51782. - else
  51783. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  51784. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  51785. - fi
  51786. - elif test "$build_libtool_libs" = yes; then
  51787. - # Not a shared library
  51788. - if test "$deplibs_check_method" != pass_all; then
  51789. - # We're trying link a shared library against a static one
  51790. - # but the system doesn't support it.
  51791. +# func_extract_archives gentop oldlib ...
  51792. +func_extract_archives ()
  51793. +{
  51794. + $opt_debug
  51795. + my_gentop="$1"; shift
  51796. + my_oldlibs=${1+"$@"}
  51797. + my_oldobjs=""
  51798. + my_xlib=""
  51799. + my_xabs=""
  51800. + my_xdir=""
  51801. - # Just print a warning and add the library to dependency_libs so
  51802. - # that the program can be linked against the static library.
  51803. - $echo
  51804. - $echo "*** Warning: This system can not link to static lib archive $lib."
  51805. - $echo "*** I have the capability to make that library automatically link in when"
  51806. - $echo "*** you link to this library. But I can only do this if you have a"
  51807. - $echo "*** shared version of the library, which you do not appear to have."
  51808. - if test "$module" = yes; then
  51809. - $echo "*** But as you try to build a module library, libtool will still create "
  51810. - $echo "*** a static module, that should work as long as the dlopening application"
  51811. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  51812. - if test -z "$global_symbol_pipe"; then
  51813. - $echo
  51814. - $echo "*** However, this would only work if libtool was able to extract symbol"
  51815. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  51816. - $echo "*** not find such a program. So, this module is probably useless."
  51817. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  51818. - fi
  51819. - if test "$build_old_libs" = no; then
  51820. - build_libtool_libs=module
  51821. - build_old_libs=yes
  51822. - else
  51823. - build_libtool_libs=no
  51824. - fi
  51825. - fi
  51826. + for my_xlib in $my_oldlibs; do
  51827. + # Extract the objects.
  51828. + case $my_xlib in
  51829. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  51830. + *) my_xabs=`pwd`"/$my_xlib" ;;
  51831. + esac
  51832. + func_basename "$my_xlib"
  51833. + my_xlib="$func_basename_result"
  51834. + my_xlib_u=$my_xlib
  51835. + while :; do
  51836. + case " $extracted_archives " in
  51837. + *" $my_xlib_u "*)
  51838. + func_arith $extracted_serial + 1
  51839. + extracted_serial=$func_arith_result
  51840. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  51841. + *) break ;;
  51842. + esac
  51843. + done
  51844. + extracted_archives="$extracted_archives $my_xlib_u"
  51845. + my_xdir="$my_gentop/$my_xlib_u"
  51846. +
  51847. + func_mkdir_p "$my_xdir"
  51848. +
  51849. + case $host in
  51850. + *-darwin*)
  51851. + func_verbose "Extracting $my_xabs"
  51852. + # Do not bother doing anything if just a dry run
  51853. + $opt_dry_run || {
  51854. + darwin_orig_dir=`pwd`
  51855. + cd $my_xdir || exit $?
  51856. + darwin_archive=$my_xabs
  51857. + darwin_curdir=`pwd`
  51858. + darwin_base_archive=`basename "$darwin_archive"`
  51859. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  51860. + if test -n "$darwin_arches"; then
  51861. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  51862. + darwin_arch=
  51863. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  51864. + for darwin_arch in $darwin_arches ; do
  51865. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  51866. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  51867. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  51868. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  51869. + cd "$darwin_curdir"
  51870. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  51871. + done # $darwin_arches
  51872. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  51873. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  51874. + darwin_file=
  51875. + darwin_files=
  51876. + for darwin_file in $darwin_filelist; do
  51877. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  51878. + $LIPO -create -output "$darwin_file" $darwin_files
  51879. + done # $darwin_filelist
  51880. + $RM -rf unfat-$$
  51881. + cd "$darwin_orig_dir"
  51882. else
  51883. - deplibs="$dir/$old_library $deplibs"
  51884. - link_static=yes
  51885. - fi
  51886. - fi # link shared/static library?
  51887. + cd $darwin_orig_dir
  51888. + func_extract_an_archive "$my_xdir" "$my_xabs"
  51889. + fi # $darwin_arches
  51890. + } # !$opt_dry_run
  51891. + ;;
  51892. + *)
  51893. + func_extract_an_archive "$my_xdir" "$my_xabs"
  51894. + ;;
  51895. + esac
  51896. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  51897. + done
  51898. - if test "$linkmode" = lib; then
  51899. - if test -n "$dependency_libs" &&
  51900. - { test "$hardcode_into_libs" != yes ||
  51901. - test "$build_old_libs" = yes ||
  51902. - test "$link_static" = yes; }; then
  51903. - # Extract -R from dependency_libs
  51904. - temp_deplibs=
  51905. - for libdir in $dependency_libs; do
  51906. - case $libdir in
  51907. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  51908. - case " $xrpath " in
  51909. - *" $temp_xrpath "*) ;;
  51910. - *) xrpath="$xrpath $temp_xrpath";;
  51911. - esac;;
  51912. - *) temp_deplibs="$temp_deplibs $libdir";;
  51913. - esac
  51914. - done
  51915. - dependency_libs="$temp_deplibs"
  51916. - fi
  51917. + func_extract_archives_result="$my_oldobjs"
  51918. +}
  51919. - newlib_search_path="$newlib_search_path $absdir"
  51920. - # Link against this library
  51921. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  51922. - # ... and its dependency_libs
  51923. - tmp_libs=
  51924. - for deplib in $dependency_libs; do
  51925. - newdependency_libs="$deplib $newdependency_libs"
  51926. - if test "X$duplicate_deps" = "Xyes" ; then
  51927. - case "$tmp_libs " in
  51928. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51929. - esac
  51930. - fi
  51931. - tmp_libs="$tmp_libs $deplib"
  51932. - done
  51933. - if test "$link_all_deplibs" != no; then
  51934. - # Add the search paths of all dependency libraries
  51935. - for deplib in $dependency_libs; do
  51936. - case $deplib in
  51937. - -L*) path="$deplib" ;;
  51938. - *.la)
  51939. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  51940. - test "X$dir" = "X$deplib" && dir="."
  51941. - # We need an absolute path.
  51942. - case $dir in
  51943. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  51944. - *)
  51945. - absdir=`cd "$dir" && pwd`
  51946. - if test -z "$absdir"; then
  51947. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  51948. - absdir="$dir"
  51949. - fi
  51950. - ;;
  51951. - esac
  51952. - if grep "^installed=no" $deplib > /dev/null; then
  51953. - path="$absdir/$objdir"
  51954. - else
  51955. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  51956. - if test -z "$libdir"; then
  51957. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  51958. - exit $EXIT_FAILURE
  51959. - fi
  51960. - if test "$absdir" != "$libdir"; then
  51961. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  51962. - fi
  51963. - path="$absdir"
  51964. - fi
  51965. - depdepl=
  51966. - case $host in
  51967. - *-*-darwin*)
  51968. - # we do not want to link against static libs,
  51969. - # but need to link against shared
  51970. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  51971. - if test -n "$deplibrary_names" ; then
  51972. - for tmp in $deplibrary_names ; do
  51973. - depdepl=$tmp
  51974. - done
  51975. - if test -f "$path/$depdepl" ; then
  51976. - depdepl="$path/$depdepl"
  51977. - fi
  51978. - # do not add paths which are already there
  51979. - case " $newlib_search_path " in
  51980. - *" $path "*) ;;
  51981. - *) newlib_search_path="$newlib_search_path $path";;
  51982. - esac
  51983. - fi
  51984. - path=""
  51985. - ;;
  51986. - *)
  51987. - path="-L$path"
  51988. - ;;
  51989. - esac
  51990. - ;;
  51991. - -l*)
  51992. - case $host in
  51993. - *-*-darwin*)
  51994. - # Again, we only want to link against shared libraries
  51995. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  51996. - for tmp in $newlib_search_path ; do
  51997. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  51998. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  51999. - break
  52000. - fi
  52001. - done
  52002. - path=""
  52003. - ;;
  52004. - *) continue ;;
  52005. - esac
  52006. - ;;
  52007. - *) continue ;;
  52008. - esac
  52009. - case " $deplibs " in
  52010. - *" $path "*) ;;
  52011. - *) deplibs="$path $deplibs" ;;
  52012. - esac
  52013. - case " $deplibs " in
  52014. - *" $depdepl "*) ;;
  52015. - *) deplibs="$depdepl $deplibs" ;;
  52016. - esac
  52017. - done
  52018. - fi # link_all_deplibs != no
  52019. - fi # linkmode = lib
  52020. - done # for deplib in $libs
  52021. - dependency_libs="$newdependency_libs"
  52022. - if test "$pass" = dlpreopen; then
  52023. - # Link the dlpreopened libraries before other libraries
  52024. - for deplib in $save_deplibs; do
  52025. - deplibs="$deplib $deplibs"
  52026. - done
  52027. - fi
  52028. - if test "$pass" != dlopen; then
  52029. - if test "$pass" != conv; then
  52030. - # Make sure lib_search_path contains only unique directories.
  52031. - lib_search_path=
  52032. - for dir in $newlib_search_path; do
  52033. - case "$lib_search_path " in
  52034. - *" $dir "*) ;;
  52035. - *) lib_search_path="$lib_search_path $dir" ;;
  52036. - esac
  52037. - done
  52038. - newlib_search_path=
  52039. - fi
  52040. - if test "$linkmode,$pass" != "prog,link"; then
  52041. - vars="deplibs"
  52042. - else
  52043. - vars="compile_deplibs finalize_deplibs"
  52044. +# func_emit_wrapper_part1 [arg=no]
  52045. +#
  52046. +# Emit the first part of a libtool wrapper script on stdout.
  52047. +# For more information, see the description associated with
  52048. +# func_emit_wrapper(), below.
  52049. +func_emit_wrapper_part1 ()
  52050. +{
  52051. + func_emit_wrapper_part1_arg1=no
  52052. + if test -n "$1" ; then
  52053. + func_emit_wrapper_part1_arg1=$1
  52054. fi
  52055. - for var in $vars dependency_libs; do
  52056. - # Add libraries to $var in reverse order
  52057. - eval tmp_libs=\"\$$var\"
  52058. - new_libs=
  52059. - for deplib in $tmp_libs; do
  52060. - # FIXME: Pedantically, this is the right thing to do, so
  52061. - # that some nasty dependency loop isn't accidentally
  52062. - # broken:
  52063. - #new_libs="$deplib $new_libs"
  52064. - # Pragmatically, this seems to cause very few problems in
  52065. - # practice:
  52066. - case $deplib in
  52067. - -L*) new_libs="$deplib $new_libs" ;;
  52068. - -R*) ;;
  52069. - *)
  52070. - # And here is the reason: when a library appears more
  52071. - # than once as an explicit dependence of a library, or
  52072. - # is implicitly linked in more than once by the
  52073. - # compiler, it is considered special, and multiple
  52074. - # occurrences thereof are not removed. Compare this
  52075. - # with having the same library being listed as a
  52076. - # dependency of multiple other libraries: in this case,
  52077. - # we know (pedantically, we assume) the library does not
  52078. - # need to be listed more than once, so we keep only the
  52079. - # last copy. This is not always right, but it is rare
  52080. - # enough that we require users that really mean to play
  52081. - # such unportable linking tricks to link the library
  52082. - # using -Wl,-lname, so that libtool does not consider it
  52083. - # for duplicate removal.
  52084. - case " $specialdeplibs " in
  52085. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  52086. - *)
  52087. - case " $new_libs " in
  52088. - *" $deplib "*) ;;
  52089. - *) new_libs="$deplib $new_libs" ;;
  52090. - esac
  52091. - ;;
  52092. - esac
  52093. - ;;
  52094. - esac
  52095. - done
  52096. - tmp_libs=
  52097. - for deplib in $new_libs; do
  52098. - case $deplib in
  52099. - -L*)
  52100. - case " $tmp_libs " in
  52101. - *" $deplib "*) ;;
  52102. - *) tmp_libs="$tmp_libs $deplib" ;;
  52103. - esac
  52104. - ;;
  52105. - *) tmp_libs="$tmp_libs $deplib" ;;
  52106. - esac
  52107. - done
  52108. - eval $var=\"$tmp_libs\"
  52109. - done # for var
  52110. - fi
  52111. - # Last step: remove runtime libs from dependency_libs
  52112. - # (they stay in deplibs)
  52113. - tmp_libs=
  52114. - for i in $dependency_libs ; do
  52115. - case " $predeps $postdeps $compiler_lib_search_path " in
  52116. - *" $i "*)
  52117. - i=""
  52118. - ;;
  52119. - esac
  52120. - if test -n "$i" ; then
  52121. - tmp_libs="$tmp_libs $i"
  52122. - fi
  52123. - done
  52124. - dependency_libs=$tmp_libs
  52125. - done # for pass
  52126. - if test "$linkmode" = prog; then
  52127. - dlfiles="$newdlfiles"
  52128. - dlprefiles="$newdlprefiles"
  52129. - fi
  52130. - case $linkmode in
  52131. - oldlib)
  52132. - if test -n "$deplibs"; then
  52133. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  52134. - fi
  52135. + $ECHO "\
  52136. +#! $SHELL
  52137. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52138. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  52139. - fi
  52140. +# $output - temporary wrapper script for $objdir/$outputname
  52141. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52142. +#
  52143. +# The $output program cannot be directly executed until all the libtool
  52144. +# libraries that it depends on are installed.
  52145. +#
  52146. +# This wrapper script should never be moved out of the build directory.
  52147. +# If it is, it will not operate correctly.
  52148. - if test -n "$rpath"; then
  52149. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  52150. - fi
  52151. +# Sed substitution that helps us do robust quoting. It backslashifies
  52152. +# metacharacters that are still active within double-quoted strings.
  52153. +Xsed='${SED} -e 1s/^X//'
  52154. +sed_quote_subst='$sed_quote_subst'
  52155. - if test -n "$xrpath"; then
  52156. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  52157. - fi
  52158. +# Be Bourne compatible
  52159. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  52160. + emulate sh
  52161. + NULLCMD=:
  52162. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  52163. + # is contrary to our usage. Disable this feature.
  52164. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  52165. + setopt NO_GLOB_SUBST
  52166. +else
  52167. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  52168. +fi
  52169. +BIN_SH=xpg4; export BIN_SH # for Tru64
  52170. +DUALCASE=1; export DUALCASE # for MKS sh
  52171. - if test -n "$vinfo"; then
  52172. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  52173. - fi
  52174. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  52175. +# if CDPATH is set.
  52176. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  52177. - if test -n "$release"; then
  52178. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  52179. - fi
  52180. +relink_command=\"$relink_command\"
  52181. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  52182. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  52183. - fi
  52184. +# This environment variable determines our operation mode.
  52185. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  52186. + # install mode needs the following variables:
  52187. + generated_by_libtool_version='$macro_version'
  52188. + notinst_deplibs='$notinst_deplibs'
  52189. +else
  52190. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  52191. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52192. + ECHO=\"$qecho\"
  52193. + file=\"\$0\"
  52194. + # Make sure echo works.
  52195. + if test \"X\$1\" = X--no-reexec; then
  52196. + # Discard the --no-reexec flag, and continue.
  52197. + shift
  52198. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  52199. + # Yippee, \$ECHO works!
  52200. + :
  52201. + else
  52202. + # Restart under the correct shell, and then maybe \$ECHO will work.
  52203. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  52204. + fi
  52205. + fi\
  52206. +"
  52207. + $ECHO "\
  52208. - # Now set the variables for building old libraries.
  52209. - build_libtool_libs=no
  52210. - oldlibs="$output"
  52211. - objs="$objs$old_deplibs"
  52212. - ;;
  52213. + # Find the directory that this script lives in.
  52214. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  52215. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  52216. - lib)
  52217. - # Make sure we only generate libraries of the form `libNAME.la'.
  52218. - case $outputname in
  52219. - lib*)
  52220. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  52221. - eval shared_ext=\"$shrext_cmds\"
  52222. - eval libname=\"$libname_spec\"
  52223. - ;;
  52224. - *)
  52225. - if test "$module" = no; then
  52226. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  52227. - $echo "$help" 1>&2
  52228. - exit $EXIT_FAILURE
  52229. - fi
  52230. - if test "$need_lib_prefix" != no; then
  52231. - # Add the "lib" prefix for modules if required
  52232. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52233. - eval shared_ext=\"$shrext_cmds\"
  52234. - eval libname=\"$libname_spec\"
  52235. - else
  52236. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52237. - fi
  52238. - ;;
  52239. + # Follow symbolic links until we get to the real thisdir.
  52240. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  52241. + while test -n \"\$file\"; do
  52242. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  52243. +
  52244. + # If there was a directory component, then change thisdir.
  52245. + if test \"x\$destdir\" != \"x\$file\"; then
  52246. + case \"\$destdir\" in
  52247. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  52248. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  52249. esac
  52250. + fi
  52251. - if test -n "$objs"; then
  52252. - if test "$deplibs_check_method" != pass_all; then
  52253. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  52254. - exit $EXIT_FAILURE
  52255. - else
  52256. - $echo
  52257. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  52258. - $echo "*** objects $objs is not portable!"
  52259. - libobjs="$libobjs $objs"
  52260. - fi
  52261. - fi
  52262. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  52263. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  52264. + done
  52265. +"
  52266. +}
  52267. +# end: func_emit_wrapper_part1
  52268. - if test "$dlself" != no; then
  52269. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  52270. - fi
  52271. +# func_emit_wrapper_part2 [arg=no]
  52272. +#
  52273. +# Emit the second part of a libtool wrapper script on stdout.
  52274. +# For more information, see the description associated with
  52275. +# func_emit_wrapper(), below.
  52276. +func_emit_wrapper_part2 ()
  52277. +{
  52278. + func_emit_wrapper_part2_arg1=no
  52279. + if test -n "$1" ; then
  52280. + func_emit_wrapper_part2_arg1=$1
  52281. + fi
  52282. +
  52283. + $ECHO "\
  52284. +
  52285. + # Usually 'no', except on cygwin/mingw when embedded into
  52286. + # the cwrapper.
  52287. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  52288. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  52289. + # special case for '.'
  52290. + if test \"\$thisdir\" = \".\"; then
  52291. + thisdir=\`pwd\`
  52292. + fi
  52293. + # remove .libs from thisdir
  52294. + case \"\$thisdir\" in
  52295. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  52296. + $objdir ) thisdir=. ;;
  52297. + esac
  52298. + fi
  52299. - set dummy $rpath
  52300. - if test "$#" -gt 2; then
  52301. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  52302. + # Try to get the absolute directory name.
  52303. + absdir=\`cd \"\$thisdir\" && pwd\`
  52304. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  52305. +"
  52306. +
  52307. + if test "$fast_install" = yes; then
  52308. + $ECHO "\
  52309. + program=lt-'$outputname'$exeext
  52310. + progdir=\"\$thisdir/$objdir\"
  52311. +
  52312. + if test ! -f \"\$progdir/\$program\" ||
  52313. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  52314. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  52315. +
  52316. + file=\"\$\$-\$program\"
  52317. +
  52318. + if test ! -d \"\$progdir\"; then
  52319. + $MKDIR \"\$progdir\"
  52320. + else
  52321. + $RM \"\$progdir/\$file\"
  52322. + fi"
  52323. +
  52324. + $ECHO "\
  52325. +
  52326. + # relink executable if necessary
  52327. + if test -n \"\$relink_command\"; then
  52328. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  52329. + else
  52330. + $ECHO \"\$relink_command_output\" >&2
  52331. + $RM \"\$progdir/\$file\"
  52332. + exit 1
  52333. fi
  52334. - install_libdir="$2"
  52335. + fi
  52336. - oldlibs=
  52337. - if test -z "$rpath"; then
  52338. - if test "$build_libtool_libs" = yes; then
  52339. - # Building a libtool convenience library.
  52340. - # Some compilers have problems with a `.al' extension so
  52341. - # convenience libraries should have the same extension an
  52342. - # archive normally would.
  52343. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  52344. - build_libtool_libs=convenience
  52345. - build_old_libs=yes
  52346. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  52347. + { $RM \"\$progdir/\$program\";
  52348. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  52349. + $RM \"\$progdir/\$file\"
  52350. + fi"
  52351. + else
  52352. + $ECHO "\
  52353. + program='$outputname'
  52354. + progdir=\"\$thisdir/$objdir\"
  52355. +"
  52356. fi
  52357. - if test -n "$vinfo"; then
  52358. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  52359. - fi
  52360. + $ECHO "\
  52361. - if test -n "$release"; then
  52362. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  52363. - fi
  52364. - else
  52365. + if test -f \"\$progdir/\$program\"; then"
  52366. - # Parse the version information argument.
  52367. - save_ifs="$IFS"; IFS=':'
  52368. - set dummy $vinfo 0 0 0
  52369. - IFS="$save_ifs"
  52370. + # Export our shlibpath_var if we have one.
  52371. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  52372. + $ECHO "\
  52373. + # Add our own library path to $shlibpath_var
  52374. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  52375. - if test -n "$8"; then
  52376. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  52377. - $echo "$help" 1>&2
  52378. - exit $EXIT_FAILURE
  52379. - fi
  52380. + # Some systems cannot cope with colon-terminated $shlibpath_var
  52381. + # The second colon is a workaround for a bug in BeOS R4 sed
  52382. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  52383. - # convert absolute version numbers to libtool ages
  52384. - # this retains compatibility with .la files and attempts
  52385. - # to make the code below a bit more comprehensible
  52386. + export $shlibpath_var
  52387. +"
  52388. + fi
  52389. - case $vinfo_number in
  52390. - yes)
  52391. - number_major="$2"
  52392. - number_minor="$3"
  52393. - number_revision="$4"
  52394. - #
  52395. - # There are really only two kinds -- those that
  52396. - # use the current revision as the major version
  52397. - # and those that subtract age and use age as
  52398. - # a minor version. But, then there is irix
  52399. - # which has an extra 1 added just for fun
  52400. - #
  52401. - case $version_type in
  52402. - darwin|linux|osf|windows)
  52403. - current=`expr $number_major + $number_minor`
  52404. - age="$number_minor"
  52405. - revision="$number_revision"
  52406. - ;;
  52407. - freebsd-aout|freebsd-elf|sunos)
  52408. - current="$number_major"
  52409. - revision="$number_minor"
  52410. - age="0"
  52411. - ;;
  52412. - irix|nonstopux)
  52413. - current=`expr $number_major + $number_minor - 1`
  52414. - age="$number_minor"
  52415. - revision="$number_minor"
  52416. - ;;
  52417. - *)
  52418. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  52419. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  52420. - exit $EXIT_FAILURE
  52421. - ;;
  52422. - esac
  52423. - ;;
  52424. - no)
  52425. - current="$2"
  52426. - revision="$3"
  52427. - age="$4"
  52428. - ;;
  52429. - esac
  52430. + # fixup the dll searchpath if we need to.
  52431. + if test -n "$dllsearchpath"; then
  52432. + $ECHO "\
  52433. + # Add the dll search path components to the executable PATH
  52434. + PATH=$dllsearchpath:\$PATH
  52435. +"
  52436. + fi
  52437. - # Check that each of the things are valid numbers.
  52438. - case $current in
  52439. - 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]) ;;
  52440. - *)
  52441. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  52442. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52443. - exit $EXIT_FAILURE
  52444. + $ECHO "\
  52445. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52446. + # Run the actual program with our arguments.
  52447. +"
  52448. + case $host in
  52449. + # Backslashes separate directories on plain windows
  52450. + *-*-mingw | *-*-os2* | *-cegcc*)
  52451. + $ECHO "\
  52452. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  52453. +"
  52454. ;;
  52455. - esac
  52456. - case $revision in
  52457. - 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]) ;;
  52458. *)
  52459. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  52460. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52461. - exit $EXIT_FAILURE
  52462. + $ECHO "\
  52463. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  52464. +"
  52465. ;;
  52466. esac
  52467. + $ECHO "\
  52468. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  52469. + exit 1
  52470. + fi
  52471. + else
  52472. + # The program doesn't exist.
  52473. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  52474. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  52475. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  52476. + exit 1
  52477. + fi
  52478. +fi\
  52479. +"
  52480. +}
  52481. +# end: func_emit_wrapper_part2
  52482. - case $age in
  52483. - 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]) ;;
  52484. - *)
  52485. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  52486. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52487. - exit $EXIT_FAILURE
  52488. - ;;
  52489. - esac
  52490. - if test "$age" -gt "$current"; then
  52491. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  52492. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52493. - exit $EXIT_FAILURE
  52494. +# func_emit_wrapper [arg=no]
  52495. +#
  52496. +# Emit a libtool wrapper script on stdout.
  52497. +# Don't directly open a file because we may want to
  52498. +# incorporate the script contents within a cygwin/mingw
  52499. +# wrapper executable. Must ONLY be called from within
  52500. +# func_mode_link because it depends on a number of variables
  52501. +# set therein.
  52502. +#
  52503. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  52504. +# variable will take. If 'yes', then the emitted script
  52505. +# will assume that the directory in which it is stored is
  52506. +# the $objdir directory. This is a cygwin/mingw-specific
  52507. +# behavior.
  52508. +func_emit_wrapper ()
  52509. +{
  52510. + func_emit_wrapper_arg1=no
  52511. + if test -n "$1" ; then
  52512. + func_emit_wrapper_arg1=$1
  52513. fi
  52514. - # Calculate the version variables.
  52515. - major=
  52516. - versuffix=
  52517. - verstring=
  52518. - case $version_type in
  52519. - none) ;;
  52520. -
  52521. - darwin)
  52522. - # Like Linux, but with the current version available in
  52523. - # verstring for coding it into the library header
  52524. - major=.`expr $current - $age`
  52525. - versuffix="$major.$age.$revision"
  52526. - # Darwin ld doesn't like 0 for these options...
  52527. - minor_current=`expr $current + 1`
  52528. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  52529. - ;;
  52530. -
  52531. - freebsd-aout)
  52532. - major=".$current"
  52533. - versuffix=".$current.$revision";
  52534. - ;;
  52535. + # split this up so that func_emit_cwrapperexe_src
  52536. + # can call each part independently.
  52537. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  52538. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  52539. +}
  52540. - freebsd-elf)
  52541. - major=".$current"
  52542. - versuffix=".$current";
  52543. - ;;
  52544. - irix | nonstopux)
  52545. - major=`expr $current - $age + 1`
  52546. +# func_to_host_path arg
  52547. +#
  52548. +# Convert paths to host format when used with build tools.
  52549. +# Intended for use with "native" mingw (where libtool itself
  52550. +# is running under the msys shell), or in the following cross-
  52551. +# build environments:
  52552. +# $build $host
  52553. +# mingw (msys) mingw [e.g. native]
  52554. +# cygwin mingw
  52555. +# *nix + wine mingw
  52556. +# where wine is equipped with the `winepath' executable.
  52557. +# In the native mingw case, the (msys) shell automatically
  52558. +# converts paths for any non-msys applications it launches,
  52559. +# but that facility isn't available from inside the cwrapper.
  52560. +# Similar accommodations are necessary for $host mingw and
  52561. +# $build cygwin. Calling this function does no harm for other
  52562. +# $host/$build combinations not listed above.
  52563. +#
  52564. +# ARG is the path (on $build) that should be converted to
  52565. +# the proper representation for $host. The result is stored
  52566. +# in $func_to_host_path_result.
  52567. +func_to_host_path ()
  52568. +{
  52569. + func_to_host_path_result="$1"
  52570. + if test -n "$1" ; then
  52571. + case $host in
  52572. + *mingw* )
  52573. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  52574. + case $build in
  52575. + *mingw* ) # actually, msys
  52576. + # awkward: cmd appends spaces to result
  52577. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  52578. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  52579. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  52580. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52581. + $SED -e "$lt_sed_naive_backslashify"`
  52582. + ;;
  52583. + *cygwin* )
  52584. + func_to_host_path_tmp1=`cygpath -w "$1"`
  52585. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52586. + $SED -e "$lt_sed_naive_backslashify"`
  52587. + ;;
  52588. + * )
  52589. + # Unfortunately, winepath does not exit with a non-zero
  52590. + # error code, so we are forced to check the contents of
  52591. + # stdout. On the other hand, if the command is not
  52592. + # found, the shell will set an exit code of 127 and print
  52593. + # *an error message* to stdout. So we must check for both
  52594. + # error code of zero AND non-empty stdout, which explains
  52595. + # the odd construction:
  52596. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  52597. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  52598. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  52599. + $SED -e "$lt_sed_naive_backslashify"`
  52600. + else
  52601. + # Allow warning below.
  52602. + func_to_host_path_result=""
  52603. + fi
  52604. + ;;
  52605. + esac
  52606. + if test -z "$func_to_host_path_result" ; then
  52607. + func_error "Could not determine host path corresponding to"
  52608. + func_error " '$1'"
  52609. + func_error "Continuing, but uninstalled executables may not work."
  52610. + # Fallback:
  52611. + func_to_host_path_result="$1"
  52612. + fi
  52613. + ;;
  52614. + esac
  52615. + fi
  52616. +}
  52617. +# end: func_to_host_path
  52618. - case $version_type in
  52619. - nonstopux) verstring_prefix=nonstopux ;;
  52620. - *) verstring_prefix=sgi ;;
  52621. - esac
  52622. - verstring="$verstring_prefix$major.$revision"
  52623. +# func_to_host_pathlist arg
  52624. +#
  52625. +# Convert pathlists to host format when used with build tools.
  52626. +# See func_to_host_path(), above. This function supports the
  52627. +# following $build/$host combinations (but does no harm for
  52628. +# combinations not listed here):
  52629. +# $build $host
  52630. +# mingw (msys) mingw [e.g. native]
  52631. +# cygwin mingw
  52632. +# *nix + wine mingw
  52633. +#
  52634. +# Path separators are also converted from $build format to
  52635. +# $host format. If ARG begins or ends with a path separator
  52636. +# character, it is preserved (but converted to $host format)
  52637. +# on output.
  52638. +#
  52639. +# ARG is a pathlist (on $build) that should be converted to
  52640. +# the proper representation on $host. The result is stored
  52641. +# in $func_to_host_pathlist_result.
  52642. +func_to_host_pathlist ()
  52643. +{
  52644. + func_to_host_pathlist_result="$1"
  52645. + if test -n "$1" ; then
  52646. + case $host in
  52647. + *mingw* )
  52648. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  52649. + # Remove leading and trailing path separator characters from
  52650. + # ARG. msys behavior is inconsistent here, cygpath turns them
  52651. + # into '.;' and ';.', and winepath ignores them completely.
  52652. + func_to_host_pathlist_tmp2="$1"
  52653. + # Once set for this call, this variable should not be
  52654. + # reassigned. It is used in tha fallback case.
  52655. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  52656. + $SED -e 's|^:*||' -e 's|:*$||'`
  52657. + case $build in
  52658. + *mingw* ) # Actually, msys.
  52659. + # Awkward: cmd appends spaces to result.
  52660. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  52661. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  52662. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  52663. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  52664. + $SED -e "$lt_sed_naive_backslashify"`
  52665. + ;;
  52666. + *cygwin* )
  52667. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  52668. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  52669. + $SED -e "$lt_sed_naive_backslashify"`
  52670. + ;;
  52671. + * )
  52672. + # unfortunately, winepath doesn't convert pathlists
  52673. + func_to_host_pathlist_result=""
  52674. + func_to_host_pathlist_oldIFS=$IFS
  52675. + IFS=:
  52676. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  52677. + IFS=$func_to_host_pathlist_oldIFS
  52678. + if test -n "$func_to_host_pathlist_f" ; then
  52679. + func_to_host_path "$func_to_host_pathlist_f"
  52680. + if test -n "$func_to_host_path_result" ; then
  52681. + if test -z "$func_to_host_pathlist_result" ; then
  52682. + func_to_host_pathlist_result="$func_to_host_path_result"
  52683. + else
  52684. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  52685. + fi
  52686. + fi
  52687. + fi
  52688. + IFS=:
  52689. + done
  52690. + IFS=$func_to_host_pathlist_oldIFS
  52691. + ;;
  52692. + esac
  52693. + if test -z "$func_to_host_pathlist_result" ; then
  52694. + func_error "Could not determine the host path(s) corresponding to"
  52695. + func_error " '$1'"
  52696. + func_error "Continuing, but uninstalled executables may not work."
  52697. + # Fallback. This may break if $1 contains DOS-style drive
  52698. + # specifications. The fix is not to complicate the expression
  52699. + # below, but for the user to provide a working wine installation
  52700. + # with winepath so that path translation in the cross-to-mingw
  52701. + # case works properly.
  52702. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  52703. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  52704. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  52705. + fi
  52706. + # Now, add the leading and trailing path separators back
  52707. + case "$1" in
  52708. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  52709. + ;;
  52710. + esac
  52711. + case "$1" in
  52712. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  52713. + ;;
  52714. + esac
  52715. + ;;
  52716. + esac
  52717. + fi
  52718. +}
  52719. +# end: func_to_host_pathlist
  52720. - # Add in all the interfaces that we are compatible with.
  52721. - loop=$revision
  52722. - while test "$loop" -ne 0; do
  52723. - iface=`expr $revision - $loop`
  52724. - loop=`expr $loop - 1`
  52725. - verstring="$verstring_prefix$major.$iface:$verstring"
  52726. - done
  52727. +# func_emit_cwrapperexe_src
  52728. +# emit the source code for a wrapper executable on stdout
  52729. +# Must ONLY be called from within func_mode_link because
  52730. +# it depends on a number of variable set therein.
  52731. +func_emit_cwrapperexe_src ()
  52732. +{
  52733. + cat <<EOF
  52734. - # Before this point, $major must not contain `.'.
  52735. - major=.$major
  52736. - versuffix="$major.$revision"
  52737. - ;;
  52738. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  52739. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52740. - linux)
  52741. - major=.`expr $current - $age`
  52742. - versuffix="$major.$age.$revision"
  52743. - ;;
  52744. + The $output program cannot be directly executed until all the libtool
  52745. + libraries that it depends on are installed.
  52746. - osf)
  52747. - major=.`expr $current - $age`
  52748. - versuffix=".$current.$age.$revision"
  52749. - verstring="$current.$age.$revision"
  52750. + This wrapper executable should never be moved out of the build directory.
  52751. + If it is, it will not operate correctly.
  52752. - # Add in all the interfaces that we are compatible with.
  52753. - loop=$age
  52754. - while test "$loop" -ne 0; do
  52755. - iface=`expr $current - $loop`
  52756. - loop=`expr $loop - 1`
  52757. - verstring="$verstring:${iface}.0"
  52758. - done
  52759. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  52760. + but could eventually absorb all of the scripts functionality and
  52761. + exec $objdir/$outputname directly.
  52762. +*/
  52763. +EOF
  52764. + cat <<"EOF"
  52765. +#include <stdio.h>
  52766. +#include <stdlib.h>
  52767. +#ifdef _MSC_VER
  52768. +# include <direct.h>
  52769. +# include <process.h>
  52770. +# include <io.h>
  52771. +# define setmode _setmode
  52772. +#else
  52773. +# include <unistd.h>
  52774. +# include <stdint.h>
  52775. +# ifdef __CYGWIN__
  52776. +# include <io.h>
  52777. +# define HAVE_SETENV
  52778. +# ifdef __STRICT_ANSI__
  52779. +char *realpath (const char *, char *);
  52780. +int putenv (char *);
  52781. +int setenv (const char *, const char *, int);
  52782. +# endif
  52783. +# endif
  52784. +#endif
  52785. +#include <malloc.h>
  52786. +#include <stdarg.h>
  52787. +#include <assert.h>
  52788. +#include <string.h>
  52789. +#include <ctype.h>
  52790. +#include <errno.h>
  52791. +#include <fcntl.h>
  52792. +#include <sys/stat.h>
  52793. - # Make executables depend on our current version.
  52794. - verstring="$verstring:${current}.0"
  52795. - ;;
  52796. +#if defined(PATH_MAX)
  52797. +# define LT_PATHMAX PATH_MAX
  52798. +#elif defined(MAXPATHLEN)
  52799. +# define LT_PATHMAX MAXPATHLEN
  52800. +#else
  52801. +# define LT_PATHMAX 1024
  52802. +#endif
  52803. - sunos)
  52804. - major=".$current"
  52805. - versuffix=".$current.$revision"
  52806. - ;;
  52807. +#ifndef S_IXOTH
  52808. +# define S_IXOTH 0
  52809. +#endif
  52810. +#ifndef S_IXGRP
  52811. +# define S_IXGRP 0
  52812. +#endif
  52813. - windows)
  52814. - # Use '-' rather than '.', since we only want one
  52815. - # extension on DOS 8.3 filesystems.
  52816. - major=`expr $current - $age`
  52817. - versuffix="-$major"
  52818. - ;;
  52819. +#ifdef _MSC_VER
  52820. +# define S_IXUSR _S_IEXEC
  52821. +# define stat _stat
  52822. +# ifndef _INTPTR_T_DEFINED
  52823. +# define intptr_t int
  52824. +# endif
  52825. +#endif
  52826. - *)
  52827. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  52828. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  52829. - exit $EXIT_FAILURE
  52830. - ;;
  52831. - esac
  52832. +#ifndef DIR_SEPARATOR
  52833. +# define DIR_SEPARATOR '/'
  52834. +# define PATH_SEPARATOR ':'
  52835. +#endif
  52836. - # Clear the version info if we defaulted, and they specified a release.
  52837. - if test -z "$vinfo" && test -n "$release"; then
  52838. - major=
  52839. - case $version_type in
  52840. - darwin)
  52841. - # we can't check for "0.0" in archive_cmds due to quoting
  52842. - # problems, so we reset it completely
  52843. - verstring=
  52844. - ;;
  52845. - *)
  52846. - verstring="0.0"
  52847. - ;;
  52848. - esac
  52849. - if test "$need_version" = no; then
  52850. - versuffix=
  52851. - else
  52852. - versuffix=".0.0"
  52853. - fi
  52854. - fi
  52855. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  52856. + defined (__OS2__)
  52857. +# define HAVE_DOS_BASED_FILE_SYSTEM
  52858. +# define FOPEN_WB "wb"
  52859. +# ifndef DIR_SEPARATOR_2
  52860. +# define DIR_SEPARATOR_2 '\\'
  52861. +# endif
  52862. +# ifndef PATH_SEPARATOR_2
  52863. +# define PATH_SEPARATOR_2 ';'
  52864. +# endif
  52865. +#endif
  52866. - # Remove version info from name if versioning should be avoided
  52867. - if test "$avoid_version" = yes && test "$need_version" = no; then
  52868. - major=
  52869. - versuffix=
  52870. - verstring=""
  52871. - fi
  52872. +#ifndef DIR_SEPARATOR_2
  52873. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  52874. +#else /* DIR_SEPARATOR_2 */
  52875. +# define IS_DIR_SEPARATOR(ch) \
  52876. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  52877. +#endif /* DIR_SEPARATOR_2 */
  52878. - # Check to see if the archive will have undefined symbols.
  52879. - if test "$allow_undefined" = yes; then
  52880. - if test "$allow_undefined_flag" = unsupported; then
  52881. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  52882. - build_libtool_libs=no
  52883. - build_old_libs=yes
  52884. - fi
  52885. - else
  52886. - # Don't allow undefined symbols.
  52887. - allow_undefined_flag="$no_undefined_flag"
  52888. - fi
  52889. - fi
  52890. +#ifndef PATH_SEPARATOR_2
  52891. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  52892. +#else /* PATH_SEPARATOR_2 */
  52893. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  52894. +#endif /* PATH_SEPARATOR_2 */
  52895. - if test "$mode" != relink; then
  52896. - # Remove our outputs, but don't remove object files since they
  52897. - # may have been created when compiling PIC objects.
  52898. - removelist=
  52899. - tempremovelist=`$echo "$output_objdir/*"`
  52900. - for p in $tempremovelist; do
  52901. - case $p in
  52902. - *.$objext)
  52903. - ;;
  52904. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  52905. - if test "X$precious_files_regex" != "X"; then
  52906. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  52907. - then
  52908. - continue
  52909. - fi
  52910. - fi
  52911. - removelist="$removelist $p"
  52912. - ;;
  52913. - *) ;;
  52914. - esac
  52915. - done
  52916. - if test -n "$removelist"; then
  52917. - $show "${rm}r $removelist"
  52918. - $run ${rm}r $removelist
  52919. - fi
  52920. - fi
  52921. +#ifdef __CYGWIN__
  52922. +# define FOPEN_WB "wb"
  52923. +#endif
  52924. - # Now set the variables for building old libraries.
  52925. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  52926. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  52927. +#ifndef FOPEN_WB
  52928. +# define FOPEN_WB "w"
  52929. +#endif
  52930. +#ifndef _O_BINARY
  52931. +# define _O_BINARY 0
  52932. +#endif
  52933. - # Transform .lo files to .o files.
  52934. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  52935. - fi
  52936. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  52937. +#define XFREE(stale) do { \
  52938. + if (stale) { free ((void *) stale); stale = 0; } \
  52939. +} while (0)
  52940. - # Eliminate all temporary directories.
  52941. - for path in $notinst_path; do
  52942. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  52943. - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  52944. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  52945. - done
  52946. +#undef LTWRAPPER_DEBUGPRINTF
  52947. +#if defined DEBUGWRAPPER
  52948. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  52949. +static void
  52950. +ltwrapper_debugprintf (const char *fmt, ...)
  52951. +{
  52952. + va_list args;
  52953. + va_start (args, fmt);
  52954. + (void) vfprintf (stderr, fmt, args);
  52955. + va_end (args);
  52956. +}
  52957. +#else
  52958. +# define LTWRAPPER_DEBUGPRINTF(args)
  52959. +#endif
  52960. - if test -n "$xrpath"; then
  52961. - # If the user specified any rpath flags, then add them.
  52962. - temp_xrpath=
  52963. - for libdir in $xrpath; do
  52964. - temp_xrpath="$temp_xrpath -R$libdir"
  52965. - case "$finalize_rpath " in
  52966. - *" $libdir "*) ;;
  52967. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  52968. - esac
  52969. - done
  52970. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  52971. - dependency_libs="$temp_xrpath $dependency_libs"
  52972. - fi
  52973. - fi
  52974. +const char *program_name = NULL;
  52975. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  52976. - old_dlfiles="$dlfiles"
  52977. - dlfiles=
  52978. - for lib in $old_dlfiles; do
  52979. - case " $dlprefiles $dlfiles " in
  52980. - *" $lib "*) ;;
  52981. - *) dlfiles="$dlfiles $lib" ;;
  52982. - esac
  52983. - done
  52984. +void *xmalloc (size_t num);
  52985. +char *xstrdup (const char *string);
  52986. +const char *base_name (const char *name);
  52987. +char *find_executable (const char *wrapper);
  52988. +char *chase_symlinks (const char *pathspec);
  52989. +int make_executable (const char *path);
  52990. +int check_executable (const char *path);
  52991. +char *strendzap (char *str, const char *pat);
  52992. +void lt_fatal (const char *message, ...);
  52993. +void lt_setenv (const char *name, const char *value);
  52994. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  52995. +void lt_opt_process_env_set (const char *arg);
  52996. +void lt_opt_process_env_prepend (const char *arg);
  52997. +void lt_opt_process_env_append (const char *arg);
  52998. +int lt_split_name_value (const char *arg, char** name, char** value);
  52999. +void lt_update_exe_path (const char *name, const char *value);
  53000. +void lt_update_lib_path (const char *name, const char *value);
  53001. - # Make sure dlprefiles contains only unique files
  53002. - old_dlprefiles="$dlprefiles"
  53003. - dlprefiles=
  53004. - for lib in $old_dlprefiles; do
  53005. - case "$dlprefiles " in
  53006. - *" $lib "*) ;;
  53007. - *) dlprefiles="$dlprefiles $lib" ;;
  53008. - esac
  53009. - done
  53010. +static const char *script_text_part1 =
  53011. +EOF
  53012. - if test "$build_libtool_libs" = yes; then
  53013. - if test -n "$rpath"; then
  53014. - case $host in
  53015. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  53016. - # these systems don't actually have a c library (as such)!
  53017. - ;;
  53018. - *-*-rhapsody* | *-*-darwin1.[012])
  53019. - # Rhapsody C library is in the System framework
  53020. - deplibs="$deplibs -framework System"
  53021. - ;;
  53022. - *-*-netbsd*)
  53023. - # Don't link with libc until the a.out ld.so is fixed.
  53024. - ;;
  53025. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  53026. - # Do not include libc due to us having libc/libc_r.
  53027. - ;;
  53028. - *-*-sco3.2v5* | *-*-sco5v6*)
  53029. - # Causes problems with __ctype
  53030. - ;;
  53031. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  53032. - # Compiler inserts libc in the correct place for threads to work
  53033. - ;;
  53034. - *)
  53035. - # Add libc to deplibs on all other systems if necessary.
  53036. - if test "$build_libtool_need_lc" = "yes"; then
  53037. - deplibs="$deplibs -lc"
  53038. - fi
  53039. - ;;
  53040. - esac
  53041. - fi
  53042. + func_emit_wrapper_part1 yes |
  53043. + $SED -e 's/\([\\"]\)/\\\1/g' \
  53044. + -e 's/^/ "/' -e 's/$/\\n"/'
  53045. + echo ";"
  53046. + cat <<EOF
  53047. - # Transform deplibs into only deplibs that can be linked in shared.
  53048. - name_save=$name
  53049. - libname_save=$libname
  53050. - release_save=$release
  53051. - versuffix_save=$versuffix
  53052. - major_save=$major
  53053. - # I'm not sure if I'm treating the release correctly. I think
  53054. - # release should show up in the -l (ie -lgmp5) so we don't want to
  53055. - # add it in twice. Is that correct?
  53056. - release=""
  53057. - versuffix=""
  53058. - major=""
  53059. - newdeplibs=
  53060. - droppeddeps=no
  53061. - case $deplibs_check_method in
  53062. - pass_all)
  53063. - # Don't check for shared/static. Everything works.
  53064. - # This might be a little naive. We might want to check
  53065. - # whether the library exists or not. But this is on
  53066. - # osf3 & osf4 and I'm not really sure... Just
  53067. - # implementing what was already the behavior.
  53068. - newdeplibs=$deplibs
  53069. - ;;
  53070. - test_compile)
  53071. - # This code stresses the "libraries are programs" paradigm to its
  53072. - # limits. Maybe even breaks it. We compile a program, linking it
  53073. - # against the deplibs as a proxy for the library. Then we can check
  53074. - # whether they linked in statically or dynamically with ldd.
  53075. - $rm conftest.c
  53076. - cat > conftest.c <<EOF
  53077. - int main() { return 0; }
  53078. +static const char *script_text_part2 =
  53079. +EOF
  53080. + func_emit_wrapper_part2 yes |
  53081. + $SED -e 's/\([\\"]\)/\\\1/g' \
  53082. + -e 's/^/ "/' -e 's/$/\\n"/'
  53083. + echo ";"
  53084. +
  53085. + cat <<EOF
  53086. +const char * MAGIC_EXE = "$magic_exe";
  53087. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  53088. +EOF
  53089. +
  53090. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  53091. + func_to_host_pathlist "$temp_rpath"
  53092. + cat <<EOF
  53093. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  53094. EOF
  53095. - $rm conftest
  53096. - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  53097. - if test "$?" -eq 0 ; then
  53098. - ldd_output=`ldd conftest`
  53099. - for i in $deplibs; do
  53100. - name=`expr $i : '-l\(.*\)'`
  53101. - # If $name is empty we are operating on a -L argument.
  53102. - if test "$name" != "" && test "$name" -ne "0"; then
  53103. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53104. - case " $predeps $postdeps " in
  53105. - *" $i "*)
  53106. - newdeplibs="$newdeplibs $i"
  53107. - i=""
  53108. - ;;
  53109. - esac
  53110. - fi
  53111. - if test -n "$i" ; then
  53112. - libname=`eval \\$echo \"$libname_spec\"`
  53113. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  53114. - set dummy $deplib_matches
  53115. - deplib_match=$2
  53116. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53117. - newdeplibs="$newdeplibs $i"
  53118. - else
  53119. - droppeddeps=yes
  53120. - $echo
  53121. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  53122. - $echo "*** I have the capability to make that library automatically link in when"
  53123. - $echo "*** you link to this library. But I can only do this if you have a"
  53124. - $echo "*** shared version of the library, which I believe you do not have"
  53125. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  53126. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  53127. - fi
  53128. - fi
  53129. - else
  53130. - newdeplibs="$newdeplibs $i"
  53131. - fi
  53132. - done
  53133. - else
  53134. - # Error occurred in the first compile. Let's try to salvage
  53135. - # the situation: Compile a separate program for each library.
  53136. - for i in $deplibs; do
  53137. - name=`expr $i : '-l\(.*\)'`
  53138. - # If $name is empty we are operating on a -L argument.
  53139. - if test "$name" != "" && test "$name" != "0"; then
  53140. - $rm conftest
  53141. - $LTCC $LTCFLAGS -o conftest conftest.c $i
  53142. - # Did it work?
  53143. - if test "$?" -eq 0 ; then
  53144. - ldd_output=`ldd conftest`
  53145. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53146. - case " $predeps $postdeps " in
  53147. - *" $i "*)
  53148. - newdeplibs="$newdeplibs $i"
  53149. - i=""
  53150. - ;;
  53151. - esac
  53152. - fi
  53153. - if test -n "$i" ; then
  53154. - libname=`eval \\$echo \"$libname_spec\"`
  53155. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  53156. - set dummy $deplib_matches
  53157. - deplib_match=$2
  53158. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  53159. - newdeplibs="$newdeplibs $i"
  53160. - else
  53161. - droppeddeps=yes
  53162. - $echo
  53163. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  53164. - $echo "*** I have the capability to make that library automatically link in when"
  53165. - $echo "*** you link to this library. But I can only do this if you have a"
  53166. - $echo "*** shared version of the library, which you do not appear to have"
  53167. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  53168. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  53169. - fi
  53170. - fi
  53171. - else
  53172. - droppeddeps=yes
  53173. - $echo
  53174. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  53175. - $echo "*** make it link in! You will probably need to install it or some"
  53176. - $echo "*** library that it depends on before this library will be fully"
  53177. - $echo "*** functional. Installing it before continuing would be even better."
  53178. - fi
  53179. - else
  53180. - newdeplibs="$newdeplibs $i"
  53181. - fi
  53182. - done
  53183. - fi
  53184. - ;;
  53185. - file_magic*)
  53186. - set dummy $deplibs_check_method
  53187. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  53188. - for a_deplib in $deplibs; do
  53189. - name=`expr $a_deplib : '-l\(.*\)'`
  53190. - # If $name is empty we are operating on a -L argument.
  53191. - if test "$name" != "" && test "$name" != "0"; then
  53192. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53193. - case " $predeps $postdeps " in
  53194. - *" $a_deplib "*)
  53195. - newdeplibs="$newdeplibs $a_deplib"
  53196. - a_deplib=""
  53197. - ;;
  53198. - esac
  53199. - fi
  53200. - if test -n "$a_deplib" ; then
  53201. - libname=`eval \\$echo \"$libname_spec\"`
  53202. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53203. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53204. - for potent_lib in $potential_libs; do
  53205. - # Follow soft links.
  53206. - if ls -lLd "$potent_lib" 2>/dev/null \
  53207. - | grep " -> " >/dev/null; then
  53208. - continue
  53209. - fi
  53210. - # The statement above tries to avoid entering an
  53211. - # endless loop below, in case of cyclic links.
  53212. - # We might still enter an endless loop, since a link
  53213. - # loop can be closed while we follow links,
  53214. - # but so what?
  53215. - potlib="$potent_lib"
  53216. - while test -h "$potlib" 2>/dev/null; do
  53217. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  53218. - case $potliblink in
  53219. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  53220. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  53221. - esac
  53222. - done
  53223. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  53224. - | ${SED} 10q \
  53225. - | $EGREP "$file_magic_regex" > /dev/null; then
  53226. - newdeplibs="$newdeplibs $a_deplib"
  53227. - a_deplib=""
  53228. - break 2
  53229. - fi
  53230. - done
  53231. - done
  53232. - fi
  53233. - if test -n "$a_deplib" ; then
  53234. - droppeddeps=yes
  53235. - $echo
  53236. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53237. - $echo "*** I have the capability to make that library automatically link in when"
  53238. - $echo "*** you link to this library. But I can only do this if you have a"
  53239. - $echo "*** shared version of the library, which you do not appear to have"
  53240. - $echo "*** because I did check the linker path looking for a file starting"
  53241. - if test -z "$potlib" ; then
  53242. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  53243. - else
  53244. - $echo "*** with $libname and none of the candidates passed a file format test"
  53245. - $echo "*** using a file magic. Last file checked: $potlib"
  53246. - fi
  53247. - fi
  53248. else
  53249. - # Add a -L argument.
  53250. - newdeplibs="$newdeplibs $a_deplib"
  53251. + cat <<"EOF"
  53252. +const char * LIB_PATH_VALUE = "";
  53253. +EOF
  53254. fi
  53255. - done # Gone through all deplibs.
  53256. - ;;
  53257. - match_pattern*)
  53258. - set dummy $deplibs_check_method
  53259. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  53260. - for a_deplib in $deplibs; do
  53261. - name=`expr $a_deplib : '-l\(.*\)'`
  53262. - # If $name is empty we are operating on a -L argument.
  53263. - if test -n "$name" && test "$name" != "0"; then
  53264. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53265. - case " $predeps $postdeps " in
  53266. - *" $a_deplib "*)
  53267. - newdeplibs="$newdeplibs $a_deplib"
  53268. - a_deplib=""
  53269. - ;;
  53270. - esac
  53271. - fi
  53272. - if test -n "$a_deplib" ; then
  53273. - libname=`eval \\$echo \"$libname_spec\"`
  53274. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53275. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53276. - for potent_lib in $potential_libs; do
  53277. - potlib="$potent_lib" # see symlink-check above in file_magic test
  53278. - if eval $echo \"$potent_lib\" 2>/dev/null \
  53279. - | ${SED} 10q \
  53280. - | $EGREP "$match_pattern_regex" > /dev/null; then
  53281. - newdeplibs="$newdeplibs $a_deplib"
  53282. - a_deplib=""
  53283. - break 2
  53284. - fi
  53285. - done
  53286. - done
  53287. - fi
  53288. - if test -n "$a_deplib" ; then
  53289. - droppeddeps=yes
  53290. - $echo
  53291. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53292. - $echo "*** I have the capability to make that library automatically link in when"
  53293. - $echo "*** you link to this library. But I can only do this if you have a"
  53294. - $echo "*** shared version of the library, which you do not appear to have"
  53295. - $echo "*** because I did check the linker path looking for a file starting"
  53296. - if test -z "$potlib" ; then
  53297. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  53298. - else
  53299. - $echo "*** with $libname and none of the candidates passed a file format test"
  53300. - $echo "*** using a regex pattern. Last file checked: $potlib"
  53301. - fi
  53302. - fi
  53303. +
  53304. + if test -n "$dllsearchpath"; then
  53305. + func_to_host_pathlist "$dllsearchpath:"
  53306. + cat <<EOF
  53307. +const char * EXE_PATH_VARNAME = "PATH";
  53308. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  53309. +EOF
  53310. else
  53311. - # Add a -L argument.
  53312. - newdeplibs="$newdeplibs $a_deplib"
  53313. + cat <<"EOF"
  53314. +const char * EXE_PATH_VARNAME = "";
  53315. +const char * EXE_PATH_VALUE = "";
  53316. +EOF
  53317. fi
  53318. - done # Gone through all deplibs.
  53319. - ;;
  53320. - none | unknown | *)
  53321. - newdeplibs=""
  53322. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  53323. - -e 's/ -[LR][^ ]*//g'`
  53324. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53325. - for i in $predeps $postdeps ; do
  53326. - # can't use Xsed below, because $i might contain '/'
  53327. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  53328. - done
  53329. - fi
  53330. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  53331. - | grep . >/dev/null; then
  53332. - $echo
  53333. - if test "X$deplibs_check_method" = "Xnone"; then
  53334. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  53335. +
  53336. + if test "$fast_install" = yes; then
  53337. + cat <<EOF
  53338. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  53339. +EOF
  53340. else
  53341. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  53342. + cat <<EOF
  53343. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  53344. +EOF
  53345. fi
  53346. - $echo "*** All declared inter-library dependencies are being dropped."
  53347. - droppeddeps=yes
  53348. - fi
  53349. - ;;
  53350. - esac
  53351. - versuffix=$versuffix_save
  53352. - major=$major_save
  53353. - release=$release_save
  53354. - libname=$libname_save
  53355. - name=$name_save
  53356. - case $host in
  53357. - *-*-rhapsody* | *-*-darwin1.[012])
  53358. - # On Rhapsody replace the C library is the System framework
  53359. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53360. - ;;
  53361. - esac
  53362. - if test "$droppeddeps" = yes; then
  53363. - if test "$module" = yes; then
  53364. - $echo
  53365. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  53366. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  53367. - $echo "*** a static module, that should work as long as the dlopening"
  53368. - $echo "*** application is linked with the -dlopen flag."
  53369. - if test -z "$global_symbol_pipe"; then
  53370. - $echo
  53371. - $echo "*** However, this would only work if libtool was able to extract symbol"
  53372. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  53373. - $echo "*** not find such a program. So, this module is probably useless."
  53374. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  53375. - fi
  53376. - if test "$build_old_libs" = no; then
  53377. - oldlibs="$output_objdir/$libname.$libext"
  53378. - build_libtool_libs=module
  53379. - build_old_libs=yes
  53380. - else
  53381. - build_libtool_libs=no
  53382. - fi
  53383. - else
  53384. - $echo "*** The inter-library dependencies that have been dropped here will be"
  53385. - $echo "*** automatically added whenever a program is linked with this library"
  53386. - $echo "*** or is declared to -dlopen it."
  53387. + cat <<"EOF"
  53388. - if test "$allow_undefined" = no; then
  53389. - $echo
  53390. - $echo "*** Since this library must not contain undefined symbols,"
  53391. - $echo "*** because either the platform does not support them or"
  53392. - $echo "*** it was explicitly requested with -no-undefined,"
  53393. - $echo "*** libtool will only create a static version of it."
  53394. - if test "$build_old_libs" = no; then
  53395. - oldlibs="$output_objdir/$libname.$libext"
  53396. - build_libtool_libs=module
  53397. - build_old_libs=yes
  53398. - else
  53399. - build_libtool_libs=no
  53400. - fi
  53401. - fi
  53402. - fi
  53403. - fi
  53404. - # Done checking deplibs!
  53405. - deplibs=$newdeplibs
  53406. - fi
  53407. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  53408. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  53409. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  53410. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  53411. - # move library search paths that coincide with paths to not yet
  53412. - # installed libraries to the beginning of the library search list
  53413. - new_libs=
  53414. - for path in $notinst_path; do
  53415. - case " $new_libs " in
  53416. - *" -L$path/$objdir "*) ;;
  53417. - *)
  53418. - case " $deplibs " in
  53419. - *" -L$path/$objdir "*)
  53420. - new_libs="$new_libs -L$path/$objdir" ;;
  53421. - esac
  53422. - ;;
  53423. - esac
  53424. - done
  53425. - for deplib in $deplibs; do
  53426. - case $deplib in
  53427. - -L*)
  53428. - case " $new_libs " in
  53429. - *" $deplib "*) ;;
  53430. - *) new_libs="$new_libs $deplib" ;;
  53431. - esac
  53432. - ;;
  53433. - *) new_libs="$new_libs $deplib" ;;
  53434. - esac
  53435. - done
  53436. - deplibs="$new_libs"
  53437. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  53438. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  53439. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  53440. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  53441. - # All the library-specific variables (install_libdir is set above).
  53442. - library_names=
  53443. - old_library=
  53444. - dlname=
  53445. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  53446. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  53447. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  53448. - # Test again, we may have decided not to build it any more
  53449. - if test "$build_libtool_libs" = yes; then
  53450. - if test "$hardcode_into_libs" = yes; then
  53451. - # Hardcode the library paths
  53452. - hardcode_libdirs=
  53453. - dep_rpath=
  53454. - rpath="$finalize_rpath"
  53455. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  53456. - for libdir in $rpath; do
  53457. - if test -n "$hardcode_libdir_flag_spec"; then
  53458. - if test -n "$hardcode_libdir_separator"; then
  53459. - if test -z "$hardcode_libdirs"; then
  53460. - hardcode_libdirs="$libdir"
  53461. - else
  53462. - # Just accumulate the unique libdirs.
  53463. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53464. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53465. - ;;
  53466. - *)
  53467. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53468. - ;;
  53469. - esac
  53470. - fi
  53471. - else
  53472. - eval flag=\"$hardcode_libdir_flag_spec\"
  53473. - dep_rpath="$dep_rpath $flag"
  53474. - fi
  53475. - elif test -n "$runpath_var"; then
  53476. - case "$perm_rpath " in
  53477. - *" $libdir "*) ;;
  53478. - *) perm_rpath="$perm_rpath $libdir" ;;
  53479. - esac
  53480. - fi
  53481. - done
  53482. - # Substitute the hardcoded libdirs into the rpath.
  53483. - if test -n "$hardcode_libdir_separator" &&
  53484. - test -n "$hardcode_libdirs"; then
  53485. - libdir="$hardcode_libdirs"
  53486. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  53487. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  53488. - else
  53489. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  53490. - fi
  53491. - fi
  53492. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  53493. - # We should set the runpath_var.
  53494. - rpath=
  53495. - for dir in $perm_rpath; do
  53496. - rpath="$rpath$dir:"
  53497. - done
  53498. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  53499. - fi
  53500. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  53501. - fi
  53502. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  53503. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  53504. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  53505. - shlibpath="$finalize_shlibpath"
  53506. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  53507. - if test -n "$shlibpath"; then
  53508. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  53509. - fi
  53510. +int
  53511. +main (int argc, char *argv[])
  53512. +{
  53513. + char **newargz;
  53514. + int newargc;
  53515. + char *tmp_pathspec;
  53516. + char *actual_cwrapper_path;
  53517. + char *actual_cwrapper_name;
  53518. + char *target_name;
  53519. + char *lt_argv_zero;
  53520. + intptr_t rval = 127;
  53521. - # Get the real and link names of the library.
  53522. - eval shared_ext=\"$shrext_cmds\"
  53523. - eval library_names=\"$library_names_spec\"
  53524. - set dummy $library_names
  53525. - realname="$2"
  53526. - shift; shift
  53527. + int i;
  53528. - if test -n "$soname_spec"; then
  53529. - eval soname=\"$soname_spec\"
  53530. - else
  53531. - soname="$realname"
  53532. - fi
  53533. - if test -z "$dlname"; then
  53534. - dlname=$soname
  53535. - fi
  53536. + program_name = (char *) xstrdup (base_name (argv[0]));
  53537. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  53538. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  53539. - lib="$output_objdir/$realname"
  53540. - linknames=
  53541. - for link
  53542. - do
  53543. - linknames="$linknames $link"
  53544. - done
  53545. + /* very simple arg parsing; don't want to rely on getopt */
  53546. + for (i = 1; i < argc; i++)
  53547. + {
  53548. + if (strcmp (argv[i], dumpscript_opt) == 0)
  53549. + {
  53550. +EOF
  53551. + case "$host" in
  53552. + *mingw* | *cygwin* )
  53553. + # make stdout use "unix" line endings
  53554. + echo " setmode(1,_O_BINARY);"
  53555. + ;;
  53556. + esac
  53557. - # Use standard objects if they are pic
  53558. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53559. + cat <<"EOF"
  53560. + printf ("%s", script_text_part1);
  53561. + printf ("%s", script_text_part2);
  53562. + return 0;
  53563. + }
  53564. + }
  53565. - # Prepare the list of exported symbols
  53566. - if test -z "$export_symbols"; then
  53567. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  53568. - $show "generating symbol list for \`$libname.la'"
  53569. - export_symbols="$output_objdir/$libname.exp"
  53570. - $run $rm $export_symbols
  53571. - cmds=$export_symbols_cmds
  53572. - save_ifs="$IFS"; IFS='~'
  53573. - for cmd in $cmds; do
  53574. - IFS="$save_ifs"
  53575. - eval cmd=\"$cmd\"
  53576. - if len=`expr "X$cmd" : ".*"` &&
  53577. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53578. - $show "$cmd"
  53579. - $run eval "$cmd" || exit $?
  53580. - skipped_export=false
  53581. - else
  53582. - # The command line is too long to execute in one step.
  53583. - $show "using reloadable object file for export list..."
  53584. - skipped_export=:
  53585. - # Break out early, otherwise skipped_export may be
  53586. - # set to false by a later but shorter cmd.
  53587. - break
  53588. - fi
  53589. - done
  53590. - IFS="$save_ifs"
  53591. - if test -n "$export_symbols_regex"; then
  53592. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  53593. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  53594. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  53595. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  53596. - fi
  53597. - fi
  53598. - fi
  53599. + newargz = XMALLOC (char *, argc + 1);
  53600. + tmp_pathspec = find_executable (argv[0]);
  53601. + if (tmp_pathspec == NULL)
  53602. + lt_fatal ("Couldn't find %s", argv[0]);
  53603. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  53604. + tmp_pathspec));
  53605. +
  53606. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  53607. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  53608. + actual_cwrapper_path));
  53609. + XFREE (tmp_pathspec);
  53610. +
  53611. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  53612. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  53613. +
  53614. + /* wrapper name transforms */
  53615. + strendzap (actual_cwrapper_name, ".exe");
  53616. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  53617. + XFREE (actual_cwrapper_name);
  53618. + actual_cwrapper_name = tmp_pathspec;
  53619. + tmp_pathspec = 0;
  53620. +
  53621. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  53622. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  53623. + strendzap (target_name, ".exe");
  53624. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  53625. + XFREE (target_name);
  53626. + target_name = tmp_pathspec;
  53627. + tmp_pathspec = 0;
  53628. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  53629. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  53630. - fi
  53631. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  53632. + target_name));
  53633. +EOF
  53634. - tmp_deplibs=
  53635. - for test_deplib in $deplibs; do
  53636. - case " $convenience " in
  53637. - *" $test_deplib "*) ;;
  53638. - *)
  53639. - tmp_deplibs="$tmp_deplibs $test_deplib"
  53640. - ;;
  53641. - esac
  53642. - done
  53643. - deplibs="$tmp_deplibs"
  53644. + cat <<EOF
  53645. + newargz[0] =
  53646. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  53647. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  53648. + strcpy (newargz[0], actual_cwrapper_path);
  53649. + strcat (newargz[0], "$objdir");
  53650. + strcat (newargz[0], "/");
  53651. +EOF
  53652. - if test -n "$convenience"; then
  53653. - if test -n "$whole_archive_flag_spec"; then
  53654. - save_libobjs=$libobjs
  53655. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  53656. - else
  53657. - gentop="$output_objdir/${outputname}x"
  53658. - generated="$generated $gentop"
  53659. + cat <<"EOF"
  53660. + /* stop here, and copy so we don't have to do this twice */
  53661. + tmp_pathspec = xstrdup (newargz[0]);
  53662. +
  53663. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  53664. + strcat (newargz[0], actual_cwrapper_name);
  53665. +
  53666. + /* DO want the lt- prefix here if it exists, so use target_name */
  53667. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  53668. + XFREE (tmp_pathspec);
  53669. + tmp_pathspec = NULL;
  53670. +EOF
  53671. - func_extract_archives $gentop $convenience
  53672. - libobjs="$libobjs $func_extract_archives_result"
  53673. - fi
  53674. - fi
  53675. -
  53676. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  53677. - eval flag=\"$thread_safe_flag_spec\"
  53678. - linker_flags="$linker_flags $flag"
  53679. - fi
  53680. + case $host_os in
  53681. + mingw*)
  53682. + cat <<"EOF"
  53683. + {
  53684. + char* p;
  53685. + while ((p = strchr (newargz[0], '\\')) != NULL)
  53686. + {
  53687. + *p = '/';
  53688. + }
  53689. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  53690. + {
  53691. + *p = '/';
  53692. + }
  53693. + }
  53694. +EOF
  53695. + ;;
  53696. + esac
  53697. - # Make a backup of the uninstalled library when relinking
  53698. - if test "$mode" = relink; then
  53699. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  53700. - fi
  53701. + cat <<"EOF"
  53702. + XFREE (target_name);
  53703. + XFREE (actual_cwrapper_path);
  53704. + XFREE (actual_cwrapper_name);
  53705. +
  53706. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  53707. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  53708. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  53709. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  53710. - # Do each of the archive commands.
  53711. - if test "$module" = yes && test -n "$module_cmds" ; then
  53712. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53713. - eval test_cmds=\"$module_expsym_cmds\"
  53714. - cmds=$module_expsym_cmds
  53715. - else
  53716. - eval test_cmds=\"$module_cmds\"
  53717. - cmds=$module_cmds
  53718. - fi
  53719. - else
  53720. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53721. - eval test_cmds=\"$archive_expsym_cmds\"
  53722. - cmds=$archive_expsym_cmds
  53723. - else
  53724. - eval test_cmds=\"$archive_cmds\"
  53725. - cmds=$archive_cmds
  53726. - fi
  53727. - fi
  53728. + newargc=0;
  53729. + for (i = 1; i < argc; i++)
  53730. + {
  53731. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  53732. + {
  53733. + if (argv[i][env_set_opt_len] == '=')
  53734. + {
  53735. + const char *p = argv[i] + env_set_opt_len + 1;
  53736. + lt_opt_process_env_set (p);
  53737. + }
  53738. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  53739. + {
  53740. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  53741. + }
  53742. + else
  53743. + lt_fatal ("%s missing required argument", env_set_opt);
  53744. + continue;
  53745. + }
  53746. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  53747. + {
  53748. + if (argv[i][env_prepend_opt_len] == '=')
  53749. + {
  53750. + const char *p = argv[i] + env_prepend_opt_len + 1;
  53751. + lt_opt_process_env_prepend (p);
  53752. + }
  53753. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  53754. + {
  53755. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  53756. + }
  53757. + else
  53758. + lt_fatal ("%s missing required argument", env_prepend_opt);
  53759. + continue;
  53760. + }
  53761. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  53762. + {
  53763. + if (argv[i][env_append_opt_len] == '=')
  53764. + {
  53765. + const char *p = argv[i] + env_append_opt_len + 1;
  53766. + lt_opt_process_env_append (p);
  53767. + }
  53768. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  53769. + {
  53770. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  53771. + }
  53772. + else
  53773. + lt_fatal ("%s missing required argument", env_append_opt);
  53774. + continue;
  53775. + }
  53776. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  53777. + {
  53778. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  53779. + namespace, but it is not one of the ones we know about and
  53780. + have already dealt with, above (inluding dump-script), then
  53781. + report an error. Otherwise, targets might begin to believe
  53782. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  53783. + namespace. The first time any user complains about this, we'll
  53784. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  53785. + or a configure.ac-settable value.
  53786. + */
  53787. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  53788. + ltwrapper_option_prefix, argv[i]);
  53789. + }
  53790. + /* otherwise ... */
  53791. + newargz[++newargc] = xstrdup (argv[i]);
  53792. + }
  53793. + newargz[++newargc] = NULL;
  53794. - if test "X$skipped_export" != "X:" &&
  53795. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  53796. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53797. - :
  53798. - else
  53799. - # The command line is too long to link in one step, link piecewise.
  53800. - $echo "creating reloadable object files..."
  53801. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  53802. + for (i = 0; i < newargc; i++)
  53803. + {
  53804. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  53805. + }
  53806. - # Save the value of $output and $libobjs because we want to
  53807. - # use them later. If we have whole_archive_flag_spec, we
  53808. - # want to use save_libobjs as it was before
  53809. - # whole_archive_flag_spec was expanded, because we can't
  53810. - # assume the linker understands whole_archive_flag_spec.
  53811. - # This may have to be revisited, in case too many
  53812. - # convenience libraries get linked in and end up exceeding
  53813. - # the spec.
  53814. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  53815. - save_libobjs=$libobjs
  53816. - fi
  53817. - save_output=$output
  53818. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  53819. +EOF
  53820. - # Clear the reloadable object creation command queue and
  53821. - # initialize k to one.
  53822. - test_cmds=
  53823. - concat_cmds=
  53824. - objlist=
  53825. - delfiles=
  53826. - last_robj=
  53827. - k=1
  53828. - output=$output_objdir/$output_la-${k}.$objext
  53829. - # Loop over the list of objects to be linked.
  53830. - for obj in $save_libobjs
  53831. - do
  53832. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  53833. - if test "X$objlist" = X ||
  53834. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  53835. - test "$len" -le "$max_cmd_len"; }; then
  53836. - objlist="$objlist $obj"
  53837. - else
  53838. - # The command $test_cmds is almost too long, add a
  53839. - # command to the queue.
  53840. - if test "$k" -eq 1 ; then
  53841. - # The first file doesn't have a previous command to add.
  53842. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  53843. - else
  53844. - # All subsequent reloadable object files will link in
  53845. - # the last one created.
  53846. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  53847. - fi
  53848. - last_robj=$output_objdir/$output_la-${k}.$objext
  53849. - k=`expr $k + 1`
  53850. - output=$output_objdir/$output_la-${k}.$objext
  53851. - objlist=$obj
  53852. - len=1
  53853. - fi
  53854. - done
  53855. - # Handle the remaining objects by creating one last
  53856. - # reloadable object file. All subsequent reloadable object
  53857. - # files will link in the last one created.
  53858. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  53859. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  53860. + case $host_os in
  53861. + mingw*)
  53862. + cat <<"EOF"
  53863. + /* execv doesn't actually work on mingw as expected on unix */
  53864. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  53865. + if (rval == -1)
  53866. + {
  53867. + /* failed to start process */
  53868. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  53869. + return 127;
  53870. + }
  53871. + return rval;
  53872. +EOF
  53873. + ;;
  53874. + *)
  53875. + cat <<"EOF"
  53876. + execv (lt_argv_zero, newargz);
  53877. + return rval; /* =127, but avoids unused variable warning */
  53878. +EOF
  53879. + ;;
  53880. + esac
  53881. - if ${skipped_export-false}; then
  53882. - $show "generating symbol list for \`$libname.la'"
  53883. - export_symbols="$output_objdir/$libname.exp"
  53884. - $run $rm $export_symbols
  53885. - libobjs=$output
  53886. - # Append the command to create the export file.
  53887. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  53888. - fi
  53889. -
  53890. - # Set up a command to remove the reloadable object files
  53891. - # after they are used.
  53892. - i=0
  53893. - while test "$i" -lt "$k"
  53894. - do
  53895. - i=`expr $i + 1`
  53896. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  53897. - done
  53898. + cat <<"EOF"
  53899. +}
  53900. - $echo "creating a temporary reloadable object file: $output"
  53901. +void *
  53902. +xmalloc (size_t num)
  53903. +{
  53904. + void *p = (void *) malloc (num);
  53905. + if (!p)
  53906. + lt_fatal ("Memory exhausted");
  53907. - # Loop through the commands generated above and execute them.
  53908. - save_ifs="$IFS"; IFS='~'
  53909. - for cmd in $concat_cmds; do
  53910. - IFS="$save_ifs"
  53911. - $show "$cmd"
  53912. - $run eval "$cmd" || exit $?
  53913. - done
  53914. - IFS="$save_ifs"
  53915. + return p;
  53916. +}
  53917. - libobjs=$output
  53918. - # Restore the value of output.
  53919. - output=$save_output
  53920. +char *
  53921. +xstrdup (const char *string)
  53922. +{
  53923. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  53924. + string) : NULL;
  53925. +}
  53926. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  53927. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  53928. - fi
  53929. - # Expand the library linking commands again to reset the
  53930. - # value of $libobjs for piecewise linking.
  53931. +const char *
  53932. +base_name (const char *name)
  53933. +{
  53934. + const char *base;
  53935. - # Do each of the archive commands.
  53936. - if test "$module" = yes && test -n "$module_cmds" ; then
  53937. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53938. - cmds=$module_expsym_cmds
  53939. - else
  53940. - cmds=$module_cmds
  53941. - fi
  53942. - else
  53943. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53944. - cmds=$archive_expsym_cmds
  53945. - else
  53946. - cmds=$archive_cmds
  53947. - fi
  53948. - fi
  53949. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  53950. + /* Skip over the disk name in MSDOS pathnames. */
  53951. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  53952. + name += 2;
  53953. +#endif
  53954. - # Append the command to remove the reloadable object files
  53955. - # to the just-reset $cmds.
  53956. - eval cmds=\"\$cmds~\$rm $delfiles\"
  53957. - fi
  53958. - save_ifs="$IFS"; IFS='~'
  53959. - for cmd in $cmds; do
  53960. - IFS="$save_ifs"
  53961. - eval cmd=\"$cmd\"
  53962. - $show "$cmd"
  53963. - $run eval "$cmd" || {
  53964. - lt_exit=$?
  53965. + for (base = name; *name; name++)
  53966. + if (IS_DIR_SEPARATOR (*name))
  53967. + base = name + 1;
  53968. + return base;
  53969. +}
  53970. - # Restore the uninstalled library and exit
  53971. - if test "$mode" = relink; then
  53972. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  53973. - fi
  53974. +int
  53975. +check_executable (const char *path)
  53976. +{
  53977. + struct stat st;
  53978. - exit $lt_exit
  53979. - }
  53980. - done
  53981. - IFS="$save_ifs"
  53982. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  53983. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  53984. + if ((!path) || (!*path))
  53985. + return 0;
  53986. - # Restore the uninstalled library and exit
  53987. - if test "$mode" = relink; then
  53988. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  53989. + if ((stat (path, &st) >= 0)
  53990. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  53991. + return 1;
  53992. + else
  53993. + return 0;
  53994. +}
  53995. - if test -n "$convenience"; then
  53996. - if test -z "$whole_archive_flag_spec"; then
  53997. - $show "${rm}r $gentop"
  53998. - $run ${rm}r "$gentop"
  53999. - fi
  54000. - fi
  54001. +int
  54002. +make_executable (const char *path)
  54003. +{
  54004. + int rval = 0;
  54005. + struct stat st;
  54006. - exit $EXIT_SUCCESS
  54007. - fi
  54008. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  54009. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  54010. + if ((!path) || (!*path))
  54011. + return 0;
  54012. - # Create links to the real library.
  54013. - for linkname in $linknames; do
  54014. - if test "$realname" != "$linkname"; then
  54015. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  54016. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  54017. - fi
  54018. - done
  54019. + if (stat (path, &st) >= 0)
  54020. + {
  54021. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  54022. + }
  54023. + return rval;
  54024. +}
  54025. - # If -module or -export-dynamic was specified, set the dlname.
  54026. - if test "$module" = yes || test "$export_dynamic" = yes; then
  54027. - # On all known operating systems, these are identical.
  54028. - dlname="$soname"
  54029. - fi
  54030. - fi
  54031. - ;;
  54032. +/* Searches for the full path of the wrapper. Returns
  54033. + newly allocated full path name if found, NULL otherwise
  54034. + Does not chase symlinks, even on platforms that support them.
  54035. +*/
  54036. +char *
  54037. +find_executable (const char *wrapper)
  54038. +{
  54039. + int has_slash = 0;
  54040. + const char *p;
  54041. + const char *p_next;
  54042. + /* static buffer for getcwd */
  54043. + char tmp[LT_PATHMAX + 1];
  54044. + int tmp_len;
  54045. + char *concat_name;
  54046. - obj)
  54047. - if test -n "$deplibs"; then
  54048. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  54049. - fi
  54050. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  54051. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  54052. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54053. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  54054. - fi
  54055. + if ((wrapper == NULL) || (*wrapper == '\0'))
  54056. + return NULL;
  54057. - if test -n "$rpath"; then
  54058. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  54059. - fi
  54060. + /* Absolute path? */
  54061. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54062. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  54063. + {
  54064. + concat_name = xstrdup (wrapper);
  54065. + if (check_executable (concat_name))
  54066. + return concat_name;
  54067. + XFREE (concat_name);
  54068. + }
  54069. + else
  54070. + {
  54071. +#endif
  54072. + if (IS_DIR_SEPARATOR (wrapper[0]))
  54073. + {
  54074. + concat_name = xstrdup (wrapper);
  54075. + if (check_executable (concat_name))
  54076. + return concat_name;
  54077. + XFREE (concat_name);
  54078. + }
  54079. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  54080. + }
  54081. +#endif
  54082. - if test -n "$xrpath"; then
  54083. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  54084. - fi
  54085. + for (p = wrapper; *p; p++)
  54086. + if (*p == '/')
  54087. + {
  54088. + has_slash = 1;
  54089. + break;
  54090. + }
  54091. + if (!has_slash)
  54092. + {
  54093. + /* no slashes; search PATH */
  54094. + const char *path = getenv ("PATH");
  54095. + if (path != NULL)
  54096. + {
  54097. + for (p = path; *p; p = p_next)
  54098. + {
  54099. + const char *q;
  54100. + size_t p_len;
  54101. + for (q = p; *q; q++)
  54102. + if (IS_PATH_SEPARATOR (*q))
  54103. + break;
  54104. + p_len = q - p;
  54105. + p_next = (*q == '\0' ? q : q + 1);
  54106. + if (p_len == 0)
  54107. + {
  54108. + /* empty path: current directory */
  54109. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  54110. + lt_fatal ("getcwd failed");
  54111. + tmp_len = strlen (tmp);
  54112. + concat_name =
  54113. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  54114. + memcpy (concat_name, tmp, tmp_len);
  54115. + concat_name[tmp_len] = '/';
  54116. + strcpy (concat_name + tmp_len + 1, wrapper);
  54117. + }
  54118. + else
  54119. + {
  54120. + concat_name =
  54121. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  54122. + memcpy (concat_name, p, p_len);
  54123. + concat_name[p_len] = '/';
  54124. + strcpy (concat_name + p_len + 1, wrapper);
  54125. + }
  54126. + if (check_executable (concat_name))
  54127. + return concat_name;
  54128. + XFREE (concat_name);
  54129. + }
  54130. + }
  54131. + /* not found in PATH; assume curdir */
  54132. + }
  54133. + /* Relative path | not found in path: prepend cwd */
  54134. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  54135. + lt_fatal ("getcwd failed");
  54136. + tmp_len = strlen (tmp);
  54137. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  54138. + memcpy (concat_name, tmp, tmp_len);
  54139. + concat_name[tmp_len] = '/';
  54140. + strcpy (concat_name + tmp_len + 1, wrapper);
  54141. - if test -n "$vinfo"; then
  54142. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  54143. - fi
  54144. + if (check_executable (concat_name))
  54145. + return concat_name;
  54146. + XFREE (concat_name);
  54147. + return NULL;
  54148. +}
  54149. - if test -n "$release"; then
  54150. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  54151. - fi
  54152. +char *
  54153. +chase_symlinks (const char *pathspec)
  54154. +{
  54155. +#ifndef S_ISLNK
  54156. + return xstrdup (pathspec);
  54157. +#else
  54158. + char buf[LT_PATHMAX];
  54159. + struct stat s;
  54160. + char *tmp_pathspec = xstrdup (pathspec);
  54161. + char *p;
  54162. + int has_symlinks = 0;
  54163. + while (strlen (tmp_pathspec) && !has_symlinks)
  54164. + {
  54165. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  54166. + tmp_pathspec));
  54167. + if (lstat (tmp_pathspec, &s) == 0)
  54168. + {
  54169. + if (S_ISLNK (s.st_mode) != 0)
  54170. + {
  54171. + has_symlinks = 1;
  54172. + break;
  54173. + }
  54174. - case $output in
  54175. - *.lo)
  54176. - if test -n "$objs$old_deplibs"; then
  54177. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  54178. - exit $EXIT_FAILURE
  54179. - fi
  54180. - libobj="$output"
  54181. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  54182. - ;;
  54183. - *)
  54184. - libobj=
  54185. - obj="$output"
  54186. - ;;
  54187. - esac
  54188. + /* search backwards for last DIR_SEPARATOR */
  54189. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  54190. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  54191. + p--;
  54192. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  54193. + {
  54194. + /* no more DIR_SEPARATORS left */
  54195. + break;
  54196. + }
  54197. + *p = '\0';
  54198. + }
  54199. + else
  54200. + {
  54201. + char *errstr = strerror (errno);
  54202. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  54203. + }
  54204. + }
  54205. + XFREE (tmp_pathspec);
  54206. - # Delete the old objects.
  54207. - $run $rm $obj $libobj
  54208. + if (!has_symlinks)
  54209. + {
  54210. + return xstrdup (pathspec);
  54211. + }
  54212. - # Objects from convenience libraries. This assumes
  54213. - # single-version convenience libraries. Whenever we create
  54214. - # different ones for PIC/non-PIC, this we'll have to duplicate
  54215. - # the extraction.
  54216. - reload_conv_objs=
  54217. - gentop=
  54218. - # reload_cmds runs $LD directly, so let us get rid of
  54219. - # -Wl from whole_archive_flag_spec
  54220. - wl=
  54221. + tmp_pathspec = realpath (pathspec, buf);
  54222. + if (tmp_pathspec == 0)
  54223. + {
  54224. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  54225. + }
  54226. + return xstrdup (tmp_pathspec);
  54227. +#endif
  54228. +}
  54229. - if test -n "$convenience"; then
  54230. - if test -n "$whole_archive_flag_spec"; then
  54231. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  54232. - else
  54233. - gentop="$output_objdir/${obj}x"
  54234. - generated="$generated $gentop"
  54235. +char *
  54236. +strendzap (char *str, const char *pat)
  54237. +{
  54238. + size_t len, patlen;
  54239. - func_extract_archives $gentop $convenience
  54240. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  54241. - fi
  54242. - fi
  54243. + assert (str != NULL);
  54244. + assert (pat != NULL);
  54245. - # Create the old-style object.
  54246. - 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
  54247. + len = strlen (str);
  54248. + patlen = strlen (pat);
  54249. - output="$obj"
  54250. - cmds=$reload_cmds
  54251. - save_ifs="$IFS"; IFS='~'
  54252. - for cmd in $cmds; do
  54253. - IFS="$save_ifs"
  54254. - eval cmd=\"$cmd\"
  54255. - $show "$cmd"
  54256. - $run eval "$cmd" || exit $?
  54257. - done
  54258. - IFS="$save_ifs"
  54259. + if (patlen <= len)
  54260. + {
  54261. + str += len - patlen;
  54262. + if (strcmp (str, pat) == 0)
  54263. + *str = '\0';
  54264. + }
  54265. + return str;
  54266. +}
  54267. - # Exit if we aren't doing a library object file.
  54268. - if test -z "$libobj"; then
  54269. - if test -n "$gentop"; then
  54270. - $show "${rm}r $gentop"
  54271. - $run ${rm}r $gentop
  54272. - fi
  54273. +static void
  54274. +lt_error_core (int exit_status, const char *mode,
  54275. + const char *message, va_list ap)
  54276. +{
  54277. + fprintf (stderr, "%s: %s: ", program_name, mode);
  54278. + vfprintf (stderr, message, ap);
  54279. + fprintf (stderr, ".\n");
  54280. - exit $EXIT_SUCCESS
  54281. - fi
  54282. + if (exit_status >= 0)
  54283. + exit (exit_status);
  54284. +}
  54285. - if test "$build_libtool_libs" != yes; then
  54286. - if test -n "$gentop"; then
  54287. - $show "${rm}r $gentop"
  54288. - $run ${rm}r $gentop
  54289. - fi
  54290. +void
  54291. +lt_fatal (const char *message, ...)
  54292. +{
  54293. + va_list ap;
  54294. + va_start (ap, message);
  54295. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  54296. + va_end (ap);
  54297. +}
  54298. - # Create an invalid libtool object if no PIC, so that we don't
  54299. - # accidentally link it into a program.
  54300. - # $show "echo timestamp > $libobj"
  54301. - # $run eval "echo timestamp > $libobj" || exit $?
  54302. - exit $EXIT_SUCCESS
  54303. - fi
  54304. +void
  54305. +lt_setenv (const char *name, const char *value)
  54306. +{
  54307. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  54308. + (name ? name : "<NULL>"),
  54309. + (value ? value : "<NULL>")));
  54310. + {
  54311. +#ifdef HAVE_SETENV
  54312. + /* always make a copy, for consistency with !HAVE_SETENV */
  54313. + char *str = xstrdup (value);
  54314. + setenv (name, str, 1);
  54315. +#else
  54316. + int len = strlen (name) + 1 + strlen (value) + 1;
  54317. + char *str = XMALLOC (char, len);
  54318. + sprintf (str, "%s=%s", name, value);
  54319. + if (putenv (str) != EXIT_SUCCESS)
  54320. + {
  54321. + XFREE (str);
  54322. + }
  54323. +#endif
  54324. + }
  54325. +}
  54326. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  54327. - # Only do commands if we really have different PIC objects.
  54328. - reload_objs="$libobjs $reload_conv_objs"
  54329. - output="$libobj"
  54330. - cmds=$reload_cmds
  54331. - save_ifs="$IFS"; IFS='~'
  54332. - for cmd in $cmds; do
  54333. - IFS="$save_ifs"
  54334. - eval cmd=\"$cmd\"
  54335. - $show "$cmd"
  54336. - $run eval "$cmd" || exit $?
  54337. - done
  54338. - IFS="$save_ifs"
  54339. - fi
  54340. +char *
  54341. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  54342. +{
  54343. + char *new_value;
  54344. + if (orig_value && *orig_value)
  54345. + {
  54346. + int orig_value_len = strlen (orig_value);
  54347. + int add_len = strlen (add);
  54348. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  54349. + if (to_end)
  54350. + {
  54351. + strcpy (new_value, orig_value);
  54352. + strcpy (new_value + orig_value_len, add);
  54353. + }
  54354. + else
  54355. + {
  54356. + strcpy (new_value, add);
  54357. + strcpy (new_value + add_len, orig_value);
  54358. + }
  54359. + }
  54360. + else
  54361. + {
  54362. + new_value = xstrdup (add);
  54363. + }
  54364. + return new_value;
  54365. +}
  54366. - if test -n "$gentop"; then
  54367. - $show "${rm}r $gentop"
  54368. - $run ${rm}r $gentop
  54369. - fi
  54370. +int
  54371. +lt_split_name_value (const char *arg, char** name, char** value)
  54372. +{
  54373. + const char *p;
  54374. + int len;
  54375. + if (!arg || !*arg)
  54376. + return 1;
  54377. - exit $EXIT_SUCCESS
  54378. - ;;
  54379. + p = strchr (arg, (int)'=');
  54380. - prog)
  54381. - case $host in
  54382. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  54383. - esac
  54384. - if test -n "$vinfo"; then
  54385. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  54386. - fi
  54387. + if (!p)
  54388. + return 1;
  54389. - if test -n "$release"; then
  54390. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  54391. - fi
  54392. + *value = xstrdup (++p);
  54393. - if test "$preload" = yes; then
  54394. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  54395. - test "$dlopen_self_static" = unknown; then
  54396. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  54397. - fi
  54398. - fi
  54399. + len = strlen (arg) - strlen (*value);
  54400. + *name = XMALLOC (char, len);
  54401. + strncpy (*name, arg, len-1);
  54402. + (*name)[len - 1] = '\0';
  54403. - case $host in
  54404. - *-*-rhapsody* | *-*-darwin1.[012])
  54405. - # On Rhapsody replace the C library is the System framework
  54406. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54407. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54408. - ;;
  54409. - esac
  54410. + return 0;
  54411. +}
  54412. - case $host in
  54413. - *darwin*)
  54414. - # Don't allow lazy linking, it breaks C++ global constructors
  54415. - if test "$tagname" = CXX ; then
  54416. - compile_command="$compile_command ${wl}-bind_at_load"
  54417. - finalize_command="$finalize_command ${wl}-bind_at_load"
  54418. - fi
  54419. - ;;
  54420. - esac
  54421. +void
  54422. +lt_opt_process_env_set (const char *arg)
  54423. +{
  54424. + char *name = NULL;
  54425. + char *value = NULL;
  54426. + if (lt_split_name_value (arg, &name, &value) != 0)
  54427. + {
  54428. + XFREE (name);
  54429. + XFREE (value);
  54430. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  54431. + }
  54432. - # move library search paths that coincide with paths to not yet
  54433. - # installed libraries to the beginning of the library search list
  54434. - new_libs=
  54435. - for path in $notinst_path; do
  54436. - case " $new_libs " in
  54437. - *" -L$path/$objdir "*) ;;
  54438. - *)
  54439. - case " $compile_deplibs " in
  54440. - *" -L$path/$objdir "*)
  54441. - new_libs="$new_libs -L$path/$objdir" ;;
  54442. - esac
  54443. - ;;
  54444. - esac
  54445. - done
  54446. - for deplib in $compile_deplibs; do
  54447. - case $deplib in
  54448. - -L*)
  54449. - case " $new_libs " in
  54450. - *" $deplib "*) ;;
  54451. - *) new_libs="$new_libs $deplib" ;;
  54452. - esac
  54453. - ;;
  54454. - *) new_libs="$new_libs $deplib" ;;
  54455. - esac
  54456. - done
  54457. - compile_deplibs="$new_libs"
  54458. -
  54459. + lt_setenv (name, value);
  54460. + XFREE (name);
  54461. + XFREE (value);
  54462. +}
  54463. - compile_command="$compile_command $compile_deplibs"
  54464. - finalize_command="$finalize_command $finalize_deplibs"
  54465. +void
  54466. +lt_opt_process_env_prepend (const char *arg)
  54467. +{
  54468. + char *name = NULL;
  54469. + char *value = NULL;
  54470. + char *new_value = NULL;
  54471. - if test -n "$rpath$xrpath"; then
  54472. - # If the user specified any rpath flags, then add them.
  54473. - for libdir in $rpath $xrpath; do
  54474. - # This is the magic to use -rpath.
  54475. - case "$finalize_rpath " in
  54476. - *" $libdir "*) ;;
  54477. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  54478. - esac
  54479. - done
  54480. - fi
  54481. + if (lt_split_name_value (arg, &name, &value) != 0)
  54482. + {
  54483. + XFREE (name);
  54484. + XFREE (value);
  54485. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  54486. + }
  54487. - # Now hardcode the library paths
  54488. - rpath=
  54489. - hardcode_libdirs=
  54490. - for libdir in $compile_rpath $finalize_rpath; do
  54491. - if test -n "$hardcode_libdir_flag_spec"; then
  54492. - if test -n "$hardcode_libdir_separator"; then
  54493. - if test -z "$hardcode_libdirs"; then
  54494. - hardcode_libdirs="$libdir"
  54495. - else
  54496. - # Just accumulate the unique libdirs.
  54497. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54498. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54499. - ;;
  54500. - *)
  54501. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54502. - ;;
  54503. - esac
  54504. - fi
  54505. - else
  54506. - eval flag=\"$hardcode_libdir_flag_spec\"
  54507. - rpath="$rpath $flag"
  54508. - fi
  54509. - elif test -n "$runpath_var"; then
  54510. - case "$perm_rpath " in
  54511. - *" $libdir "*) ;;
  54512. - *) perm_rpath="$perm_rpath $libdir" ;;
  54513. - esac
  54514. - fi
  54515. - case $host in
  54516. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  54517. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  54518. - case :$dllsearchpath: in
  54519. - *":$libdir:"*) ;;
  54520. - *) dllsearchpath="$dllsearchpath:$libdir";;
  54521. - esac
  54522. - case :$dllsearchpath: in
  54523. - *":$testbindir:"*) ;;
  54524. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  54525. - esac
  54526. - ;;
  54527. - esac
  54528. - done
  54529. - # Substitute the hardcoded libdirs into the rpath.
  54530. - if test -n "$hardcode_libdir_separator" &&
  54531. - test -n "$hardcode_libdirs"; then
  54532. - libdir="$hardcode_libdirs"
  54533. - eval rpath=\" $hardcode_libdir_flag_spec\"
  54534. - fi
  54535. - compile_rpath="$rpath"
  54536. + new_value = lt_extend_str (getenv (name), value, 0);
  54537. + lt_setenv (name, new_value);
  54538. + XFREE (new_value);
  54539. + XFREE (name);
  54540. + XFREE (value);
  54541. +}
  54542. - rpath=
  54543. - hardcode_libdirs=
  54544. - for libdir in $finalize_rpath; do
  54545. - if test -n "$hardcode_libdir_flag_spec"; then
  54546. - if test -n "$hardcode_libdir_separator"; then
  54547. - if test -z "$hardcode_libdirs"; then
  54548. - hardcode_libdirs="$libdir"
  54549. - else
  54550. - # Just accumulate the unique libdirs.
  54551. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54552. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54553. - ;;
  54554. - *)
  54555. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54556. - ;;
  54557. - esac
  54558. - fi
  54559. - else
  54560. - eval flag=\"$hardcode_libdir_flag_spec\"
  54561. - rpath="$rpath $flag"
  54562. - fi
  54563. - elif test -n "$runpath_var"; then
  54564. - case "$finalize_perm_rpath " in
  54565. - *" $libdir "*) ;;
  54566. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  54567. - esac
  54568. - fi
  54569. - done
  54570. - # Substitute the hardcoded libdirs into the rpath.
  54571. - if test -n "$hardcode_libdir_separator" &&
  54572. - test -n "$hardcode_libdirs"; then
  54573. - libdir="$hardcode_libdirs"
  54574. - eval rpath=\" $hardcode_libdir_flag_spec\"
  54575. - fi
  54576. - finalize_rpath="$rpath"
  54577. +void
  54578. +lt_opt_process_env_append (const char *arg)
  54579. +{
  54580. + char *name = NULL;
  54581. + char *value = NULL;
  54582. + char *new_value = NULL;
  54583. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  54584. - # Transform all the library objects into standard objects.
  54585. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54586. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54587. - fi
  54588. + if (lt_split_name_value (arg, &name, &value) != 0)
  54589. + {
  54590. + XFREE (name);
  54591. + XFREE (value);
  54592. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  54593. + }
  54594. - dlsyms=
  54595. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54596. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  54597. - dlsyms="${outputname}S.c"
  54598. - else
  54599. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  54600. - fi
  54601. - fi
  54602. + new_value = lt_extend_str (getenv (name), value, 1);
  54603. + lt_setenv (name, new_value);
  54604. + XFREE (new_value);
  54605. + XFREE (name);
  54606. + XFREE (value);
  54607. +}
  54608. - if test -n "$dlsyms"; then
  54609. - case $dlsyms in
  54610. - "") ;;
  54611. - *.c)
  54612. - # Discover the nlist of each of the dlfiles.
  54613. - nlist="$output_objdir/${outputname}.nm"
  54614. +void
  54615. +lt_update_exe_path (const char *name, const char *value)
  54616. +{
  54617. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  54618. + (name ? name : "<NULL>"),
  54619. + (value ? value : "<NULL>")));
  54620. - $show "$rm $nlist ${nlist}S ${nlist}T"
  54621. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  54622. + if (name && *name && value && *value)
  54623. + {
  54624. + char *new_value = lt_extend_str (getenv (name), value, 0);
  54625. + /* some systems can't cope with a ':'-terminated path #' */
  54626. + int len = strlen (new_value);
  54627. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  54628. + {
  54629. + new_value[len-1] = '\0';
  54630. + }
  54631. + lt_setenv (name, new_value);
  54632. + XFREE (new_value);
  54633. + }
  54634. +}
  54635. - # Parse the name list into a source file.
  54636. - $show "creating $output_objdir/$dlsyms"
  54637. +void
  54638. +lt_update_lib_path (const char *name, const char *value)
  54639. +{
  54640. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  54641. + (name ? name : "<NULL>"),
  54642. + (value ? value : "<NULL>")));
  54643. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  54644. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  54645. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  54646. + if (name && *name && value && *value)
  54647. + {
  54648. + char *new_value = lt_extend_str (getenv (name), value, 0);
  54649. + lt_setenv (name, new_value);
  54650. + XFREE (new_value);
  54651. + }
  54652. +}
  54653. -#ifdef __cplusplus
  54654. -extern \"C\" {
  54655. -#endif
  54656. -/* Prevent the only kind of declaration conflicts we can make. */
  54657. -#define lt_preloaded_symbols some_other_symbol
  54658. +EOF
  54659. +}
  54660. +# end: func_emit_cwrapperexe_src
  54661. -/* External symbol declarations for the compiler. */\
  54662. -"
  54663. +# func_mode_link arg...
  54664. +func_mode_link ()
  54665. +{
  54666. + $opt_debug
  54667. + case $host in
  54668. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  54669. + # It is impossible to link a dll without this setting, and
  54670. + # we shouldn't force the makefile maintainer to figure out
  54671. + # which system we are compiling for in order to pass an extra
  54672. + # flag for every libtool invocation.
  54673. + # allow_undefined=no
  54674. - if test "$dlself" = yes; then
  54675. - $show "generating symbol list for \`$output'"
  54676. + # FIXME: Unfortunately, there are problems with the above when trying
  54677. + # to make a dll which has undefined symbols, in which case not
  54678. + # even a static library is built. For now, we need to specify
  54679. + # -no-undefined on the libtool link line when we can be certain
  54680. + # that all symbols are satisfied, otherwise we get a static library.
  54681. + allow_undefined=yes
  54682. + ;;
  54683. + *)
  54684. + allow_undefined=yes
  54685. + ;;
  54686. + esac
  54687. + libtool_args=$nonopt
  54688. + base_compile="$nonopt $@"
  54689. + compile_command=$nonopt
  54690. + finalize_command=$nonopt
  54691. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  54692. + compile_rpath=
  54693. + finalize_rpath=
  54694. + compile_shlibpath=
  54695. + finalize_shlibpath=
  54696. + convenience=
  54697. + old_convenience=
  54698. + deplibs=
  54699. + old_deplibs=
  54700. + compiler_flags=
  54701. + linker_flags=
  54702. + dllsearchpath=
  54703. + lib_search_path=`pwd`
  54704. + inst_prefix_dir=
  54705. + new_inherited_linker_flags=
  54706. - # Add our own program objects to the symbol list.
  54707. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54708. - for arg in $progfiles; do
  54709. - $show "extracting global C symbols from \`$arg'"
  54710. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54711. - done
  54712. + avoid_version=no
  54713. + dlfiles=
  54714. + dlprefiles=
  54715. + dlself=no
  54716. + export_dynamic=no
  54717. + export_symbols=
  54718. + export_symbols_regex=
  54719. + generated=
  54720. + libobjs=
  54721. + ltlibs=
  54722. + module=no
  54723. + no_install=no
  54724. + objs=
  54725. + non_pic_objects=
  54726. + precious_files_regex=
  54727. + prefer_static_libs=no
  54728. + preload=no
  54729. + prev=
  54730. + prevarg=
  54731. + release=
  54732. + rpath=
  54733. + xrpath=
  54734. + perm_rpath=
  54735. + temp_rpath=
  54736. + thread_safe=no
  54737. + vinfo=
  54738. + vinfo_number=no
  54739. + weak_libs=
  54740. + single_module="${wl}-single_module"
  54741. + func_infer_tag $base_compile
  54742. - if test -n "$exclude_expsyms"; then
  54743. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  54744. - $run eval '$mv "$nlist"T "$nlist"'
  54745. - fi
  54746. -
  54747. - if test -n "$export_symbols_regex"; then
  54748. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  54749. - $run eval '$mv "$nlist"T "$nlist"'
  54750. - fi
  54751. -
  54752. - # Prepare the list of exported symbols
  54753. - if test -z "$export_symbols"; then
  54754. - export_symbols="$output_objdir/$outputname.exp"
  54755. - $run $rm $export_symbols
  54756. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  54757. - case $host in
  54758. - *cygwin* | *mingw* )
  54759. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  54760. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  54761. - ;;
  54762. - esac
  54763. - else
  54764. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  54765. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  54766. - $run eval 'mv "$nlist"T "$nlist"'
  54767. - case $host in
  54768. - *cygwin* | *mingw* )
  54769. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  54770. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  54771. - ;;
  54772. - esac
  54773. - fi
  54774. + # We need to know -static, to get the right output filenames.
  54775. + for arg
  54776. + do
  54777. + case $arg in
  54778. + -shared)
  54779. + test "$build_libtool_libs" != yes && \
  54780. + func_fatal_configuration "can not build a shared library"
  54781. + build_old_libs=no
  54782. + break
  54783. + ;;
  54784. + -all-static | -static | -static-libtool-libs)
  54785. + case $arg in
  54786. + -all-static)
  54787. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  54788. + func_warning "complete static linking is impossible in this configuration"
  54789. fi
  54790. + if test -n "$link_static_flag"; then
  54791. + dlopen_self=$dlopen_self_static
  54792. + fi
  54793. + prefer_static_libs=yes
  54794. + ;;
  54795. + -static)
  54796. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  54797. + dlopen_self=$dlopen_self_static
  54798. + fi
  54799. + prefer_static_libs=built
  54800. + ;;
  54801. + -static-libtool-libs)
  54802. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  54803. + dlopen_self=$dlopen_self_static
  54804. + fi
  54805. + prefer_static_libs=yes
  54806. + ;;
  54807. + esac
  54808. + build_libtool_libs=no
  54809. + build_old_libs=yes
  54810. + break
  54811. + ;;
  54812. + esac
  54813. + done
  54814. - for arg in $dlprefiles; do
  54815. - $show "extracting global C symbols from \`$arg'"
  54816. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  54817. - $run eval '$echo ": $name " >> "$nlist"'
  54818. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54819. - done
  54820. -
  54821. - if test -z "$run"; then
  54822. - # Make sure we have at least an empty file.
  54823. - test -f "$nlist" || : > "$nlist"
  54824. -
  54825. - if test -n "$exclude_expsyms"; then
  54826. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  54827. - $mv "$nlist"T "$nlist"
  54828. - fi
  54829. + # See if our shared archives depend on static archives.
  54830. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  54831. - # Try sorting and uniquifying the output.
  54832. - if grep -v "^: " < "$nlist" |
  54833. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  54834. - sort -k 3
  54835. - else
  54836. - sort +2
  54837. - fi |
  54838. - uniq > "$nlist"S; then
  54839. - :
  54840. + # Go through the arguments, transforming them on the way.
  54841. + while test "$#" -gt 0; do
  54842. + arg="$1"
  54843. + shift
  54844. + func_quote_for_eval "$arg"
  54845. + qarg=$func_quote_for_eval_unquoted_result
  54846. + func_append libtool_args " $func_quote_for_eval_result"
  54847. +
  54848. + # If the previous option needs an argument, assign it.
  54849. + if test -n "$prev"; then
  54850. + case $prev in
  54851. + output)
  54852. + func_append compile_command " @OUTPUT@"
  54853. + func_append finalize_command " @OUTPUT@"
  54854. + ;;
  54855. + esac
  54856. +
  54857. + case $prev in
  54858. + dlfiles|dlprefiles)
  54859. + if test "$preload" = no; then
  54860. + # Add the symbol object into the linking commands.
  54861. + func_append compile_command " @SYMFILE@"
  54862. + func_append finalize_command " @SYMFILE@"
  54863. + preload=yes
  54864. + fi
  54865. + case $arg in
  54866. + *.la | *.lo) ;; # We handle these cases below.
  54867. + force)
  54868. + if test "$dlself" = no; then
  54869. + dlself=needless
  54870. + export_dynamic=yes
  54871. + fi
  54872. + prev=
  54873. + continue
  54874. + ;;
  54875. + self)
  54876. + if test "$prev" = dlprefiles; then
  54877. + dlself=yes
  54878. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  54879. + dlself=yes
  54880. else
  54881. - grep -v "^: " < "$nlist" > "$nlist"S
  54882. + dlself=needless
  54883. + export_dynamic=yes
  54884. fi
  54885. -
  54886. - if test -f "$nlist"S; then
  54887. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  54888. + prev=
  54889. + continue
  54890. + ;;
  54891. + *)
  54892. + if test "$prev" = dlfiles; then
  54893. + dlfiles="$dlfiles $arg"
  54894. else
  54895. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  54896. + dlprefiles="$dlprefiles $arg"
  54897. fi
  54898. + prev=
  54899. + continue
  54900. + ;;
  54901. + esac
  54902. + ;;
  54903. + expsyms)
  54904. + export_symbols="$arg"
  54905. + test -f "$arg" \
  54906. + || func_fatal_error "symbol file \`$arg' does not exist"
  54907. + prev=
  54908. + continue
  54909. + ;;
  54910. + expsyms_regex)
  54911. + export_symbols_regex="$arg"
  54912. + prev=
  54913. + continue
  54914. + ;;
  54915. + framework)
  54916. + case $host in
  54917. + *-*-darwin*)
  54918. + case "$deplibs " in
  54919. + *" $qarg.ltframework "*) ;;
  54920. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  54921. + ;;
  54922. + esac
  54923. + ;;
  54924. + esac
  54925. + prev=
  54926. + continue
  54927. + ;;
  54928. + inst_prefix)
  54929. + inst_prefix_dir="$arg"
  54930. + prev=
  54931. + continue
  54932. + ;;
  54933. + objectlist)
  54934. + if test -f "$arg"; then
  54935. + save_arg=$arg
  54936. + moreargs=
  54937. + for fil in `cat "$save_arg"`
  54938. + do
  54939. +# moreargs="$moreargs $fil"
  54940. + arg=$fil
  54941. + # A libtool-controlled object.
  54942. - $echo >> "$output_objdir/$dlsyms" "\
  54943. + # Check to see that this really is a libtool object.
  54944. + if func_lalib_unsafe_p "$arg"; then
  54945. + pic_object=
  54946. + non_pic_object=
  54947. -#undef lt_preloaded_symbols
  54948. + # Read the .lo file
  54949. + func_source "$arg"
  54950. -#if defined (__STDC__) && __STDC__
  54951. -# define lt_ptr void *
  54952. -#else
  54953. -# define lt_ptr char *
  54954. -# define const
  54955. -#endif
  54956. + if test -z "$pic_object" ||
  54957. + test -z "$non_pic_object" ||
  54958. + test "$pic_object" = none &&
  54959. + test "$non_pic_object" = none; then
  54960. + func_fatal_error "cannot find name of object for \`$arg'"
  54961. + fi
  54962. -/* The mapping between symbol names and symbols. */
  54963. -"
  54964. + # Extract subdirectory from the argument.
  54965. + func_dirname "$arg" "/" ""
  54966. + xdir="$func_dirname_result"
  54967. - case $host in
  54968. - *cygwin* | *mingw* )
  54969. - $echo >> "$output_objdir/$dlsyms" "\
  54970. -/* DATA imports from DLLs on WIN32 can't be const, because
  54971. - runtime relocations are performed -- see ld's documentation
  54972. - on pseudo-relocs */
  54973. -struct {
  54974. -"
  54975. - ;;
  54976. - * )
  54977. - $echo >> "$output_objdir/$dlsyms" "\
  54978. -const struct {
  54979. -"
  54980. - ;;
  54981. - esac
  54982. + if test "$pic_object" != none; then
  54983. + # Prepend the subdirectory the object is found in.
  54984. + pic_object="$xdir$pic_object"
  54985. + if test "$prev" = dlfiles; then
  54986. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  54987. + dlfiles="$dlfiles $pic_object"
  54988. + prev=
  54989. + continue
  54990. + else
  54991. + # If libtool objects are unsupported, then we need to preload.
  54992. + prev=dlprefiles
  54993. + fi
  54994. + fi
  54995. - $echo >> "$output_objdir/$dlsyms" "\
  54996. - const char *name;
  54997. - lt_ptr address;
  54998. -}
  54999. -lt_preloaded_symbols[] =
  55000. -{\
  55001. -"
  55002. + # CHECK ME: I think I busted this. -Ossama
  55003. + if test "$prev" = dlprefiles; then
  55004. + # Preload the old-style object.
  55005. + dlprefiles="$dlprefiles $pic_object"
  55006. + prev=
  55007. + fi
  55008. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  55009. + # A PIC object.
  55010. + func_append libobjs " $pic_object"
  55011. + arg="$pic_object"
  55012. + fi
  55013. - $echo >> "$output_objdir/$dlsyms" "\
  55014. - {0, (lt_ptr) 0}
  55015. -};
  55016. + # Non-PIC object.
  55017. + if test "$non_pic_object" != none; then
  55018. + # Prepend the subdirectory the object is found in.
  55019. + non_pic_object="$xdir$non_pic_object"
  55020. -/* This works around a problem in FreeBSD linker */
  55021. -#ifdef FREEBSD_WORKAROUND
  55022. -static const void *lt_preloaded_setup() {
  55023. - return lt_preloaded_symbols;
  55024. -}
  55025. -#endif
  55026. + # A standard non-PIC object
  55027. + func_append non_pic_objects " $non_pic_object"
  55028. + if test -z "$pic_object" || test "$pic_object" = none ; then
  55029. + arg="$non_pic_object"
  55030. + fi
  55031. + else
  55032. + # If the PIC object exists, use it instead.
  55033. + # $xdir was prepended to $pic_object above.
  55034. + non_pic_object="$pic_object"
  55035. + func_append non_pic_objects " $non_pic_object"
  55036. + fi
  55037. + else
  55038. + # Only an error if not doing a dry-run.
  55039. + if $opt_dry_run; then
  55040. + # Extract subdirectory from the argument.
  55041. + func_dirname "$arg" "/" ""
  55042. + xdir="$func_dirname_result"
  55043. -#ifdef __cplusplus
  55044. -}
  55045. -#endif\
  55046. -"
  55047. + func_lo2o "$arg"
  55048. + pic_object=$xdir$objdir/$func_lo2o_result
  55049. + non_pic_object=$xdir$func_lo2o_result
  55050. + func_append libobjs " $pic_object"
  55051. + func_append non_pic_objects " $non_pic_object"
  55052. + else
  55053. + func_fatal_error "\`$arg' is not a valid libtool object"
  55054. + fi
  55055. + fi
  55056. + done
  55057. + else
  55058. + func_fatal_error "link input file \`$arg' does not exist"
  55059. fi
  55060. -
  55061. - pic_flag_for_symtable=
  55062. - case $host in
  55063. - # compiling the symbol table file with pic_flag works around
  55064. - # a FreeBSD bug that causes programs to crash when -lm is
  55065. - # linked before any other PIC object. But we must not use
  55066. - # pic_flag when linking with -static. The problem exists in
  55067. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  55068. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  55069. - case "$compile_command " in
  55070. - *" -static "*) ;;
  55071. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  55072. - esac;;
  55073. - *-*-hpux*)
  55074. - case "$compile_command " in
  55075. - *" -static "*) ;;
  55076. - *) pic_flag_for_symtable=" $pic_flag";;
  55077. - esac
  55078. + arg=$save_arg
  55079. + prev=
  55080. + continue
  55081. + ;;
  55082. + precious_regex)
  55083. + precious_files_regex="$arg"
  55084. + prev=
  55085. + continue
  55086. + ;;
  55087. + release)
  55088. + release="-$arg"
  55089. + prev=
  55090. + continue
  55091. + ;;
  55092. + rpath | xrpath)
  55093. + # We need an absolute path.
  55094. + case $arg in
  55095. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55096. + *)
  55097. + func_fatal_error "only absolute run-paths are allowed"
  55098. + ;;
  55099. esac
  55100. -
  55101. - # Now compile the dynamic symbol file.
  55102. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  55103. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  55104. -
  55105. - # Clean up the generated files.
  55106. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  55107. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  55108. -
  55109. - # Transform the symbol file into the correct name.
  55110. - case $host in
  55111. - *cygwin* | *mingw* )
  55112. - if test -f "$output_objdir/${outputname}.def" ; then
  55113. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  55114. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  55115. - else
  55116. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  55117. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  55118. - fi
  55119. - ;;
  55120. - * )
  55121. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  55122. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  55123. - ;;
  55124. - esac
  55125. + if test "$prev" = rpath; then
  55126. + case "$rpath " in
  55127. + *" $arg "*) ;;
  55128. + *) rpath="$rpath $arg" ;;
  55129. + esac
  55130. + else
  55131. + case "$xrpath " in
  55132. + *" $arg "*) ;;
  55133. + *) xrpath="$xrpath $arg" ;;
  55134. + esac
  55135. + fi
  55136. + prev=
  55137. + continue
  55138. + ;;
  55139. + shrext)
  55140. + shrext_cmds="$arg"
  55141. + prev=
  55142. + continue
  55143. + ;;
  55144. + weak)
  55145. + weak_libs="$weak_libs $arg"
  55146. + prev=
  55147. + continue
  55148. + ;;
  55149. + xcclinker)
  55150. + linker_flags="$linker_flags $qarg"
  55151. + compiler_flags="$compiler_flags $qarg"
  55152. + prev=
  55153. + func_append compile_command " $qarg"
  55154. + func_append finalize_command " $qarg"
  55155. + continue
  55156. + ;;
  55157. + xcompiler)
  55158. + compiler_flags="$compiler_flags $qarg"
  55159. + prev=
  55160. + func_append compile_command " $qarg"
  55161. + func_append finalize_command " $qarg"
  55162. + continue
  55163. + ;;
  55164. + xlinker)
  55165. + linker_flags="$linker_flags $qarg"
  55166. + compiler_flags="$compiler_flags $wl$qarg"
  55167. + prev=
  55168. + func_append compile_command " $wl$qarg"
  55169. + func_append finalize_command " $wl$qarg"
  55170. + continue
  55171. ;;
  55172. *)
  55173. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  55174. - exit $EXIT_FAILURE
  55175. + eval "$prev=\"\$arg\""
  55176. + prev=
  55177. + continue
  55178. ;;
  55179. esac
  55180. - else
  55181. - # We keep going just in case the user didn't refer to
  55182. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  55183. - # really was required.
  55184. + fi # test -n "$prev"
  55185. - # Nullify the symbol file.
  55186. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  55187. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  55188. - fi
  55189. + prevarg="$arg"
  55190. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  55191. - # Replace the output file specification.
  55192. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  55193. - link_command="$compile_command$compile_rpath"
  55194. + case $arg in
  55195. + -all-static)
  55196. + if test -n "$link_static_flag"; then
  55197. + # See comment for -static flag below, for more details.
  55198. + func_append compile_command " $link_static_flag"
  55199. + func_append finalize_command " $link_static_flag"
  55200. + fi
  55201. + continue
  55202. + ;;
  55203. - # We have no uninstalled library dependencies, so finalize right now.
  55204. - $show "$link_command"
  55205. - $run eval "$link_command"
  55206. - exit_status=$?
  55207. + -allow-undefined)
  55208. + # FIXME: remove this flag sometime in the future.
  55209. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  55210. + ;;
  55211. - # Delete the generated files.
  55212. - if test -n "$dlsyms"; then
  55213. - $show "$rm $output_objdir/${outputname}S.${objext}"
  55214. - $run $rm "$output_objdir/${outputname}S.${objext}"
  55215. - fi
  55216. + -avoid-version)
  55217. + avoid_version=yes
  55218. + continue
  55219. + ;;
  55220. - exit $exit_status
  55221. - fi
  55222. + -dlopen)
  55223. + prev=dlfiles
  55224. + continue
  55225. + ;;
  55226. - if test -n "$shlibpath_var"; then
  55227. - # We should set the shlibpath_var
  55228. - rpath=
  55229. - for dir in $temp_rpath; do
  55230. - case $dir in
  55231. - [\\/]* | [A-Za-z]:[\\/]*)
  55232. - # Absolute path.
  55233. - rpath="$rpath$dir:"
  55234. - ;;
  55235. - *)
  55236. - # Relative path: add a thisdir entry.
  55237. - rpath="$rpath\$thisdir/$dir:"
  55238. - ;;
  55239. - esac
  55240. - done
  55241. - temp_rpath="$rpath"
  55242. - fi
  55243. + -dlpreopen)
  55244. + prev=dlprefiles
  55245. + continue
  55246. + ;;
  55247. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  55248. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  55249. - fi
  55250. - if test -n "$finalize_shlibpath"; then
  55251. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  55252. - fi
  55253. + -export-dynamic)
  55254. + export_dynamic=yes
  55255. + continue
  55256. + ;;
  55257. - compile_var=
  55258. - finalize_var=
  55259. - if test -n "$runpath_var"; then
  55260. - if test -n "$perm_rpath"; then
  55261. - # We should set the runpath_var.
  55262. - rpath=
  55263. - for dir in $perm_rpath; do
  55264. - rpath="$rpath$dir:"
  55265. - done
  55266. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55267. + -export-symbols | -export-symbols-regex)
  55268. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  55269. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  55270. fi
  55271. - if test -n "$finalize_perm_rpath"; then
  55272. - # We should set the runpath_var.
  55273. - rpath=
  55274. - for dir in $finalize_perm_rpath; do
  55275. - rpath="$rpath$dir:"
  55276. - done
  55277. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  55278. + if test "X$arg" = "X-export-symbols"; then
  55279. + prev=expsyms
  55280. + else
  55281. + prev=expsyms_regex
  55282. fi
  55283. - fi
  55284. + continue
  55285. + ;;
  55286. - if test "$no_install" = yes; then
  55287. - # We don't need to create a wrapper script.
  55288. - link_command="$compile_var$compile_command$compile_rpath"
  55289. - # Replace the output file specification.
  55290. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  55291. - # Delete the old output file.
  55292. - $run $rm $output
  55293. - # Link the executable and exit
  55294. - $show "$link_command"
  55295. - $run eval "$link_command" || exit $?
  55296. - exit $EXIT_SUCCESS
  55297. - fi
  55298. + -framework)
  55299. + prev=framework
  55300. + continue
  55301. + ;;
  55302. - if test "$hardcode_action" = relink; then
  55303. - # Fast installation is not supported
  55304. - link_command="$compile_var$compile_command$compile_rpath"
  55305. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  55306. + -inst-prefix-dir)
  55307. + prev=inst_prefix
  55308. + continue
  55309. + ;;
  55310. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  55311. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  55312. - else
  55313. - if test "$fast_install" != no; then
  55314. - link_command="$finalize_var$compile_command$finalize_rpath"
  55315. - if test "$fast_install" = yes; then
  55316. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  55317. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  55318. + # so, if we see these flags be careful not to treat them like -L
  55319. + -L[A-Z][A-Z]*:*)
  55320. + case $with_gcc/$host in
  55321. + no/*-*-irix* | /*-*-irix*)
  55322. + func_append compile_command " $arg"
  55323. + func_append finalize_command " $arg"
  55324. + ;;
  55325. + esac
  55326. + continue
  55327. + ;;
  55328. +
  55329. + -L*)
  55330. + func_stripname '-L' '' "$arg"
  55331. + dir=$func_stripname_result
  55332. + if test -z "$dir"; then
  55333. + if test "$#" -gt 0; then
  55334. + func_fatal_error "require no space between \`-L' and \`$1'"
  55335. else
  55336. - # fast_install is set to needless
  55337. - relink_command=
  55338. + func_fatal_error "need path for \`-L' option"
  55339. fi
  55340. - else
  55341. - link_command="$compile_var$compile_command$compile_rpath"
  55342. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  55343. fi
  55344. - fi
  55345. + # We need an absolute path.
  55346. + case $dir in
  55347. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55348. + *)
  55349. + absdir=`cd "$dir" && pwd`
  55350. + test -z "$absdir" && \
  55351. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  55352. + dir="$absdir"
  55353. + ;;
  55354. + esac
  55355. + case "$deplibs " in
  55356. + *" -L$dir "*) ;;
  55357. + *)
  55358. + deplibs="$deplibs -L$dir"
  55359. + lib_search_path="$lib_search_path $dir"
  55360. + ;;
  55361. + esac
  55362. + case $host in
  55363. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55364. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  55365. + case :$dllsearchpath: in
  55366. + *":$dir:"*) ;;
  55367. + ::) dllsearchpath=$dir;;
  55368. + *) dllsearchpath="$dllsearchpath:$dir";;
  55369. + esac
  55370. + case :$dllsearchpath: in
  55371. + *":$testbindir:"*) ;;
  55372. + ::) dllsearchpath=$testbindir;;
  55373. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  55374. + esac
  55375. + ;;
  55376. + esac
  55377. + continue
  55378. + ;;
  55379. - # Replace the output file specification.
  55380. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  55381. + -l*)
  55382. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  55383. + case $host in
  55384. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  55385. + # These systems don't actually have a C or math library (as such)
  55386. + continue
  55387. + ;;
  55388. + *-*-os2*)
  55389. + # These systems don't actually have a C library (as such)
  55390. + test "X$arg" = "X-lc" && continue
  55391. + ;;
  55392. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55393. + # Do not include libc due to us having libc/libc_r.
  55394. + test "X$arg" = "X-lc" && continue
  55395. + ;;
  55396. + *-*-rhapsody* | *-*-darwin1.[012])
  55397. + # Rhapsody C and math libraries are in the System framework
  55398. + deplibs="$deplibs System.ltframework"
  55399. + continue
  55400. + ;;
  55401. + *-*-sco3.2v5* | *-*-sco5v6*)
  55402. + # Causes problems with __ctype
  55403. + test "X$arg" = "X-lc" && continue
  55404. + ;;
  55405. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  55406. + # Compiler inserts libc in the correct place for threads to work
  55407. + test "X$arg" = "X-lc" && continue
  55408. + ;;
  55409. + esac
  55410. + elif test "X$arg" = "X-lc_r"; then
  55411. + case $host in
  55412. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55413. + # Do not include libc_r directly, use -pthread flag.
  55414. + continue
  55415. + ;;
  55416. + esac
  55417. + fi
  55418. + deplibs="$deplibs $arg"
  55419. + continue
  55420. + ;;
  55421. - # Delete the old output files.
  55422. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  55423. + -module)
  55424. + module=yes
  55425. + continue
  55426. + ;;
  55427. - $show "$link_command"
  55428. - $run eval "$link_command" || exit $?
  55429. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  55430. + # classes, name mangling, and exception handling.
  55431. + # Darwin uses the -arch flag to determine output architecture.
  55432. + -model|-arch|-isysroot)
  55433. + compiler_flags="$compiler_flags $arg"
  55434. + func_append compile_command " $arg"
  55435. + func_append finalize_command " $arg"
  55436. + prev=xcompiler
  55437. + continue
  55438. + ;;
  55439. - # Now create the wrapper script.
  55440. - $show "creating $output"
  55441. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  55442. + compiler_flags="$compiler_flags $arg"
  55443. + func_append compile_command " $arg"
  55444. + func_append finalize_command " $arg"
  55445. + case "$new_inherited_linker_flags " in
  55446. + *" $arg "*) ;;
  55447. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  55448. + esac
  55449. + continue
  55450. + ;;
  55451. - # Quote the relink command for shipping.
  55452. - if test -n "$relink_command"; then
  55453. - # Preserve any variables that may affect compiler behavior
  55454. - for var in $variables_saved_for_relink; do
  55455. - if eval test -z \"\${$var+set}\"; then
  55456. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  55457. - elif eval var_value=\$$var; test -z "$var_value"; then
  55458. - relink_command="$var=; export $var; $relink_command"
  55459. - else
  55460. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  55461. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  55462. - fi
  55463. - done
  55464. - relink_command="(cd `pwd`; $relink_command)"
  55465. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  55466. - fi
  55467. + -multi_module)
  55468. + single_module="${wl}-multi_module"
  55469. + continue
  55470. + ;;
  55471. - # Quote $echo for shipping.
  55472. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  55473. - case $progpath in
  55474. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  55475. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  55476. - esac
  55477. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  55478. - else
  55479. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  55480. - fi
  55481. + -no-fast-install)
  55482. + fast_install=no
  55483. + continue
  55484. + ;;
  55485. - # Only actually do things if our run command is non-null.
  55486. - if test -z "$run"; then
  55487. - # win32 will think the script is a binary if it has
  55488. - # a .exe suffix, so we strip it off here.
  55489. - case $output in
  55490. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  55491. - esac
  55492. - # test for cygwin because mv fails w/o .exe extensions
  55493. + -no-install)
  55494. case $host in
  55495. - *cygwin*)
  55496. - exeext=.exe
  55497. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  55498. - *) exeext= ;;
  55499. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  55500. + # The PATH hackery in wrapper scripts is required on Windows
  55501. + # and Darwin in order for the loader to find any dlls it needs.
  55502. + func_warning "\`-no-install' is ignored for $host"
  55503. + func_warning "assuming \`-no-fast-install' instead"
  55504. + fast_install=no
  55505. + ;;
  55506. + *) no_install=yes ;;
  55507. esac
  55508. - case $host in
  55509. - *cygwin* | *mingw* )
  55510. - output_name=`basename $output`
  55511. - output_path=`dirname $output`
  55512. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  55513. - cwrapper="$output_path/$output_name.exe"
  55514. - $rm $cwrappersource $cwrapper
  55515. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  55516. -
  55517. - cat > $cwrappersource <<EOF
  55518. + continue
  55519. + ;;
  55520. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  55521. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  55522. + -no-undefined)
  55523. + allow_undefined=no
  55524. + continue
  55525. + ;;
  55526. - The $output program cannot be directly executed until all the libtool
  55527. - libraries that it depends on are installed.
  55528. + -objectlist)
  55529. + prev=objectlist
  55530. + continue
  55531. + ;;
  55532. - This wrapper executable should never be moved out of the build directory.
  55533. - If it is, it will not operate correctly.
  55534. + -o) prev=output ;;
  55535. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  55536. - but could eventually absorb all of the scripts functionality and
  55537. - exec $objdir/$outputname directly.
  55538. -*/
  55539. -EOF
  55540. - cat >> $cwrappersource<<"EOF"
  55541. -#include <stdio.h>
  55542. -#include <stdlib.h>
  55543. -#include <unistd.h>
  55544. -#include <malloc.h>
  55545. -#include <stdarg.h>
  55546. -#include <assert.h>
  55547. -#include <string.h>
  55548. -#include <ctype.h>
  55549. -#include <sys/stat.h>
  55550. + -precious-files-regex)
  55551. + prev=precious_regex
  55552. + continue
  55553. + ;;
  55554. -#if defined(PATH_MAX)
  55555. -# define LT_PATHMAX PATH_MAX
  55556. -#elif defined(MAXPATHLEN)
  55557. -# define LT_PATHMAX MAXPATHLEN
  55558. -#else
  55559. -# define LT_PATHMAX 1024
  55560. -#endif
  55561. + -release)
  55562. + prev=release
  55563. + continue
  55564. + ;;
  55565. -#ifndef DIR_SEPARATOR
  55566. -# define DIR_SEPARATOR '/'
  55567. -# define PATH_SEPARATOR ':'
  55568. -#endif
  55569. + -rpath)
  55570. + prev=rpath
  55571. + continue
  55572. + ;;
  55573. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  55574. - defined (__OS2__)
  55575. -# define HAVE_DOS_BASED_FILE_SYSTEM
  55576. -# ifndef DIR_SEPARATOR_2
  55577. -# define DIR_SEPARATOR_2 '\\'
  55578. -# endif
  55579. -# ifndef PATH_SEPARATOR_2
  55580. -# define PATH_SEPARATOR_2 ';'
  55581. -# endif
  55582. -#endif
  55583. + -R)
  55584. + prev=xrpath
  55585. + continue
  55586. + ;;
  55587. -#ifndef DIR_SEPARATOR_2
  55588. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  55589. -#else /* DIR_SEPARATOR_2 */
  55590. -# define IS_DIR_SEPARATOR(ch) \
  55591. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  55592. -#endif /* DIR_SEPARATOR_2 */
  55593. + -R*)
  55594. + func_stripname '-R' '' "$arg"
  55595. + dir=$func_stripname_result
  55596. + # We need an absolute path.
  55597. + case $dir in
  55598. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55599. + *)
  55600. + func_fatal_error "only absolute run-paths are allowed"
  55601. + ;;
  55602. + esac
  55603. + case "$xrpath " in
  55604. + *" $dir "*) ;;
  55605. + *) xrpath="$xrpath $dir" ;;
  55606. + esac
  55607. + continue
  55608. + ;;
  55609. -#ifndef PATH_SEPARATOR_2
  55610. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  55611. -#else /* PATH_SEPARATOR_2 */
  55612. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  55613. -#endif /* PATH_SEPARATOR_2 */
  55614. + -shared)
  55615. + # The effects of -shared are defined in a previous loop.
  55616. + continue
  55617. + ;;
  55618. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  55619. -#define XFREE(stale) do { \
  55620. - if (stale) { free ((void *) stale); stale = 0; } \
  55621. -} while (0)
  55622. + -shrext)
  55623. + prev=shrext
  55624. + continue
  55625. + ;;
  55626. -/* -DDEBUG is fairly common in CFLAGS. */
  55627. -#undef DEBUG
  55628. -#if defined DEBUGWRAPPER
  55629. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  55630. -#else
  55631. -# define DEBUG(format, ...)
  55632. -#endif
  55633. + -static | -static-libtool-libs)
  55634. + # The effects of -static are defined in a previous loop.
  55635. + # We used to do the same as -all-static on platforms that
  55636. + # didn't have a PIC flag, but the assumption that the effects
  55637. + # would be equivalent was wrong. It would break on at least
  55638. + # Digital Unix and AIX.
  55639. + continue
  55640. + ;;
  55641. -const char *program_name = NULL;
  55642. + -thread-safe)
  55643. + thread_safe=yes
  55644. + continue
  55645. + ;;
  55646. -void * xmalloc (size_t num);
  55647. -char * xstrdup (const char *string);
  55648. -const char * base_name (const char *name);
  55649. -char * find_executable(const char *wrapper);
  55650. -int check_executable(const char *path);
  55651. -char * strendzap(char *str, const char *pat);
  55652. -void lt_fatal (const char *message, ...);
  55653. + -version-info)
  55654. + prev=vinfo
  55655. + continue
  55656. + ;;
  55657. -int
  55658. -main (int argc, char *argv[])
  55659. -{
  55660. - char **newargz;
  55661. - int i;
  55662. + -version-number)
  55663. + prev=vinfo
  55664. + vinfo_number=yes
  55665. + continue
  55666. + ;;
  55667. - program_name = (char *) xstrdup (base_name (argv[0]));
  55668. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  55669. - DEBUG("(main) program_name : %s\n",program_name);
  55670. - newargz = XMALLOC(char *, argc+2);
  55671. -EOF
  55672. + -weak)
  55673. + prev=weak
  55674. + continue
  55675. + ;;
  55676. - cat >> $cwrappersource <<EOF
  55677. - newargz[0] = (char *) xstrdup("$SHELL");
  55678. -EOF
  55679. + -Wc,*)
  55680. + func_stripname '-Wc,' '' "$arg"
  55681. + args=$func_stripname_result
  55682. + arg=
  55683. + save_ifs="$IFS"; IFS=','
  55684. + for flag in $args; do
  55685. + IFS="$save_ifs"
  55686. + func_quote_for_eval "$flag"
  55687. + arg="$arg $wl$func_quote_for_eval_result"
  55688. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  55689. + done
  55690. + IFS="$save_ifs"
  55691. + func_stripname ' ' '' "$arg"
  55692. + arg=$func_stripname_result
  55693. + ;;
  55694. - cat >> $cwrappersource <<"EOF"
  55695. - newargz[1] = find_executable(argv[0]);
  55696. - if (newargz[1] == NULL)
  55697. - lt_fatal("Couldn't find %s", argv[0]);
  55698. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  55699. - /* we know the script has the same name, without the .exe */
  55700. - /* so make sure newargz[1] doesn't end in .exe */
  55701. - strendzap(newargz[1],".exe");
  55702. - for (i = 1; i < argc; i++)
  55703. - newargz[i+1] = xstrdup(argv[i]);
  55704. - newargz[argc+1] = NULL;
  55705. + -Wl,*)
  55706. + func_stripname '-Wl,' '' "$arg"
  55707. + args=$func_stripname_result
  55708. + arg=
  55709. + save_ifs="$IFS"; IFS=','
  55710. + for flag in $args; do
  55711. + IFS="$save_ifs"
  55712. + func_quote_for_eval "$flag"
  55713. + arg="$arg $wl$func_quote_for_eval_result"
  55714. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  55715. + linker_flags="$linker_flags $func_quote_for_eval_result"
  55716. + done
  55717. + IFS="$save_ifs"
  55718. + func_stripname ' ' '' "$arg"
  55719. + arg=$func_stripname_result
  55720. + ;;
  55721. - for (i=0; i<argc+1; i++)
  55722. - {
  55723. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  55724. - ;
  55725. - }
  55726. + -Xcompiler)
  55727. + prev=xcompiler
  55728. + continue
  55729. + ;;
  55730. -EOF
  55731. + -Xlinker)
  55732. + prev=xlinker
  55733. + continue
  55734. + ;;
  55735. - case $host_os in
  55736. - mingw*)
  55737. - cat >> $cwrappersource <<EOF
  55738. - execv("$SHELL",(char const **)newargz);
  55739. -EOF
  55740. - ;;
  55741. - *)
  55742. - cat >> $cwrappersource <<EOF
  55743. - execv("$SHELL",newargz);
  55744. -EOF
  55745. - ;;
  55746. - esac
  55747. + -XCClinker)
  55748. + prev=xcclinker
  55749. + continue
  55750. + ;;
  55751. - cat >> $cwrappersource <<"EOF"
  55752. - return 127;
  55753. -}
  55754. + # -msg_* for osf cc
  55755. + -msg_*)
  55756. + func_quote_for_eval "$arg"
  55757. + arg="$func_quote_for_eval_result"
  55758. + ;;
  55759. -void *
  55760. -xmalloc (size_t num)
  55761. -{
  55762. - void * p = (void *) malloc (num);
  55763. - if (!p)
  55764. - lt_fatal ("Memory exhausted");
  55765. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  55766. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  55767. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  55768. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  55769. + # -q* pass through compiler args for the IBM compiler
  55770. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  55771. + # compiler args for GCC
  55772. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  55773. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  55774. + # @file GCC response files
  55775. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  55776. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  55777. + func_quote_for_eval "$arg"
  55778. + arg="$func_quote_for_eval_result"
  55779. + func_append compile_command " $arg"
  55780. + func_append finalize_command " $arg"
  55781. + compiler_flags="$compiler_flags $arg"
  55782. + continue
  55783. + ;;
  55784. - return p;
  55785. -}
  55786. + # Some other compiler flag.
  55787. + -* | +*)
  55788. + func_quote_for_eval "$arg"
  55789. + arg="$func_quote_for_eval_result"
  55790. + ;;
  55791. -char *
  55792. -xstrdup (const char *string)
  55793. -{
  55794. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  55795. -;
  55796. -}
  55797. + *.$objext)
  55798. + # A standard object.
  55799. + objs="$objs $arg"
  55800. + ;;
  55801. -const char *
  55802. -base_name (const char *name)
  55803. -{
  55804. - const char *base;
  55805. + *.lo)
  55806. + # A libtool-controlled object.
  55807. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55808. - /* Skip over the disk name in MSDOS pathnames. */
  55809. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  55810. - name += 2;
  55811. -#endif
  55812. + # Check to see that this really is a libtool object.
  55813. + if func_lalib_unsafe_p "$arg"; then
  55814. + pic_object=
  55815. + non_pic_object=
  55816. - for (base = name; *name; name++)
  55817. - if (IS_DIR_SEPARATOR (*name))
  55818. - base = name + 1;
  55819. - return base;
  55820. -}
  55821. + # Read the .lo file
  55822. + func_source "$arg"
  55823. -int
  55824. -check_executable(const char * path)
  55825. -{
  55826. - struct stat st;
  55827. + if test -z "$pic_object" ||
  55828. + test -z "$non_pic_object" ||
  55829. + test "$pic_object" = none &&
  55830. + test "$non_pic_object" = none; then
  55831. + func_fatal_error "cannot find name of object for \`$arg'"
  55832. + fi
  55833. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  55834. - if ((!path) || (!*path))
  55835. - return 0;
  55836. + # Extract subdirectory from the argument.
  55837. + func_dirname "$arg" "/" ""
  55838. + xdir="$func_dirname_result"
  55839. - if ((stat (path, &st) >= 0) &&
  55840. - (
  55841. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  55842. -#if defined (S_IXOTH)
  55843. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  55844. -#endif
  55845. -#if defined (S_IXGRP)
  55846. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  55847. -#endif
  55848. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  55849. - )
  55850. - return 1;
  55851. - else
  55852. - return 0;
  55853. -}
  55854. + if test "$pic_object" != none; then
  55855. + # Prepend the subdirectory the object is found in.
  55856. + pic_object="$xdir$pic_object"
  55857. -/* Searches for the full path of the wrapper. Returns
  55858. - newly allocated full path name if found, NULL otherwise */
  55859. -char *
  55860. -find_executable (const char* wrapper)
  55861. -{
  55862. - int has_slash = 0;
  55863. - const char* p;
  55864. - const char* p_next;
  55865. - /* static buffer for getcwd */
  55866. - char tmp[LT_PATHMAX + 1];
  55867. - int tmp_len;
  55868. - char* concat_name;
  55869. + if test "$prev" = dlfiles; then
  55870. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  55871. + dlfiles="$dlfiles $pic_object"
  55872. + prev=
  55873. + continue
  55874. + else
  55875. + # If libtool objects are unsupported, then we need to preload.
  55876. + prev=dlprefiles
  55877. + fi
  55878. + fi
  55879. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  55880. + # CHECK ME: I think I busted this. -Ossama
  55881. + if test "$prev" = dlprefiles; then
  55882. + # Preload the old-style object.
  55883. + dlprefiles="$dlprefiles $pic_object"
  55884. + prev=
  55885. + fi
  55886. - if ((wrapper == NULL) || (*wrapper == '\0'))
  55887. - return NULL;
  55888. + # A PIC object.
  55889. + func_append libobjs " $pic_object"
  55890. + arg="$pic_object"
  55891. + fi
  55892. - /* Absolute path? */
  55893. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55894. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  55895. - {
  55896. - concat_name = xstrdup (wrapper);
  55897. - if (check_executable(concat_name))
  55898. - return concat_name;
  55899. - XFREE(concat_name);
  55900. - }
  55901. - else
  55902. - {
  55903. -#endif
  55904. - if (IS_DIR_SEPARATOR (wrapper[0]))
  55905. - {
  55906. - concat_name = xstrdup (wrapper);
  55907. - if (check_executable(concat_name))
  55908. - return concat_name;
  55909. - XFREE(concat_name);
  55910. - }
  55911. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55912. - }
  55913. -#endif
  55914. + # Non-PIC object.
  55915. + if test "$non_pic_object" != none; then
  55916. + # Prepend the subdirectory the object is found in.
  55917. + non_pic_object="$xdir$non_pic_object"
  55918. - for (p = wrapper; *p; p++)
  55919. - if (*p == '/')
  55920. - {
  55921. - has_slash = 1;
  55922. - break;
  55923. - }
  55924. - if (!has_slash)
  55925. - {
  55926. - /* no slashes; search PATH */
  55927. - const char* path = getenv ("PATH");
  55928. - if (path != NULL)
  55929. - {
  55930. - for (p = path; *p; p = p_next)
  55931. - {
  55932. - const char* q;
  55933. - size_t p_len;
  55934. - for (q = p; *q; q++)
  55935. - if (IS_PATH_SEPARATOR(*q))
  55936. - break;
  55937. - p_len = q - p;
  55938. - p_next = (*q == '\0' ? q : q + 1);
  55939. - if (p_len == 0)
  55940. - {
  55941. - /* empty path: current directory */
  55942. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  55943. - lt_fatal ("getcwd failed");
  55944. - tmp_len = strlen(tmp);
  55945. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  55946. - memcpy (concat_name, tmp, tmp_len);
  55947. - concat_name[tmp_len] = '/';
  55948. - strcpy (concat_name + tmp_len + 1, wrapper);
  55949. - }
  55950. - else
  55951. - {
  55952. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  55953. - memcpy (concat_name, p, p_len);
  55954. - concat_name[p_len] = '/';
  55955. - strcpy (concat_name + p_len + 1, wrapper);
  55956. - }
  55957. - if (check_executable(concat_name))
  55958. - return concat_name;
  55959. - XFREE(concat_name);
  55960. - }
  55961. - }
  55962. - /* not found in PATH; assume curdir */
  55963. - }
  55964. - /* Relative path | not found in path: prepend cwd */
  55965. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  55966. - lt_fatal ("getcwd failed");
  55967. - tmp_len = strlen(tmp);
  55968. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  55969. - memcpy (concat_name, tmp, tmp_len);
  55970. - concat_name[tmp_len] = '/';
  55971. - strcpy (concat_name + tmp_len + 1, wrapper);
  55972. + # A standard non-PIC object
  55973. + func_append non_pic_objects " $non_pic_object"
  55974. + if test -z "$pic_object" || test "$pic_object" = none ; then
  55975. + arg="$non_pic_object"
  55976. + fi
  55977. + else
  55978. + # If the PIC object exists, use it instead.
  55979. + # $xdir was prepended to $pic_object above.
  55980. + non_pic_object="$pic_object"
  55981. + func_append non_pic_objects " $non_pic_object"
  55982. + fi
  55983. + else
  55984. + # Only an error if not doing a dry-run.
  55985. + if $opt_dry_run; then
  55986. + # Extract subdirectory from the argument.
  55987. + func_dirname "$arg" "/" ""
  55988. + xdir="$func_dirname_result"
  55989. - if (check_executable(concat_name))
  55990. - return concat_name;
  55991. - XFREE(concat_name);
  55992. - return NULL;
  55993. -}
  55994. + func_lo2o "$arg"
  55995. + pic_object=$xdir$objdir/$func_lo2o_result
  55996. + non_pic_object=$xdir$func_lo2o_result
  55997. + func_append libobjs " $pic_object"
  55998. + func_append non_pic_objects " $non_pic_object"
  55999. + else
  56000. + func_fatal_error "\`$arg' is not a valid libtool object"
  56001. + fi
  56002. + fi
  56003. + ;;
  56004. -char *
  56005. -strendzap(char *str, const char *pat)
  56006. -{
  56007. - size_t len, patlen;
  56008. + *.$libext)
  56009. + # An archive.
  56010. + deplibs="$deplibs $arg"
  56011. + old_deplibs="$old_deplibs $arg"
  56012. + continue
  56013. + ;;
  56014. - assert(str != NULL);
  56015. - assert(pat != NULL);
  56016. + *.la)
  56017. + # A libtool-controlled library.
  56018. - len = strlen(str);
  56019. - patlen = strlen(pat);
  56020. + if test "$prev" = dlfiles; then
  56021. + # This library was specified with -dlopen.
  56022. + dlfiles="$dlfiles $arg"
  56023. + prev=
  56024. + elif test "$prev" = dlprefiles; then
  56025. + # The library was specified with -dlpreopen.
  56026. + dlprefiles="$dlprefiles $arg"
  56027. + prev=
  56028. + else
  56029. + deplibs="$deplibs $arg"
  56030. + fi
  56031. + continue
  56032. + ;;
  56033. - if (patlen <= len)
  56034. - {
  56035. - str += len - patlen;
  56036. - if (strcmp(str, pat) == 0)
  56037. - *str = '\0';
  56038. - }
  56039. - return str;
  56040. -}
  56041. + # Some other compiler argument.
  56042. + *)
  56043. + # Unknown arguments in both finalize_command and compile_command need
  56044. + # to be aesthetically quoted because they are evaled later.
  56045. + func_quote_for_eval "$arg"
  56046. + arg="$func_quote_for_eval_result"
  56047. + ;;
  56048. + esac # arg
  56049. -static void
  56050. -lt_error_core (int exit_status, const char * mode,
  56051. - const char * message, va_list ap)
  56052. -{
  56053. - fprintf (stderr, "%s: %s: ", program_name, mode);
  56054. - vfprintf (stderr, message, ap);
  56055. - fprintf (stderr, ".\n");
  56056. + # Now actually substitute the argument into the commands.
  56057. + if test -n "$arg"; then
  56058. + func_append compile_command " $arg"
  56059. + func_append finalize_command " $arg"
  56060. + fi
  56061. + done # argument parsing loop
  56062. - if (exit_status >= 0)
  56063. - exit (exit_status);
  56064. -}
  56065. + test -n "$prev" && \
  56066. + func_fatal_help "the \`$prevarg' option requires an argument"
  56067. -void
  56068. -lt_fatal (const char *message, ...)
  56069. -{
  56070. - va_list ap;
  56071. - va_start (ap, message);
  56072. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  56073. - va_end (ap);
  56074. -}
  56075. -EOF
  56076. - # we should really use a build-platform specific compiler
  56077. - # here, but OTOH, the wrappers (shell script and this C one)
  56078. - # are only useful if you want to execute the "real" binary.
  56079. - # Since the "real" binary is built for $host, then this
  56080. - # wrapper might as well be built for $host, too.
  56081. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  56082. - ;;
  56083. - esac
  56084. - $rm $output
  56085. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  56086. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  56087. + eval arg=\"$export_dynamic_flag_spec\"
  56088. + func_append compile_command " $arg"
  56089. + func_append finalize_command " $arg"
  56090. + fi
  56091. - $echo > $output "\
  56092. -#! $SHELL
  56093. + oldlibs=
  56094. + # calculate the name of the file, without its directory
  56095. + func_basename "$output"
  56096. + outputname="$func_basename_result"
  56097. + libobjs_save="$libobjs"
  56098. -# $output - temporary wrapper script for $objdir/$outputname
  56099. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  56100. -#
  56101. -# The $output program cannot be directly executed until all the libtool
  56102. -# libraries that it depends on are installed.
  56103. -#
  56104. -# This wrapper script should never be moved out of the build directory.
  56105. -# If it is, it will not operate correctly.
  56106. + if test -n "$shlibpath_var"; then
  56107. + # get the directories listed in $shlibpath_var
  56108. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  56109. + else
  56110. + shlib_search_path=
  56111. + fi
  56112. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  56113. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  56114. -# Sed substitution that helps us do robust quoting. It backslashifies
  56115. -# metacharacters that are still active within double-quoted strings.
  56116. -Xsed='${SED} -e 1s/^X//'
  56117. -sed_quote_subst='$sed_quote_subst'
  56118. + func_dirname "$output" "/" ""
  56119. + output_objdir="$func_dirname_result$objdir"
  56120. + # Create the object directory.
  56121. + func_mkdir_p "$output_objdir"
  56122. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  56123. -# if CDPATH is set.
  56124. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  56125. + # Determine the type of output
  56126. + case $output in
  56127. + "")
  56128. + func_fatal_help "you must specify an output file"
  56129. + ;;
  56130. + *.$libext) linkmode=oldlib ;;
  56131. + *.lo | *.$objext) linkmode=obj ;;
  56132. + *.la) linkmode=lib ;;
  56133. + *) linkmode=prog ;; # Anything else should be a program.
  56134. + esac
  56135. -relink_command=\"$relink_command\"
  56136. + specialdeplibs=
  56137. -# This environment variable determines our operation mode.
  56138. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  56139. - # install mode needs the following variable:
  56140. - notinst_deplibs='$notinst_deplibs'
  56141. -else
  56142. - # When we are sourced in execute mode, \$file and \$echo are already set.
  56143. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  56144. - echo=\"$qecho\"
  56145. - file=\"\$0\"
  56146. - # Make sure echo works.
  56147. - if test \"X\$1\" = X--no-reexec; then
  56148. - # Discard the --no-reexec flag, and continue.
  56149. - shift
  56150. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  56151. - # Yippee, \$echo works!
  56152. - :
  56153. - else
  56154. - # Restart under the correct shell, and then maybe \$echo will work.
  56155. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  56156. + libs=
  56157. + # Find all interdependent deplibs by searching for libraries
  56158. + # that are linked more than once (e.g. -la -lb -la)
  56159. + for deplib in $deplibs; do
  56160. + if $opt_duplicate_deps ; then
  56161. + case "$libs " in
  56162. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56163. + esac
  56164. + fi
  56165. + libs="$libs $deplib"
  56166. + done
  56167. +
  56168. + if test "$linkmode" = lib; then
  56169. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  56170. +
  56171. + # Compute libraries that are listed more than once in $predeps
  56172. + # $postdeps and mark them as special (i.e., whose duplicates are
  56173. + # not to be eliminated).
  56174. + pre_post_deps=
  56175. + if $opt_duplicate_compiler_generated_deps; then
  56176. + for pre_post_dep in $predeps $postdeps; do
  56177. + case "$pre_post_deps " in
  56178. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  56179. + esac
  56180. + pre_post_deps="$pre_post_deps $pre_post_dep"
  56181. + done
  56182. + fi
  56183. + pre_post_deps=
  56184. fi
  56185. - fi\
  56186. -"
  56187. - $echo >> $output "\
  56188. - # Find the directory that this script lives in.
  56189. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  56190. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  56191. + deplibs=
  56192. + newdependency_libs=
  56193. + newlib_search_path=
  56194. + need_relink=no # whether we're linking any uninstalled libtool libraries
  56195. + notinst_deplibs= # not-installed libtool libraries
  56196. + notinst_path= # paths that contain not-installed libtool libraries
  56197. - # Follow symbolic links until we get to the real thisdir.
  56198. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  56199. - while test -n \"\$file\"; do
  56200. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  56201. + case $linkmode in
  56202. + lib)
  56203. + passes="conv dlpreopen link"
  56204. + for file in $dlfiles $dlprefiles; do
  56205. + case $file in
  56206. + *.la) ;;
  56207. + *)
  56208. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  56209. + ;;
  56210. + esac
  56211. + done
  56212. + ;;
  56213. + prog)
  56214. + compile_deplibs=
  56215. + finalize_deplibs=
  56216. + alldeplibs=no
  56217. + newdlfiles=
  56218. + newdlprefiles=
  56219. + passes="conv scan dlopen dlpreopen link"
  56220. + ;;
  56221. + *) passes="conv"
  56222. + ;;
  56223. + esac
  56224. - # If there was a directory component, then change thisdir.
  56225. - if test \"x\$destdir\" != \"x\$file\"; then
  56226. - case \"\$destdir\" in
  56227. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  56228. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  56229. - esac
  56230. - fi
  56231. + for pass in $passes; do
  56232. + # The preopen pass in lib mode reverses $deplibs; put it back here
  56233. + # so that -L comes before libs that need it for instance...
  56234. + if test "$linkmode,$pass" = "lib,link"; then
  56235. + ## FIXME: Find the place where the list is rebuilt in the wrong
  56236. + ## order, and fix it there properly
  56237. + tmp_deplibs=
  56238. + for deplib in $deplibs; do
  56239. + tmp_deplibs="$deplib $tmp_deplibs"
  56240. + done
  56241. + deplibs="$tmp_deplibs"
  56242. + fi
  56243. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  56244. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  56245. - done
  56246. + if test "$linkmode,$pass" = "lib,link" ||
  56247. + test "$linkmode,$pass" = "prog,scan"; then
  56248. + libs="$deplibs"
  56249. + deplibs=
  56250. + fi
  56251. + if test "$linkmode" = prog; then
  56252. + case $pass in
  56253. + dlopen) libs="$dlfiles" ;;
  56254. + dlpreopen) libs="$dlprefiles" ;;
  56255. + link)
  56256. + libs="$deplibs %DEPLIBS%"
  56257. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  56258. + ;;
  56259. + esac
  56260. + fi
  56261. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  56262. + # Collect and forward deplibs of preopened libtool libs
  56263. + for lib in $dlprefiles; do
  56264. + # Ignore non-libtool-libs
  56265. + dependency_libs=
  56266. + case $lib in
  56267. + *.la) func_source "$lib" ;;
  56268. + esac
  56269. +
  56270. + # Collect preopened libtool deplibs, except any this library
  56271. + # has declared as weak libs
  56272. + for deplib in $dependency_libs; do
  56273. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  56274. + case " $weak_libs " in
  56275. + *" $deplib_base "*) ;;
  56276. + *) deplibs="$deplibs $deplib" ;;
  56277. + esac
  56278. + done
  56279. + done
  56280. + libs="$dlprefiles"
  56281. + fi
  56282. + if test "$pass" = dlopen; then
  56283. + # Collect dlpreopened libraries
  56284. + save_deplibs="$deplibs"
  56285. + deplibs=
  56286. + fi
  56287. +
  56288. + for deplib in $libs; do
  56289. + lib=
  56290. + found=no
  56291. + case $deplib in
  56292. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56293. + if test "$linkmode,$pass" = "prog,link"; then
  56294. + compile_deplibs="$deplib $compile_deplibs"
  56295. + finalize_deplibs="$deplib $finalize_deplibs"
  56296. + else
  56297. + compiler_flags="$compiler_flags $deplib"
  56298. + if test "$linkmode" = lib ; then
  56299. + case "$new_inherited_linker_flags " in
  56300. + *" $deplib "*) ;;
  56301. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56302. + esac
  56303. + fi
  56304. + fi
  56305. + continue
  56306. + ;;
  56307. + -l*)
  56308. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  56309. + func_warning "\`-l' is ignored for archives/objects"
  56310. + continue
  56311. + fi
  56312. + func_stripname '-l' '' "$deplib"
  56313. + name=$func_stripname_result
  56314. + if test "$linkmode" = lib; then
  56315. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  56316. + else
  56317. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  56318. + fi
  56319. + for searchdir in $searchdirs; do
  56320. + for search_ext in .la $std_shrext .so .a; do
  56321. + # Search the libtool library
  56322. + lib="$searchdir/lib${name}${search_ext}"
  56323. + if test -f "$lib"; then
  56324. + if test "$search_ext" = ".la"; then
  56325. + found=yes
  56326. + else
  56327. + found=no
  56328. + fi
  56329. + break 2
  56330. + fi
  56331. + done
  56332. + done
  56333. + if test "$found" != yes; then
  56334. + # deplib doesn't seem to be a libtool library
  56335. + if test "$linkmode,$pass" = "prog,link"; then
  56336. + compile_deplibs="$deplib $compile_deplibs"
  56337. + finalize_deplibs="$deplib $finalize_deplibs"
  56338. + else
  56339. + deplibs="$deplib $deplibs"
  56340. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56341. + fi
  56342. + continue
  56343. + else # deplib is a libtool library
  56344. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  56345. + # We need to do some special things here, and not later.
  56346. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56347. + case " $predeps $postdeps " in
  56348. + *" $deplib "*)
  56349. + if func_lalib_p "$lib"; then
  56350. + library_names=
  56351. + old_library=
  56352. + func_source "$lib"
  56353. + for l in $old_library $library_names; do
  56354. + ll="$l"
  56355. + done
  56356. + if test "X$ll" = "X$old_library" ; then # only static version available
  56357. + found=no
  56358. + func_dirname "$lib" "" "."
  56359. + ladir="$func_dirname_result"
  56360. + lib=$ladir/$old_library
  56361. + if test "$linkmode,$pass" = "prog,link"; then
  56362. + compile_deplibs="$deplib $compile_deplibs"
  56363. + finalize_deplibs="$deplib $finalize_deplibs"
  56364. + else
  56365. + deplibs="$deplib $deplibs"
  56366. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56367. + fi
  56368. + continue
  56369. + fi
  56370. + fi
  56371. + ;;
  56372. + *) ;;
  56373. + esac
  56374. + fi
  56375. + fi
  56376. + ;; # -l
  56377. + *.ltframework)
  56378. + if test "$linkmode,$pass" = "prog,link"; then
  56379. + compile_deplibs="$deplib $compile_deplibs"
  56380. + finalize_deplibs="$deplib $finalize_deplibs"
  56381. + else
  56382. + deplibs="$deplib $deplibs"
  56383. + if test "$linkmode" = lib ; then
  56384. + case "$new_inherited_linker_flags " in
  56385. + *" $deplib "*) ;;
  56386. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56387. + esac
  56388. + fi
  56389. + fi
  56390. + continue
  56391. + ;;
  56392. + -L*)
  56393. + case $linkmode in
  56394. + lib)
  56395. + deplibs="$deplib $deplibs"
  56396. + test "$pass" = conv && continue
  56397. + newdependency_libs="$deplib $newdependency_libs"
  56398. + func_stripname '-L' '' "$deplib"
  56399. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56400. + ;;
  56401. + prog)
  56402. + if test "$pass" = conv; then
  56403. + deplibs="$deplib $deplibs"
  56404. + continue
  56405. + fi
  56406. + if test "$pass" = scan; then
  56407. + deplibs="$deplib $deplibs"
  56408. + else
  56409. + compile_deplibs="$deplib $compile_deplibs"
  56410. + finalize_deplibs="$deplib $finalize_deplibs"
  56411. + fi
  56412. + func_stripname '-L' '' "$deplib"
  56413. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56414. + ;;
  56415. + *)
  56416. + func_warning "\`-L' is ignored for archives/objects"
  56417. + ;;
  56418. + esac # linkmode
  56419. + continue
  56420. + ;; # -L
  56421. + -R*)
  56422. + if test "$pass" = link; then
  56423. + func_stripname '-R' '' "$deplib"
  56424. + dir=$func_stripname_result
  56425. + # Make sure the xrpath contains only unique directories.
  56426. + case "$xrpath " in
  56427. + *" $dir "*) ;;
  56428. + *) xrpath="$xrpath $dir" ;;
  56429. + esac
  56430. + fi
  56431. + deplibs="$deplib $deplibs"
  56432. + continue
  56433. + ;;
  56434. + *.la) lib="$deplib" ;;
  56435. + *.$libext)
  56436. + if test "$pass" = conv; then
  56437. + deplibs="$deplib $deplibs"
  56438. + continue
  56439. + fi
  56440. + case $linkmode in
  56441. + lib)
  56442. + # Linking convenience modules into shared libraries is allowed,
  56443. + # but linking other static libraries is non-portable.
  56444. + case " $dlpreconveniencelibs " in
  56445. + *" $deplib "*) ;;
  56446. + *)
  56447. + valid_a_lib=no
  56448. + case $deplibs_check_method in
  56449. + match_pattern*)
  56450. + set dummy $deplibs_check_method; shift
  56451. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56452. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  56453. + | $EGREP "$match_pattern_regex" > /dev/null; then
  56454. + valid_a_lib=yes
  56455. + fi
  56456. + ;;
  56457. + pass_all)
  56458. + valid_a_lib=yes
  56459. + ;;
  56460. + esac
  56461. + if test "$valid_a_lib" != yes; then
  56462. + $ECHO
  56463. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  56464. + $ECHO "*** I have the capability to make that library automatically link in when"
  56465. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56466. + $ECHO "*** shared version of the library, which you do not appear to have"
  56467. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  56468. + $ECHO "*** that it is just a static archive that I should not use here."
  56469. + else
  56470. + $ECHO
  56471. + $ECHO "*** Warning: Linking the shared library $output against the"
  56472. + $ECHO "*** static library $deplib is not portable!"
  56473. + deplibs="$deplib $deplibs"
  56474. + fi
  56475. + ;;
  56476. + esac
  56477. + continue
  56478. + ;;
  56479. + prog)
  56480. + if test "$pass" != link; then
  56481. + deplibs="$deplib $deplibs"
  56482. + else
  56483. + compile_deplibs="$deplib $compile_deplibs"
  56484. + finalize_deplibs="$deplib $finalize_deplibs"
  56485. + fi
  56486. + continue
  56487. + ;;
  56488. + esac # linkmode
  56489. + ;; # *.$libext
  56490. + *.lo | *.$objext)
  56491. + if test "$pass" = conv; then
  56492. + deplibs="$deplib $deplibs"
  56493. + elif test "$linkmode" = prog; then
  56494. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  56495. + # If there is no dlopen support or we're linking statically,
  56496. + # we need to preload.
  56497. + newdlprefiles="$newdlprefiles $deplib"
  56498. + compile_deplibs="$deplib $compile_deplibs"
  56499. + finalize_deplibs="$deplib $finalize_deplibs"
  56500. + else
  56501. + newdlfiles="$newdlfiles $deplib"
  56502. + fi
  56503. + fi
  56504. + continue
  56505. + ;;
  56506. + %DEPLIBS%)
  56507. + alldeplibs=yes
  56508. + continue
  56509. + ;;
  56510. + esac # case $deplib
  56511. +
  56512. + if test "$found" = yes || test -f "$lib"; then :
  56513. + else
  56514. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  56515. + fi
  56516. +
  56517. + # Check to see that this really is a libtool archive.
  56518. + func_lalib_unsafe_p "$lib" \
  56519. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  56520. +
  56521. + func_dirname "$lib" "" "."
  56522. + ladir="$func_dirname_result"
  56523. +
  56524. + dlname=
  56525. + dlopen=
  56526. + dlpreopen=
  56527. + libdir=
  56528. + library_names=
  56529. + old_library=
  56530. + inherited_linker_flags=
  56531. + # If the library was installed with an old release of libtool,
  56532. + # it will not redefine variables installed, or shouldnotlink
  56533. + installed=yes
  56534. + shouldnotlink=no
  56535. + avoidtemprpath=
  56536. +
  56537. +
  56538. + # Read the .la file
  56539. + func_source "$lib"
  56540. +
  56541. + # Convert "-framework foo" to "foo.ltframework"
  56542. + if test -n "$inherited_linker_flags"; then
  56543. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  56544. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  56545. + case " $new_inherited_linker_flags " in
  56546. + *" $tmp_inherited_linker_flag "*) ;;
  56547. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  56548. + esac
  56549. + done
  56550. + fi
  56551. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56552. + if test "$linkmode,$pass" = "lib,link" ||
  56553. + test "$linkmode,$pass" = "prog,scan" ||
  56554. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  56555. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  56556. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  56557. + fi
  56558. +
  56559. + if test "$pass" = conv; then
  56560. + # Only check for convenience libraries
  56561. + deplibs="$lib $deplibs"
  56562. + if test -z "$libdir"; then
  56563. + if test -z "$old_library"; then
  56564. + func_fatal_error "cannot find name of link library for \`$lib'"
  56565. + fi
  56566. + # It is a libtool convenience library, so add in its objects.
  56567. + convenience="$convenience $ladir/$objdir/$old_library"
  56568. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  56569. + tmp_libs=
  56570. + for deplib in $dependency_libs; do
  56571. + deplibs="$deplib $deplibs"
  56572. + if $opt_duplicate_deps ; then
  56573. + case "$tmp_libs " in
  56574. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56575. + esac
  56576. + fi
  56577. + tmp_libs="$tmp_libs $deplib"
  56578. + done
  56579. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  56580. + func_fatal_error "\`$lib' is not a convenience library"
  56581. + fi
  56582. + continue
  56583. + fi # $pass = conv
  56584. +
  56585. +
  56586. + # Get the name of the library we link against.
  56587. + linklib=
  56588. + for l in $old_library $library_names; do
  56589. + linklib="$l"
  56590. + done
  56591. + if test -z "$linklib"; then
  56592. + func_fatal_error "cannot find name of link library for \`$lib'"
  56593. + fi
  56594. +
  56595. + # This library was specified with -dlopen.
  56596. + if test "$pass" = dlopen; then
  56597. + if test -z "$libdir"; then
  56598. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  56599. + fi
  56600. + if test -z "$dlname" ||
  56601. + test "$dlopen_support" != yes ||
  56602. + test "$build_libtool_libs" = no; then
  56603. + # If there is no dlname, no dlopen support or we're linking
  56604. + # statically, we need to preload. We also need to preload any
  56605. + # dependent libraries so libltdl's deplib preloader doesn't
  56606. + # bomb out in the load deplibs phase.
  56607. + dlprefiles="$dlprefiles $lib $dependency_libs"
  56608. + else
  56609. + newdlfiles="$newdlfiles $lib"
  56610. + fi
  56611. + continue
  56612. + fi # $pass = dlopen
  56613. +
  56614. + # We need an absolute path.
  56615. + case $ladir in
  56616. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  56617. + *)
  56618. + abs_ladir=`cd "$ladir" && pwd`
  56619. + if test -z "$abs_ladir"; then
  56620. + func_warning "cannot determine absolute directory name of \`$ladir'"
  56621. + func_warning "passing it literally to the linker, although it might fail"
  56622. + abs_ladir="$ladir"
  56623. + fi
  56624. + ;;
  56625. + esac
  56626. + func_basename "$lib"
  56627. + laname="$func_basename_result"
  56628. +
  56629. + # Find the relevant object directory and library name.
  56630. + if test "X$installed" = Xyes; then
  56631. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56632. + func_warning "library \`$lib' was moved."
  56633. + dir="$ladir"
  56634. + absdir="$abs_ladir"
  56635. + libdir="$abs_ladir"
  56636. + else
  56637. + dir="$libdir"
  56638. + absdir="$libdir"
  56639. + fi
  56640. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  56641. + else
  56642. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56643. + dir="$ladir"
  56644. + absdir="$abs_ladir"
  56645. + # Remove this search path later
  56646. + notinst_path="$notinst_path $abs_ladir"
  56647. + else
  56648. + dir="$ladir/$objdir"
  56649. + absdir="$abs_ladir/$objdir"
  56650. + # Remove this search path later
  56651. + notinst_path="$notinst_path $abs_ladir"
  56652. + fi
  56653. + fi # $installed = yes
  56654. + func_stripname 'lib' '.la' "$laname"
  56655. + name=$func_stripname_result
  56656. +
  56657. + # This library was specified with -dlpreopen.
  56658. + if test "$pass" = dlpreopen; then
  56659. + if test -z "$libdir" && test "$linkmode" = prog; then
  56660. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  56661. + fi
  56662. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  56663. + # are required to link).
  56664. + if test -n "$old_library"; then
  56665. + newdlprefiles="$newdlprefiles $dir/$old_library"
  56666. + # Keep a list of preopened convenience libraries to check
  56667. + # that they are being used correctly in the link pass.
  56668. + test -z "$libdir" && \
  56669. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  56670. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  56671. + elif test -n "$dlname"; then
  56672. + newdlprefiles="$newdlprefiles $dir/$dlname"
  56673. + else
  56674. + newdlprefiles="$newdlprefiles $dir/$linklib"
  56675. + fi
  56676. + fi # $pass = dlpreopen
  56677. +
  56678. + if test -z "$libdir"; then
  56679. + # Link the convenience library
  56680. + if test "$linkmode" = lib; then
  56681. + deplibs="$dir/$old_library $deplibs"
  56682. + elif test "$linkmode,$pass" = "prog,link"; then
  56683. + compile_deplibs="$dir/$old_library $compile_deplibs"
  56684. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  56685. + else
  56686. + deplibs="$lib $deplibs" # used for prog,scan pass
  56687. + fi
  56688. + continue
  56689. + fi
  56690. +
  56691. +
  56692. + if test "$linkmode" = prog && test "$pass" != link; then
  56693. + newlib_search_path="$newlib_search_path $ladir"
  56694. + deplibs="$lib $deplibs"
  56695. +
  56696. + linkalldeplibs=no
  56697. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  56698. + test "$build_libtool_libs" = no; then
  56699. + linkalldeplibs=yes
  56700. + fi
  56701. +
  56702. + tmp_libs=
  56703. + for deplib in $dependency_libs; do
  56704. + case $deplib in
  56705. + -L*) func_stripname '-L' '' "$deplib"
  56706. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56707. + ;;
  56708. + esac
  56709. + # Need to link against all dependency_libs?
  56710. + if test "$linkalldeplibs" = yes; then
  56711. + deplibs="$deplib $deplibs"
  56712. + else
  56713. + # Need to hardcode shared library paths
  56714. + # or/and link against static libraries
  56715. + newdependency_libs="$deplib $newdependency_libs"
  56716. + fi
  56717. + if $opt_duplicate_deps ; then
  56718. + case "$tmp_libs " in
  56719. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56720. + esac
  56721. + fi
  56722. + tmp_libs="$tmp_libs $deplib"
  56723. + done # for deplib
  56724. + continue
  56725. + fi # $linkmode = prog...
  56726. +
  56727. + if test "$linkmode,$pass" = "prog,link"; then
  56728. + if test -n "$library_names" &&
  56729. + { { test "$prefer_static_libs" = no ||
  56730. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  56731. + test -z "$old_library"; }; then
  56732. + # We need to hardcode the library path
  56733. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  56734. + # Make sure the rpath contains only unique directories.
  56735. + case "$temp_rpath:" in
  56736. + *"$absdir:"*) ;;
  56737. + *) temp_rpath="$temp_rpath$absdir:" ;;
  56738. + esac
  56739. + fi
  56740. +
  56741. + # Hardcode the library path.
  56742. + # Skip directories that are in the system default run-time
  56743. + # search path.
  56744. + case " $sys_lib_dlsearch_path " in
  56745. + *" $absdir "*) ;;
  56746. + *)
  56747. + case "$compile_rpath " in
  56748. + *" $absdir "*) ;;
  56749. + *) compile_rpath="$compile_rpath $absdir"
  56750. + esac
  56751. + ;;
  56752. + esac
  56753. + case " $sys_lib_dlsearch_path " in
  56754. + *" $libdir "*) ;;
  56755. + *)
  56756. + case "$finalize_rpath " in
  56757. + *" $libdir "*) ;;
  56758. + *) finalize_rpath="$finalize_rpath $libdir"
  56759. + esac
  56760. + ;;
  56761. + esac
  56762. + fi # $linkmode,$pass = prog,link...
  56763. +
  56764. + if test "$alldeplibs" = yes &&
  56765. + { test "$deplibs_check_method" = pass_all ||
  56766. + { test "$build_libtool_libs" = yes &&
  56767. + test -n "$library_names"; }; }; then
  56768. + # We only need to search for static libraries
  56769. + continue
  56770. + fi
  56771. + fi
  56772. +
  56773. + link_static=no # Whether the deplib will be linked statically
  56774. + use_static_libs=$prefer_static_libs
  56775. + if test "$use_static_libs" = built && test "$installed" = yes; then
  56776. + use_static_libs=no
  56777. + fi
  56778. + if test -n "$library_names" &&
  56779. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  56780. + case $host in
  56781. + *cygwin* | *mingw* | *cegcc*)
  56782. + # No point in relinking DLLs because paths are not encoded
  56783. + notinst_deplibs="$notinst_deplibs $lib"
  56784. + need_relink=no
  56785. + ;;
  56786. + *)
  56787. + if test "$installed" = no; then
  56788. + notinst_deplibs="$notinst_deplibs $lib"
  56789. + need_relink=yes
  56790. + fi
  56791. + ;;
  56792. + esac
  56793. + # This is a shared library
  56794. +
  56795. + # Warn about portability, can't link against -module's on some
  56796. + # systems (darwin). Don't bleat about dlopened modules though!
  56797. + dlopenmodule=""
  56798. + for dlpremoduletest in $dlprefiles; do
  56799. + if test "X$dlpremoduletest" = "X$lib"; then
  56800. + dlopenmodule="$dlpremoduletest"
  56801. + break
  56802. + fi
  56803. + done
  56804. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  56805. + $ECHO
  56806. + if test "$linkmode" = prog; then
  56807. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  56808. + else
  56809. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  56810. + fi
  56811. + $ECHO "*** $linklib is not portable!"
  56812. + fi
  56813. + if test "$linkmode" = lib &&
  56814. + test "$hardcode_into_libs" = yes; then
  56815. + # Hardcode the library path.
  56816. + # Skip directories that are in the system default run-time
  56817. + # search path.
  56818. + case " $sys_lib_dlsearch_path " in
  56819. + *" $absdir "*) ;;
  56820. + *)
  56821. + case "$compile_rpath " in
  56822. + *" $absdir "*) ;;
  56823. + *) compile_rpath="$compile_rpath $absdir"
  56824. + esac
  56825. + ;;
  56826. + esac
  56827. + case " $sys_lib_dlsearch_path " in
  56828. + *" $libdir "*) ;;
  56829. + *)
  56830. + case "$finalize_rpath " in
  56831. + *" $libdir "*) ;;
  56832. + *) finalize_rpath="$finalize_rpath $libdir"
  56833. + esac
  56834. + ;;
  56835. + esac
  56836. + fi
  56837. +
  56838. + if test -n "$old_archive_from_expsyms_cmds"; then
  56839. + # figure out the soname
  56840. + set dummy $library_names
  56841. + shift
  56842. + realname="$1"
  56843. + shift
  56844. + libname=`eval "\\$ECHO \"$libname_spec\""`
  56845. + # use dlname if we got it. it's perfectly good, no?
  56846. + if test -n "$dlname"; then
  56847. + soname="$dlname"
  56848. + elif test -n "$soname_spec"; then
  56849. + # bleh windows
  56850. + case $host in
  56851. + *cygwin* | mingw* | *cegcc*)
  56852. + func_arith $current - $age
  56853. + major=$func_arith_result
  56854. + versuffix="-$major"
  56855. + ;;
  56856. + esac
  56857. + eval soname=\"$soname_spec\"
  56858. + else
  56859. + soname="$realname"
  56860. + fi
  56861. +
  56862. + # Make a new name for the extract_expsyms_cmds to use
  56863. + soroot="$soname"
  56864. + func_basename "$soroot"
  56865. + soname="$func_basename_result"
  56866. + func_stripname 'lib' '.dll' "$soname"
  56867. + newlib=libimp-$func_stripname_result.a
  56868. +
  56869. + # If the library has no export list, then create one now
  56870. + if test -f "$output_objdir/$soname-def"; then :
  56871. + else
  56872. + func_verbose "extracting exported symbol list from \`$soname'"
  56873. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  56874. + fi
  56875. +
  56876. + # Create $newlib
  56877. + if test -f "$output_objdir/$newlib"; then :; else
  56878. + func_verbose "generating import library for \`$soname'"
  56879. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  56880. + fi
  56881. + # make sure the library variables are pointing to the new library
  56882. + dir=$output_objdir
  56883. + linklib=$newlib
  56884. + fi # test -n "$old_archive_from_expsyms_cmds"
  56885. +
  56886. + if test "$linkmode" = prog || test "$mode" != relink; then
  56887. + add_shlibpath=
  56888. + add_dir=
  56889. + add=
  56890. + lib_linked=yes
  56891. + case $hardcode_action in
  56892. + immediate | unsupported)
  56893. + if test "$hardcode_direct" = no; then
  56894. + add="$dir/$linklib"
  56895. + case $host in
  56896. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  56897. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  56898. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  56899. + *-*-unixware7*) add_dir="-L$dir" ;;
  56900. + *-*-darwin* )
  56901. + # if the lib is a (non-dlopened) module then we can not
  56902. + # link against it, someone is ignoring the earlier warnings
  56903. + if /usr/bin/file -L $add 2> /dev/null |
  56904. + $GREP ": [^:]* bundle" >/dev/null ; then
  56905. + if test "X$dlopenmodule" != "X$lib"; then
  56906. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  56907. + if test -z "$old_library" ; then
  56908. + $ECHO
  56909. + $ECHO "*** And there doesn't seem to be a static archive available"
  56910. + $ECHO "*** The link will probably fail, sorry"
  56911. + else
  56912. + add="$dir/$old_library"
  56913. + fi
  56914. + elif test -n "$old_library"; then
  56915. + add="$dir/$old_library"
  56916. + fi
  56917. + fi
  56918. + esac
  56919. + elif test "$hardcode_minus_L" = no; then
  56920. + case $host in
  56921. + *-*-sunos*) add_shlibpath="$dir" ;;
  56922. + esac
  56923. + add_dir="-L$dir"
  56924. + add="-l$name"
  56925. + elif test "$hardcode_shlibpath_var" = no; then
  56926. + add_shlibpath="$dir"
  56927. + add="-l$name"
  56928. + else
  56929. + lib_linked=no
  56930. + fi
  56931. + ;;
  56932. + relink)
  56933. + if test "$hardcode_direct" = yes &&
  56934. + test "$hardcode_direct_absolute" = no; then
  56935. + add="$dir/$linklib"
  56936. + elif test "$hardcode_minus_L" = yes; then
  56937. + add_dir="-L$dir"
  56938. + # Try looking first in the location we're being installed to.
  56939. + if test -n "$inst_prefix_dir"; then
  56940. + case $libdir in
  56941. + [\\/]*)
  56942. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  56943. + ;;
  56944. + esac
  56945. + fi
  56946. + add="-l$name"
  56947. + elif test "$hardcode_shlibpath_var" = yes; then
  56948. + add_shlibpath="$dir"
  56949. + add="-l$name"
  56950. + else
  56951. + lib_linked=no
  56952. + fi
  56953. + ;;
  56954. + *) lib_linked=no ;;
  56955. + esac
  56956. +
  56957. + if test "$lib_linked" != yes; then
  56958. + func_fatal_configuration "unsupported hardcode properties"
  56959. + fi
  56960. +
  56961. + if test -n "$add_shlibpath"; then
  56962. + case :$compile_shlibpath: in
  56963. + *":$add_shlibpath:"*) ;;
  56964. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  56965. + esac
  56966. + fi
  56967. + if test "$linkmode" = prog; then
  56968. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  56969. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  56970. + else
  56971. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  56972. + test -n "$add" && deplibs="$add $deplibs"
  56973. + if test "$hardcode_direct" != yes &&
  56974. + test "$hardcode_minus_L" != yes &&
  56975. + test "$hardcode_shlibpath_var" = yes; then
  56976. + case :$finalize_shlibpath: in
  56977. + *":$libdir:"*) ;;
  56978. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  56979. + esac
  56980. + fi
  56981. + fi
  56982. + fi
  56983. +
  56984. + if test "$linkmode" = prog || test "$mode" = relink; then
  56985. + add_shlibpath=
  56986. + add_dir=
  56987. + add=
  56988. + # Finalize command for both is simple: just hardcode it.
  56989. + if test "$hardcode_direct" = yes &&
  56990. + test "$hardcode_direct_absolute" = no; then
  56991. + add="$libdir/$linklib"
  56992. + elif test "$hardcode_minus_L" = yes; then
  56993. + add_dir="-L$libdir"
  56994. + add="-l$name"
  56995. + elif test "$hardcode_shlibpath_var" = yes; then
  56996. + case :$finalize_shlibpath: in
  56997. + *":$libdir:"*) ;;
  56998. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  56999. + esac
  57000. + add="-l$name"
  57001. + elif test "$hardcode_automatic" = yes; then
  57002. + if test -n "$inst_prefix_dir" &&
  57003. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  57004. + add="$inst_prefix_dir$libdir/$linklib"
  57005. + else
  57006. + add="$libdir/$linklib"
  57007. + fi
  57008. + else
  57009. + # We cannot seem to hardcode it, guess we'll fake it.
  57010. + add_dir="-L$libdir"
  57011. + # Try looking first in the location we're being installed to.
  57012. + if test -n "$inst_prefix_dir"; then
  57013. + case $libdir in
  57014. + [\\/]*)
  57015. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57016. + ;;
  57017. + esac
  57018. + fi
  57019. + add="-l$name"
  57020. + fi
  57021. +
  57022. + if test "$linkmode" = prog; then
  57023. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  57024. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  57025. + else
  57026. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57027. + test -n "$add" && deplibs="$add $deplibs"
  57028. + fi
  57029. + fi
  57030. + elif test "$linkmode" = prog; then
  57031. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  57032. + # is not unsupported. This is valid on all known static and
  57033. + # shared platforms.
  57034. + if test "$hardcode_direct" != unsupported; then
  57035. + test -n "$old_library" && linklib="$old_library"
  57036. + compile_deplibs="$dir/$linklib $compile_deplibs"
  57037. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  57038. + else
  57039. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  57040. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  57041. + fi
  57042. + elif test "$build_libtool_libs" = yes; then
  57043. + # Not a shared library
  57044. + if test "$deplibs_check_method" != pass_all; then
  57045. + # We're trying link a shared library against a static one
  57046. + # but the system doesn't support it.
  57047. +
  57048. + # Just print a warning and add the library to dependency_libs so
  57049. + # that the program can be linked against the static library.
  57050. + $ECHO
  57051. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  57052. + $ECHO "*** I have the capability to make that library automatically link in when"
  57053. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57054. + $ECHO "*** shared version of the library, which you do not appear to have."
  57055. + if test "$module" = yes; then
  57056. + $ECHO "*** But as you try to build a module library, libtool will still create "
  57057. + $ECHO "*** a static module, that should work as long as the dlopening application"
  57058. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  57059. + if test -z "$global_symbol_pipe"; then
  57060. + $ECHO
  57061. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  57062. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  57063. + $ECHO "*** not find such a program. So, this module is probably useless."
  57064. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  57065. + fi
  57066. + if test "$build_old_libs" = no; then
  57067. + build_libtool_libs=module
  57068. + build_old_libs=yes
  57069. + else
  57070. + build_libtool_libs=no
  57071. + fi
  57072. + fi
  57073. + else
  57074. + deplibs="$dir/$old_library $deplibs"
  57075. + link_static=yes
  57076. + fi
  57077. + fi # link shared/static library?
  57078. +
  57079. + if test "$linkmode" = lib; then
  57080. + if test -n "$dependency_libs" &&
  57081. + { test "$hardcode_into_libs" != yes ||
  57082. + test "$build_old_libs" = yes ||
  57083. + test "$link_static" = yes; }; then
  57084. + # Extract -R from dependency_libs
  57085. + temp_deplibs=
  57086. + for libdir in $dependency_libs; do
  57087. + case $libdir in
  57088. + -R*) func_stripname '-R' '' "$libdir"
  57089. + temp_xrpath=$func_stripname_result
  57090. + case " $xrpath " in
  57091. + *" $temp_xrpath "*) ;;
  57092. + *) xrpath="$xrpath $temp_xrpath";;
  57093. + esac;;
  57094. + *) temp_deplibs="$temp_deplibs $libdir";;
  57095. + esac
  57096. + done
  57097. + dependency_libs="$temp_deplibs"
  57098. + fi
  57099. +
  57100. + newlib_search_path="$newlib_search_path $absdir"
  57101. + # Link against this library
  57102. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  57103. + # ... and its dependency_libs
  57104. + tmp_libs=
  57105. + for deplib in $dependency_libs; do
  57106. + newdependency_libs="$deplib $newdependency_libs"
  57107. + if $opt_duplicate_deps ; then
  57108. + case "$tmp_libs " in
  57109. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57110. + esac
  57111. + fi
  57112. + tmp_libs="$tmp_libs $deplib"
  57113. + done
  57114. +
  57115. + if test "$link_all_deplibs" != no; then
  57116. + # Add the search paths of all dependency libraries
  57117. + for deplib in $dependency_libs; do
  57118. + path=
  57119. + case $deplib in
  57120. + -L*) path="$deplib" ;;
  57121. + *.la)
  57122. + func_dirname "$deplib" "" "."
  57123. + dir="$func_dirname_result"
  57124. + # We need an absolute path.
  57125. + case $dir in
  57126. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  57127. + *)
  57128. + absdir=`cd "$dir" && pwd`
  57129. + if test -z "$absdir"; then
  57130. + func_warning "cannot determine absolute directory name of \`$dir'"
  57131. + absdir="$dir"
  57132. + fi
  57133. + ;;
  57134. + esac
  57135. + if $GREP "^installed=no" $deplib > /dev/null; then
  57136. + case $host in
  57137. + *-*-darwin*)
  57138. + depdepl=
  57139. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  57140. + if test -n "$deplibrary_names" ; then
  57141. + for tmp in $deplibrary_names ; do
  57142. + depdepl=$tmp
  57143. + done
  57144. + if test -f "$absdir/$objdir/$depdepl" ; then
  57145. + depdepl="$absdir/$objdir/$depdepl"
  57146. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57147. + if test -z "$darwin_install_name"; then
  57148. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57149. + fi
  57150. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  57151. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  57152. + path=
  57153. + fi
  57154. + fi
  57155. + ;;
  57156. + *)
  57157. + path="-L$absdir/$objdir"
  57158. + ;;
  57159. + esac
  57160. + else
  57161. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57162. + test -z "$libdir" && \
  57163. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  57164. + test "$absdir" != "$libdir" && \
  57165. + func_warning "\`$deplib' seems to be moved"
  57166. +
  57167. + path="-L$absdir"
  57168. + fi
  57169. + ;;
  57170. + esac
  57171. + case " $deplibs " in
  57172. + *" $path "*) ;;
  57173. + *) deplibs="$path $deplibs" ;;
  57174. + esac
  57175. + done
  57176. + fi # link_all_deplibs != no
  57177. + fi # linkmode = lib
  57178. + done # for deplib in $libs
  57179. + if test "$pass" = link; then
  57180. + if test "$linkmode" = "prog"; then
  57181. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  57182. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  57183. + else
  57184. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57185. + fi
  57186. + fi
  57187. + dependency_libs="$newdependency_libs"
  57188. + if test "$pass" = dlpreopen; then
  57189. + # Link the dlpreopened libraries before other libraries
  57190. + for deplib in $save_deplibs; do
  57191. + deplibs="$deplib $deplibs"
  57192. + done
  57193. + fi
  57194. + if test "$pass" != dlopen; then
  57195. + if test "$pass" != conv; then
  57196. + # Make sure lib_search_path contains only unique directories.
  57197. + lib_search_path=
  57198. + for dir in $newlib_search_path; do
  57199. + case "$lib_search_path " in
  57200. + *" $dir "*) ;;
  57201. + *) lib_search_path="$lib_search_path $dir" ;;
  57202. + esac
  57203. + done
  57204. + newlib_search_path=
  57205. + fi
  57206. +
  57207. + if test "$linkmode,$pass" != "prog,link"; then
  57208. + vars="deplibs"
  57209. + else
  57210. + vars="compile_deplibs finalize_deplibs"
  57211. + fi
  57212. + for var in $vars dependency_libs; do
  57213. + # Add libraries to $var in reverse order
  57214. + eval tmp_libs=\"\$$var\"
  57215. + new_libs=
  57216. + for deplib in $tmp_libs; do
  57217. + # FIXME: Pedantically, this is the right thing to do, so
  57218. + # that some nasty dependency loop isn't accidentally
  57219. + # broken:
  57220. + #new_libs="$deplib $new_libs"
  57221. + # Pragmatically, this seems to cause very few problems in
  57222. + # practice:
  57223. + case $deplib in
  57224. + -L*) new_libs="$deplib $new_libs" ;;
  57225. + -R*) ;;
  57226. + *)
  57227. + # And here is the reason: when a library appears more
  57228. + # than once as an explicit dependence of a library, or
  57229. + # is implicitly linked in more than once by the
  57230. + # compiler, it is considered special, and multiple
  57231. + # occurrences thereof are not removed. Compare this
  57232. + # with having the same library being listed as a
  57233. + # dependency of multiple other libraries: in this case,
  57234. + # we know (pedantically, we assume) the library does not
  57235. + # need to be listed more than once, so we keep only the
  57236. + # last copy. This is not always right, but it is rare
  57237. + # enough that we require users that really mean to play
  57238. + # such unportable linking tricks to link the library
  57239. + # using -Wl,-lname, so that libtool does not consider it
  57240. + # for duplicate removal.
  57241. + case " $specialdeplibs " in
  57242. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  57243. + *)
  57244. + case " $new_libs " in
  57245. + *" $deplib "*) ;;
  57246. + *) new_libs="$deplib $new_libs" ;;
  57247. + esac
  57248. + ;;
  57249. + esac
  57250. + ;;
  57251. + esac
  57252. + done
  57253. + tmp_libs=
  57254. + for deplib in $new_libs; do
  57255. + case $deplib in
  57256. + -L*)
  57257. + case " $tmp_libs " in
  57258. + *" $deplib "*) ;;
  57259. + *) tmp_libs="$tmp_libs $deplib" ;;
  57260. + esac
  57261. + ;;
  57262. + *) tmp_libs="$tmp_libs $deplib" ;;
  57263. + esac
  57264. + done
  57265. + eval $var=\"$tmp_libs\"
  57266. + done # for var
  57267. + fi
  57268. + # Last step: remove runtime libs from dependency_libs
  57269. + # (they stay in deplibs)
  57270. + tmp_libs=
  57271. + for i in $dependency_libs ; do
  57272. + case " $predeps $postdeps $compiler_lib_search_path " in
  57273. + *" $i "*)
  57274. + i=""
  57275. + ;;
  57276. + esac
  57277. + if test -n "$i" ; then
  57278. + tmp_libs="$tmp_libs $i"
  57279. + fi
  57280. + done
  57281. + dependency_libs=$tmp_libs
  57282. + done # for pass
  57283. + if test "$linkmode" = prog; then
  57284. + dlfiles="$newdlfiles"
  57285. + fi
  57286. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  57287. + dlprefiles="$newdlprefiles"
  57288. + fi
  57289. +
  57290. + case $linkmode in
  57291. + oldlib)
  57292. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57293. + func_warning "\`-dlopen' is ignored for archives"
  57294. + fi
  57295. +
  57296. + case " $deplibs" in
  57297. + *\ -l* | *\ -L*)
  57298. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  57299. + esac
  57300. +
  57301. + test -n "$rpath" && \
  57302. + func_warning "\`-rpath' is ignored for archives"
  57303. +
  57304. + test -n "$xrpath" && \
  57305. + func_warning "\`-R' is ignored for archives"
  57306. +
  57307. + test -n "$vinfo" && \
  57308. + func_warning "\`-version-info/-version-number' is ignored for archives"
  57309. +
  57310. + test -n "$release" && \
  57311. + func_warning "\`-release' is ignored for archives"
  57312. +
  57313. + test -n "$export_symbols$export_symbols_regex" && \
  57314. + func_warning "\`-export-symbols' is ignored for archives"
  57315. +
  57316. + # Now set the variables for building old libraries.
  57317. + build_libtool_libs=no
  57318. + oldlibs="$output"
  57319. + objs="$objs$old_deplibs"
  57320. + ;;
  57321. +
  57322. + lib)
  57323. + # Make sure we only generate libraries of the form `libNAME.la'.
  57324. + case $outputname in
  57325. + lib*)
  57326. + func_stripname 'lib' '.la' "$outputname"
  57327. + name=$func_stripname_result
  57328. + eval shared_ext=\"$shrext_cmds\"
  57329. + eval libname=\"$libname_spec\"
  57330. + ;;
  57331. + *)
  57332. + test "$module" = no && \
  57333. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  57334. +
  57335. + if test "$need_lib_prefix" != no; then
  57336. + # Add the "lib" prefix for modules if required
  57337. + func_stripname '' '.la' "$outputname"
  57338. + name=$func_stripname_result
  57339. + eval shared_ext=\"$shrext_cmds\"
  57340. + eval libname=\"$libname_spec\"
  57341. + else
  57342. + func_stripname '' '.la' "$outputname"
  57343. + libname=$func_stripname_result
  57344. + fi
  57345. + ;;
  57346. + esac
  57347. +
  57348. + if test -n "$objs"; then
  57349. + if test "$deplibs_check_method" != pass_all; then
  57350. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  57351. + else
  57352. + $ECHO
  57353. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  57354. + $ECHO "*** objects $objs is not portable!"
  57355. + libobjs="$libobjs $objs"
  57356. + fi
  57357. + fi
  57358. +
  57359. + test "$dlself" != no && \
  57360. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  57361. +
  57362. + set dummy $rpath
  57363. + shift
  57364. + test "$#" -gt 1 && \
  57365. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  57366. +
  57367. + install_libdir="$1"
  57368. +
  57369. + oldlibs=
  57370. + if test -z "$rpath"; then
  57371. + if test "$build_libtool_libs" = yes; then
  57372. + # Building a libtool convenience library.
  57373. + # Some compilers have problems with a `.al' extension so
  57374. + # convenience libraries should have the same extension an
  57375. + # archive normally would.
  57376. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  57377. + build_libtool_libs=convenience
  57378. + build_old_libs=yes
  57379. + fi
  57380. +
  57381. + test -n "$vinfo" && \
  57382. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  57383. +
  57384. + test -n "$release" && \
  57385. + func_warning "\`-release' is ignored for convenience libraries"
  57386. + else
  57387. +
  57388. + # Parse the version information argument.
  57389. + save_ifs="$IFS"; IFS=':'
  57390. + set dummy $vinfo 0 0 0
  57391. + shift
  57392. + IFS="$save_ifs"
  57393. +
  57394. + test -n "$7" && \
  57395. + func_fatal_help "too many parameters to \`-version-info'"
  57396. +
  57397. + # convert absolute version numbers to libtool ages
  57398. + # this retains compatibility with .la files and attempts
  57399. + # to make the code below a bit more comprehensible
  57400. +
  57401. + case $vinfo_number in
  57402. + yes)
  57403. + number_major="$1"
  57404. + number_minor="$2"
  57405. + number_revision="$3"
  57406. + #
  57407. + # There are really only two kinds -- those that
  57408. + # use the current revision as the major version
  57409. + # and those that subtract age and use age as
  57410. + # a minor version. But, then there is irix
  57411. + # which has an extra 1 added just for fun
  57412. + #
  57413. + case $version_type in
  57414. + darwin|linux|osf|windows|none)
  57415. + func_arith $number_major + $number_minor
  57416. + current=$func_arith_result
  57417. + age="$number_minor"
  57418. + revision="$number_revision"
  57419. + ;;
  57420. + freebsd-aout|freebsd-elf|sunos)
  57421. + current="$number_major"
  57422. + revision="$number_minor"
  57423. + age="0"
  57424. + ;;
  57425. + irix|nonstopux)
  57426. + func_arith $number_major + $number_minor
  57427. + current=$func_arith_result
  57428. + age="$number_minor"
  57429. + revision="$number_minor"
  57430. + lt_irix_increment=no
  57431. + ;;
  57432. + *)
  57433. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  57434. + ;;
  57435. + esac
  57436. + ;;
  57437. + no)
  57438. + current="$1"
  57439. + revision="$2"
  57440. + age="$3"
  57441. + ;;
  57442. + esac
  57443. +
  57444. + # Check that each of the things are valid numbers.
  57445. + case $current in
  57446. + 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]) ;;
  57447. + *)
  57448. + func_error "CURRENT \`$current' must be a nonnegative integer"
  57449. + func_fatal_error "\`$vinfo' is not valid version information"
  57450. + ;;
  57451. + esac
  57452. +
  57453. + case $revision in
  57454. + 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]) ;;
  57455. + *)
  57456. + func_error "REVISION \`$revision' must be a nonnegative integer"
  57457. + func_fatal_error "\`$vinfo' is not valid version information"
  57458. + ;;
  57459. + esac
  57460. +
  57461. + case $age in
  57462. + 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]) ;;
  57463. + *)
  57464. + func_error "AGE \`$age' must be a nonnegative integer"
  57465. + func_fatal_error "\`$vinfo' is not valid version information"
  57466. + ;;
  57467. + esac
  57468. +
  57469. + if test "$age" -gt "$current"; then
  57470. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  57471. + func_fatal_error "\`$vinfo' is not valid version information"
  57472. + fi
  57473. +
  57474. + # Calculate the version variables.
  57475. + major=
  57476. + versuffix=
  57477. + verstring=
  57478. + case $version_type in
  57479. + none) ;;
  57480. +
  57481. + darwin)
  57482. + # Like Linux, but with the current version available in
  57483. + # verstring for coding it into the library header
  57484. + func_arith $current - $age
  57485. + major=.$func_arith_result
  57486. + versuffix="$major.$age.$revision"
  57487. + # Darwin ld doesn't like 0 for these options...
  57488. + func_arith $current + 1
  57489. + minor_current=$func_arith_result
  57490. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  57491. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  57492. + ;;
  57493. +
  57494. + freebsd-aout)
  57495. + major=".$current"
  57496. + versuffix=".$current.$revision";
  57497. + ;;
  57498. +
  57499. + freebsd-elf)
  57500. + major=".$current"
  57501. + versuffix=".$current"
  57502. + ;;
  57503. +
  57504. + irix | nonstopux)
  57505. + if test "X$lt_irix_increment" = "Xno"; then
  57506. + func_arith $current - $age
  57507. + else
  57508. + func_arith $current - $age + 1
  57509. + fi
  57510. + major=$func_arith_result
  57511. +
  57512. + case $version_type in
  57513. + nonstopux) verstring_prefix=nonstopux ;;
  57514. + *) verstring_prefix=sgi ;;
  57515. + esac
  57516. + verstring="$verstring_prefix$major.$revision"
  57517. +
  57518. + # Add in all the interfaces that we are compatible with.
  57519. + loop=$revision
  57520. + while test "$loop" -ne 0; do
  57521. + func_arith $revision - $loop
  57522. + iface=$func_arith_result
  57523. + func_arith $loop - 1
  57524. + loop=$func_arith_result
  57525. + verstring="$verstring_prefix$major.$iface:$verstring"
  57526. + done
  57527. +
  57528. + # Before this point, $major must not contain `.'.
  57529. + major=.$major
  57530. + versuffix="$major.$revision"
  57531. + ;;
  57532. +
  57533. + linux)
  57534. + func_arith $current - $age
  57535. + major=.$func_arith_result
  57536. + versuffix="$major.$age.$revision"
  57537. + ;;
  57538. +
  57539. + osf)
  57540. + func_arith $current - $age
  57541. + major=.$func_arith_result
  57542. + versuffix=".$current.$age.$revision"
  57543. + verstring="$current.$age.$revision"
  57544. +
  57545. + # Add in all the interfaces that we are compatible with.
  57546. + loop=$age
  57547. + while test "$loop" -ne 0; do
  57548. + func_arith $current - $loop
  57549. + iface=$func_arith_result
  57550. + func_arith $loop - 1
  57551. + loop=$func_arith_result
  57552. + verstring="$verstring:${iface}.0"
  57553. + done
  57554. +
  57555. + # Make executables depend on our current version.
  57556. + verstring="$verstring:${current}.0"
  57557. + ;;
  57558. +
  57559. + qnx)
  57560. + major=".$current"
  57561. + versuffix=".$current"
  57562. + ;;
  57563. +
  57564. + sunos)
  57565. + major=".$current"
  57566. + versuffix=".$current.$revision"
  57567. + ;;
  57568. +
  57569. + windows)
  57570. + # Use '-' rather than '.', since we only want one
  57571. + # extension on DOS 8.3 filesystems.
  57572. + func_arith $current - $age
  57573. + major=$func_arith_result
  57574. + versuffix="-$major"
  57575. + ;;
  57576. +
  57577. + *)
  57578. + func_fatal_configuration "unknown library version type \`$version_type'"
  57579. + ;;
  57580. + esac
  57581. +
  57582. + # Clear the version info if we defaulted, and they specified a release.
  57583. + if test -z "$vinfo" && test -n "$release"; then
  57584. + major=
  57585. + case $version_type in
  57586. + darwin)
  57587. + # we can't check for "0.0" in archive_cmds due to quoting
  57588. + # problems, so we reset it completely
  57589. + verstring=
  57590. + ;;
  57591. + *)
  57592. + verstring="0.0"
  57593. + ;;
  57594. + esac
  57595. + if test "$need_version" = no; then
  57596. + versuffix=
  57597. + else
  57598. + versuffix=".0.0"
  57599. + fi
  57600. + fi
  57601. +
  57602. + # Remove version info from name if versioning should be avoided
  57603. + if test "$avoid_version" = yes && test "$need_version" = no; then
  57604. + major=
  57605. + versuffix=
  57606. + verstring=""
  57607. + fi
  57608. +
  57609. + # Check to see if the archive will have undefined symbols.
  57610. + if test "$allow_undefined" = yes; then
  57611. + if test "$allow_undefined_flag" = unsupported; then
  57612. + func_warning "undefined symbols not allowed in $host shared libraries"
  57613. + build_libtool_libs=no
  57614. + build_old_libs=yes
  57615. + fi
  57616. + else
  57617. + # Don't allow undefined symbols.
  57618. + allow_undefined_flag="$no_undefined_flag"
  57619. + fi
  57620. +
  57621. + fi
  57622. +
  57623. + func_generate_dlsyms "$libname" "$libname" "yes"
  57624. + libobjs="$libobjs $symfileobj"
  57625. + test "X$libobjs" = "X " && libobjs=
  57626. +
  57627. + if test "$mode" != relink; then
  57628. + # Remove our outputs, but don't remove object files since they
  57629. + # may have been created when compiling PIC objects.
  57630. + removelist=
  57631. + tempremovelist=`$ECHO "$output_objdir/*"`
  57632. + for p in $tempremovelist; do
  57633. + case $p in
  57634. + *.$objext | *.gcno)
  57635. + ;;
  57636. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  57637. + if test "X$precious_files_regex" != "X"; then
  57638. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  57639. + then
  57640. + continue
  57641. + fi
  57642. + fi
  57643. + removelist="$removelist $p"
  57644. + ;;
  57645. + *) ;;
  57646. + esac
  57647. + done
  57648. + test -n "$removelist" && \
  57649. + func_show_eval "${RM}r \$removelist"
  57650. + fi
  57651. +
  57652. + # Now set the variables for building old libraries.
  57653. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  57654. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  57655. +
  57656. + # Transform .lo files to .o files.
  57657. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  57658. + fi
  57659. +
  57660. + # Eliminate all temporary directories.
  57661. + #for path in $notinst_path; do
  57662. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  57663. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  57664. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  57665. + #done
  57666. +
  57667. + if test -n "$xrpath"; then
  57668. + # If the user specified any rpath flags, then add them.
  57669. + temp_xrpath=
  57670. + for libdir in $xrpath; do
  57671. + temp_xrpath="$temp_xrpath -R$libdir"
  57672. + case "$finalize_rpath " in
  57673. + *" $libdir "*) ;;
  57674. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  57675. + esac
  57676. + done
  57677. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  57678. + dependency_libs="$temp_xrpath $dependency_libs"
  57679. + fi
  57680. + fi
  57681. +
  57682. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  57683. + old_dlfiles="$dlfiles"
  57684. + dlfiles=
  57685. + for lib in $old_dlfiles; do
  57686. + case " $dlprefiles $dlfiles " in
  57687. + *" $lib "*) ;;
  57688. + *) dlfiles="$dlfiles $lib" ;;
  57689. + esac
  57690. + done
  57691. +
  57692. + # Make sure dlprefiles contains only unique files
  57693. + old_dlprefiles="$dlprefiles"
  57694. + dlprefiles=
  57695. + for lib in $old_dlprefiles; do
  57696. + case "$dlprefiles " in
  57697. + *" $lib "*) ;;
  57698. + *) dlprefiles="$dlprefiles $lib" ;;
  57699. + esac
  57700. + done
  57701. +
  57702. + if test "$build_libtool_libs" = yes; then
  57703. + if test -n "$rpath"; then
  57704. + case $host in
  57705. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  57706. + # these systems don't actually have a c library (as such)!
  57707. + ;;
  57708. + *-*-rhapsody* | *-*-darwin1.[012])
  57709. + # Rhapsody C library is in the System framework
  57710. + deplibs="$deplibs System.ltframework"
  57711. + ;;
  57712. + *-*-netbsd*)
  57713. + # Don't link with libc until the a.out ld.so is fixed.
  57714. + ;;
  57715. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  57716. + # Do not include libc due to us having libc/libc_r.
  57717. + ;;
  57718. + *-*-sco3.2v5* | *-*-sco5v6*)
  57719. + # Causes problems with __ctype
  57720. + ;;
  57721. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  57722. + # Compiler inserts libc in the correct place for threads to work
  57723. + ;;
  57724. + *)
  57725. + # Add libc to deplibs on all other systems if necessary.
  57726. + if test "$build_libtool_need_lc" = "yes"; then
  57727. + deplibs="$deplibs -lc"
  57728. + fi
  57729. + ;;
  57730. + esac
  57731. + fi
  57732. +
  57733. + # Transform deplibs into only deplibs that can be linked in shared.
  57734. + name_save=$name
  57735. + libname_save=$libname
  57736. + release_save=$release
  57737. + versuffix_save=$versuffix
  57738. + major_save=$major
  57739. + # I'm not sure if I'm treating the release correctly. I think
  57740. + # release should show up in the -l (ie -lgmp5) so we don't want to
  57741. + # add it in twice. Is that correct?
  57742. + release=""
  57743. + versuffix=""
  57744. + major=""
  57745. + newdeplibs=
  57746. + droppeddeps=no
  57747. + case $deplibs_check_method in
  57748. + pass_all)
  57749. + # Don't check for shared/static. Everything works.
  57750. + # This might be a little naive. We might want to check
  57751. + # whether the library exists or not. But this is on
  57752. + # osf3 & osf4 and I'm not really sure... Just
  57753. + # implementing what was already the behavior.
  57754. + newdeplibs=$deplibs
  57755. + ;;
  57756. + test_compile)
  57757. + # This code stresses the "libraries are programs" paradigm to its
  57758. + # limits. Maybe even breaks it. We compile a program, linking it
  57759. + # against the deplibs as a proxy for the library. Then we can check
  57760. + # whether they linked in statically or dynamically with ldd.
  57761. + $opt_dry_run || $RM conftest.c
  57762. + cat > conftest.c <<EOF
  57763. + int main() { return 0; }
  57764. +EOF
  57765. + $opt_dry_run || $RM conftest
  57766. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  57767. + ldd_output=`ldd conftest`
  57768. + for i in $deplibs; do
  57769. + case $i in
  57770. + -l*)
  57771. + func_stripname -l '' "$i"
  57772. + name=$func_stripname_result
  57773. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  57774. + case " $predeps $postdeps " in
  57775. + *" $i "*)
  57776. + newdeplibs="$newdeplibs $i"
  57777. + i=""
  57778. + ;;
  57779. + esac
  57780. + fi
  57781. + if test -n "$i" ; then
  57782. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57783. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  57784. + set dummy $deplib_matches; shift
  57785. + deplib_match=$1
  57786. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  57787. + newdeplibs="$newdeplibs $i"
  57788. + else
  57789. + droppeddeps=yes
  57790. + $ECHO
  57791. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  57792. + $ECHO "*** I have the capability to make that library automatically link in when"
  57793. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57794. + $ECHO "*** shared version of the library, which I believe you do not have"
  57795. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  57796. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  57797. + fi
  57798. + fi
  57799. + ;;
  57800. + *)
  57801. + newdeplibs="$newdeplibs $i"
  57802. + ;;
  57803. + esac
  57804. + done
  57805. + else
  57806. + # Error occurred in the first compile. Let's try to salvage
  57807. + # the situation: Compile a separate program for each library.
  57808. + for i in $deplibs; do
  57809. + case $i in
  57810. + -l*)
  57811. + func_stripname -l '' "$i"
  57812. + name=$func_stripname_result
  57813. + $opt_dry_run || $RM conftest
  57814. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  57815. + ldd_output=`ldd conftest`
  57816. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  57817. + case " $predeps $postdeps " in
  57818. + *" $i "*)
  57819. + newdeplibs="$newdeplibs $i"
  57820. + i=""
  57821. + ;;
  57822. + esac
  57823. + fi
  57824. + if test -n "$i" ; then
  57825. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57826. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  57827. + set dummy $deplib_matches; shift
  57828. + deplib_match=$1
  57829. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  57830. + newdeplibs="$newdeplibs $i"
  57831. + else
  57832. + droppeddeps=yes
  57833. + $ECHO
  57834. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  57835. + $ECHO "*** I have the capability to make that library automatically link in when"
  57836. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57837. + $ECHO "*** shared version of the library, which you do not appear to have"
  57838. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  57839. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  57840. + fi
  57841. + fi
  57842. + else
  57843. + droppeddeps=yes
  57844. + $ECHO
  57845. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  57846. + $ECHO "*** make it link in! You will probably need to install it or some"
  57847. + $ECHO "*** library that it depends on before this library will be fully"
  57848. + $ECHO "*** functional. Installing it before continuing would be even better."
  57849. + fi
  57850. + ;;
  57851. + *)
  57852. + newdeplibs="$newdeplibs $i"
  57853. + ;;
  57854. + esac
  57855. + done
  57856. + fi
  57857. + ;;
  57858. + file_magic*)
  57859. + set dummy $deplibs_check_method; shift
  57860. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  57861. + for a_deplib in $deplibs; do
  57862. + case $a_deplib in
  57863. + -l*)
  57864. + func_stripname -l '' "$a_deplib"
  57865. + name=$func_stripname_result
  57866. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  57867. + case " $predeps $postdeps " in
  57868. + *" $a_deplib "*)
  57869. + newdeplibs="$newdeplibs $a_deplib"
  57870. + a_deplib=""
  57871. + ;;
  57872. + esac
  57873. + fi
  57874. + if test -n "$a_deplib" ; then
  57875. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57876. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  57877. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  57878. + for potent_lib in $potential_libs; do
  57879. + # Follow soft links.
  57880. + if ls -lLd "$potent_lib" 2>/dev/null |
  57881. + $GREP " -> " >/dev/null; then
  57882. + continue
  57883. + fi
  57884. + # The statement above tries to avoid entering an
  57885. + # endless loop below, in case of cyclic links.
  57886. + # We might still enter an endless loop, since a link
  57887. + # loop can be closed while we follow links,
  57888. + # but so what?
  57889. + potlib="$potent_lib"
  57890. + while test -h "$potlib" 2>/dev/null; do
  57891. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  57892. + case $potliblink in
  57893. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  57894. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  57895. + esac
  57896. + done
  57897. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  57898. + $SED -e 10q |
  57899. + $EGREP "$file_magic_regex" > /dev/null; then
  57900. + newdeplibs="$newdeplibs $a_deplib"
  57901. + a_deplib=""
  57902. + break 2
  57903. + fi
  57904. + done
  57905. + done
  57906. + fi
  57907. + if test -n "$a_deplib" ; then
  57908. + droppeddeps=yes
  57909. + $ECHO
  57910. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  57911. + $ECHO "*** I have the capability to make that library automatically link in when"
  57912. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57913. + $ECHO "*** shared version of the library, which you do not appear to have"
  57914. + $ECHO "*** because I did check the linker path looking for a file starting"
  57915. + if test -z "$potlib" ; then
  57916. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  57917. + else
  57918. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  57919. + $ECHO "*** using a file magic. Last file checked: $potlib"
  57920. + fi
  57921. + fi
  57922. + ;;
  57923. + *)
  57924. + # Add a -L argument.
  57925. + newdeplibs="$newdeplibs $a_deplib"
  57926. + ;;
  57927. + esac
  57928. + done # Gone through all deplibs.
  57929. + ;;
  57930. + match_pattern*)
  57931. + set dummy $deplibs_check_method; shift
  57932. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  57933. + for a_deplib in $deplibs; do
  57934. + case $a_deplib in
  57935. + -l*)
  57936. + func_stripname -l '' "$a_deplib"
  57937. + name=$func_stripname_result
  57938. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  57939. + case " $predeps $postdeps " in
  57940. + *" $a_deplib "*)
  57941. + newdeplibs="$newdeplibs $a_deplib"
  57942. + a_deplib=""
  57943. + ;;
  57944. + esac
  57945. + fi
  57946. + if test -n "$a_deplib" ; then
  57947. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57948. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  57949. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  57950. + for potent_lib in $potential_libs; do
  57951. + potlib="$potent_lib" # see symlink-check above in file_magic test
  57952. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  57953. + $EGREP "$match_pattern_regex" > /dev/null; then
  57954. + newdeplibs="$newdeplibs $a_deplib"
  57955. + a_deplib=""
  57956. + break 2
  57957. + fi
  57958. + done
  57959. + done
  57960. + fi
  57961. + if test -n "$a_deplib" ; then
  57962. + droppeddeps=yes
  57963. + $ECHO
  57964. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  57965. + $ECHO "*** I have the capability to make that library automatically link in when"
  57966. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57967. + $ECHO "*** shared version of the library, which you do not appear to have"
  57968. + $ECHO "*** because I did check the linker path looking for a file starting"
  57969. + if test -z "$potlib" ; then
  57970. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  57971. + else
  57972. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  57973. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  57974. + fi
  57975. + fi
  57976. + ;;
  57977. + *)
  57978. + # Add a -L argument.
  57979. + newdeplibs="$newdeplibs $a_deplib"
  57980. + ;;
  57981. + esac
  57982. + done # Gone through all deplibs.
  57983. + ;;
  57984. + none | unknown | *)
  57985. + newdeplibs=""
  57986. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  57987. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  57988. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  57989. + for i in $predeps $postdeps ; do
  57990. + # can't use Xsed below, because $i might contain '/'
  57991. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  57992. + done
  57993. + fi
  57994. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  57995. + $GREP . >/dev/null; then
  57996. + $ECHO
  57997. + if test "X$deplibs_check_method" = "Xnone"; then
  57998. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  57999. + else
  58000. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  58001. + fi
  58002. + $ECHO "*** All declared inter-library dependencies are being dropped."
  58003. + droppeddeps=yes
  58004. + fi
  58005. + ;;
  58006. + esac
  58007. + versuffix=$versuffix_save
  58008. + major=$major_save
  58009. + release=$release_save
  58010. + libname=$libname_save
  58011. + name=$name_save
  58012. +
  58013. + case $host in
  58014. + *-*-rhapsody* | *-*-darwin1.[012])
  58015. + # On Rhapsody replace the C library with the System framework
  58016. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58017. + ;;
  58018. + esac
  58019. +
  58020. + if test "$droppeddeps" = yes; then
  58021. + if test "$module" = yes; then
  58022. + $ECHO
  58023. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  58024. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  58025. + $ECHO "*** a static module, that should work as long as the dlopening"
  58026. + $ECHO "*** application is linked with the -dlopen flag."
  58027. + if test -z "$global_symbol_pipe"; then
  58028. + $ECHO
  58029. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  58030. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58031. + $ECHO "*** not find such a program. So, this module is probably useless."
  58032. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  58033. + fi
  58034. + if test "$build_old_libs" = no; then
  58035. + oldlibs="$output_objdir/$libname.$libext"
  58036. + build_libtool_libs=module
  58037. + build_old_libs=yes
  58038. + else
  58039. + build_libtool_libs=no
  58040. + fi
  58041. + else
  58042. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  58043. + $ECHO "*** automatically added whenever a program is linked with this library"
  58044. + $ECHO "*** or is declared to -dlopen it."
  58045. +
  58046. + if test "$allow_undefined" = no; then
  58047. + $ECHO
  58048. + $ECHO "*** Since this library must not contain undefined symbols,"
  58049. + $ECHO "*** because either the platform does not support them or"
  58050. + $ECHO "*** it was explicitly requested with -no-undefined,"
  58051. + $ECHO "*** libtool will only create a static version of it."
  58052. + if test "$build_old_libs" = no; then
  58053. + oldlibs="$output_objdir/$libname.$libext"
  58054. + build_libtool_libs=module
  58055. + build_old_libs=yes
  58056. + else
  58057. + build_libtool_libs=no
  58058. + fi
  58059. + fi
  58060. + fi
  58061. + fi
  58062. + # Done checking deplibs!
  58063. + deplibs=$newdeplibs
  58064. + fi
  58065. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  58066. + case $host in
  58067. + *-*-darwin*)
  58068. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58069. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58070. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58071. + ;;
  58072. + esac
  58073. +
  58074. + # move library search paths that coincide with paths to not yet
  58075. + # installed libraries to the beginning of the library search list
  58076. + new_libs=
  58077. + for path in $notinst_path; do
  58078. + case " $new_libs " in
  58079. + *" -L$path/$objdir "*) ;;
  58080. + *)
  58081. + case " $deplibs " in
  58082. + *" -L$path/$objdir "*)
  58083. + new_libs="$new_libs -L$path/$objdir" ;;
  58084. + esac
  58085. + ;;
  58086. + esac
  58087. + done
  58088. + for deplib in $deplibs; do
  58089. + case $deplib in
  58090. + -L*)
  58091. + case " $new_libs " in
  58092. + *" $deplib "*) ;;
  58093. + *) new_libs="$new_libs $deplib" ;;
  58094. + esac
  58095. + ;;
  58096. + *) new_libs="$new_libs $deplib" ;;
  58097. + esac
  58098. + done
  58099. + deplibs="$new_libs"
  58100. +
  58101. + # All the library-specific variables (install_libdir is set above).
  58102. + library_names=
  58103. + old_library=
  58104. + dlname=
  58105. +
  58106. + # Test again, we may have decided not to build it any more
  58107. + if test "$build_libtool_libs" = yes; then
  58108. + if test "$hardcode_into_libs" = yes; then
  58109. + # Hardcode the library paths
  58110. + hardcode_libdirs=
  58111. + dep_rpath=
  58112. + rpath="$finalize_rpath"
  58113. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  58114. + for libdir in $rpath; do
  58115. + if test -n "$hardcode_libdir_flag_spec"; then
  58116. + if test -n "$hardcode_libdir_separator"; then
  58117. + if test -z "$hardcode_libdirs"; then
  58118. + hardcode_libdirs="$libdir"
  58119. + else
  58120. + # Just accumulate the unique libdirs.
  58121. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58122. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58123. + ;;
  58124. + *)
  58125. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58126. + ;;
  58127. + esac
  58128. + fi
  58129. + else
  58130. + eval flag=\"$hardcode_libdir_flag_spec\"
  58131. + dep_rpath="$dep_rpath $flag"
  58132. + fi
  58133. + elif test -n "$runpath_var"; then
  58134. + case "$perm_rpath " in
  58135. + *" $libdir "*) ;;
  58136. + *) perm_rpath="$perm_rpath $libdir" ;;
  58137. + esac
  58138. + fi
  58139. + done
  58140. + # Substitute the hardcoded libdirs into the rpath.
  58141. + if test -n "$hardcode_libdir_separator" &&
  58142. + test -n "$hardcode_libdirs"; then
  58143. + libdir="$hardcode_libdirs"
  58144. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  58145. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  58146. + else
  58147. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  58148. + fi
  58149. + fi
  58150. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  58151. + # We should set the runpath_var.
  58152. + rpath=
  58153. + for dir in $perm_rpath; do
  58154. + rpath="$rpath$dir:"
  58155. + done
  58156. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  58157. + fi
  58158. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  58159. + fi
  58160. - # Try to get the absolute directory name.
  58161. - absdir=\`cd \"\$thisdir\" && pwd\`
  58162. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  58163. -"
  58164. + shlibpath="$finalize_shlibpath"
  58165. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  58166. + if test -n "$shlibpath"; then
  58167. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  58168. + fi
  58169. - if test "$fast_install" = yes; then
  58170. - $echo >> $output "\
  58171. - program=lt-'$outputname'$exeext
  58172. - progdir=\"\$thisdir/$objdir\"
  58173. + # Get the real and link names of the library.
  58174. + eval shared_ext=\"$shrext_cmds\"
  58175. + eval library_names=\"$library_names_spec\"
  58176. + set dummy $library_names
  58177. + shift
  58178. + realname="$1"
  58179. + shift
  58180. - if test ! -f \"\$progdir/\$program\" || \\
  58181. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  58182. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  58183. + if test -n "$soname_spec"; then
  58184. + eval soname=\"$soname_spec\"
  58185. + else
  58186. + soname="$realname"
  58187. + fi
  58188. + if test -z "$dlname"; then
  58189. + dlname=$soname
  58190. + fi
  58191. - file=\"\$\$-\$program\"
  58192. + lib="$output_objdir/$realname"
  58193. + linknames=
  58194. + for link
  58195. + do
  58196. + linknames="$linknames $link"
  58197. + done
  58198. - if test ! -d \"\$progdir\"; then
  58199. - $mkdir \"\$progdir\"
  58200. - else
  58201. - $rm \"\$progdir/\$file\"
  58202. - fi"
  58203. + # Use standard objects if they are pic
  58204. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58205. + test "X$libobjs" = "X " && libobjs=
  58206. - $echo >> $output "\
  58207. + delfiles=
  58208. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58209. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  58210. + export_symbols="$output_objdir/$libname.uexp"
  58211. + delfiles="$delfiles $export_symbols"
  58212. + fi
  58213. +
  58214. + orig_export_symbols=
  58215. + case $host_os in
  58216. + cygwin* | mingw* | cegcc*)
  58217. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  58218. + # exporting using user supplied symfile
  58219. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  58220. + # and it's NOT already a .def file. Must figure out
  58221. + # which of the given symbols are data symbols and tag
  58222. + # them as such. So, trigger use of export_symbols_cmds.
  58223. + # export_symbols gets reassigned inside the "prepare
  58224. + # the list of exported symbols" if statement, so the
  58225. + # include_expsyms logic still works.
  58226. + orig_export_symbols="$export_symbols"
  58227. + export_symbols=
  58228. + always_export_symbols=yes
  58229. + fi
  58230. + fi
  58231. + ;;
  58232. + esac
  58233. - # relink executable if necessary
  58234. - if test -n \"\$relink_command\"; then
  58235. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  58236. - else
  58237. - $echo \"\$relink_command_output\" >&2
  58238. - $rm \"\$progdir/\$file\"
  58239. - exit $EXIT_FAILURE
  58240. - fi
  58241. - fi
  58242. + # Prepare the list of exported symbols
  58243. + if test -z "$export_symbols"; then
  58244. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  58245. + func_verbose "generating symbol list for \`$libname.la'"
  58246. + export_symbols="$output_objdir/$libname.exp"
  58247. + $opt_dry_run || $RM $export_symbols
  58248. + cmds=$export_symbols_cmds
  58249. + save_ifs="$IFS"; IFS='~'
  58250. + for cmd in $cmds; do
  58251. + IFS="$save_ifs"
  58252. + eval cmd=\"$cmd\"
  58253. + func_len " $cmd"
  58254. + len=$func_len_result
  58255. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58256. + func_show_eval "$cmd" 'exit $?'
  58257. + skipped_export=false
  58258. + else
  58259. + # The command line is too long to execute in one step.
  58260. + func_verbose "using reloadable object file for export list..."
  58261. + skipped_export=:
  58262. + # Break out early, otherwise skipped_export may be
  58263. + # set to false by a later but shorter cmd.
  58264. + break
  58265. + fi
  58266. + done
  58267. + IFS="$save_ifs"
  58268. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  58269. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  58270. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  58271. + fi
  58272. + fi
  58273. + fi
  58274. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  58275. - { $rm \"\$progdir/\$program\";
  58276. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  58277. - $rm \"\$progdir/\$file\"
  58278. - fi"
  58279. - else
  58280. - $echo >> $output "\
  58281. - program='$outputname'
  58282. - progdir=\"\$thisdir/$objdir\"
  58283. -"
  58284. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58285. + tmp_export_symbols="$export_symbols"
  58286. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  58287. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  58288. + fi
  58289. +
  58290. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  58291. + # The given exports_symbols file has to be filtered, so filter it.
  58292. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  58293. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  58294. + # 's' commands which not all seds can handle. GNU sed should be fine
  58295. + # though. Also, the filter scales superlinearly with the number of
  58296. + # global variables. join(1) would be nice here, but unfortunately
  58297. + # isn't a blessed tool.
  58298. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  58299. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  58300. + export_symbols=$output_objdir/$libname.def
  58301. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  58302. fi
  58303. - $echo >> $output "\
  58304. + tmp_deplibs=
  58305. + for test_deplib in $deplibs; do
  58306. + case " $convenience " in
  58307. + *" $test_deplib "*) ;;
  58308. + *)
  58309. + tmp_deplibs="$tmp_deplibs $test_deplib"
  58310. + ;;
  58311. + esac
  58312. + done
  58313. + deplibs="$tmp_deplibs"
  58314. - if test -f \"\$progdir/\$program\"; then"
  58315. + if test -n "$convenience"; then
  58316. + if test -n "$whole_archive_flag_spec" &&
  58317. + test "$compiler_needs_object" = yes &&
  58318. + test -z "$libobjs"; then
  58319. + # extract the archives, so we have objects to list.
  58320. + # TODO: could optimize this to just extract one archive.
  58321. + whole_archive_flag_spec=
  58322. + fi
  58323. + if test -n "$whole_archive_flag_spec"; then
  58324. + save_libobjs=$libobjs
  58325. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  58326. + test "X$libobjs" = "X " && libobjs=
  58327. + else
  58328. + gentop="$output_objdir/${outputname}x"
  58329. + generated="$generated $gentop"
  58330. - # Export our shlibpath_var if we have one.
  58331. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58332. - $echo >> $output "\
  58333. - # Add our own library path to $shlibpath_var
  58334. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  58335. + func_extract_archives $gentop $convenience
  58336. + libobjs="$libobjs $func_extract_archives_result"
  58337. + test "X$libobjs" = "X " && libobjs=
  58338. + fi
  58339. + fi
  58340. - # Some systems cannot cope with colon-terminated $shlibpath_var
  58341. - # The second colon is a workaround for a bug in BeOS R4 sed
  58342. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  58343. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  58344. + eval flag=\"$thread_safe_flag_spec\"
  58345. + linker_flags="$linker_flags $flag"
  58346. + fi
  58347. - export $shlibpath_var
  58348. -"
  58349. + # Make a backup of the uninstalled library when relinking
  58350. + if test "$mode" = relink; then
  58351. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  58352. fi
  58353. - # fixup the dll searchpath if we need to.
  58354. - if test -n "$dllsearchpath"; then
  58355. - $echo >> $output "\
  58356. - # Add the dll search path components to the executable PATH
  58357. - PATH=$dllsearchpath:\$PATH
  58358. -"
  58359. + # Do each of the archive commands.
  58360. + if test "$module" = yes && test -n "$module_cmds" ; then
  58361. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  58362. + eval test_cmds=\"$module_expsym_cmds\"
  58363. + cmds=$module_expsym_cmds
  58364. + else
  58365. + eval test_cmds=\"$module_cmds\"
  58366. + cmds=$module_cmds
  58367. + fi
  58368. + else
  58369. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  58370. + eval test_cmds=\"$archive_expsym_cmds\"
  58371. + cmds=$archive_expsym_cmds
  58372. + else
  58373. + eval test_cmds=\"$archive_cmds\"
  58374. + cmds=$archive_cmds
  58375. + fi
  58376. fi
  58377. - $echo >> $output "\
  58378. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58379. - # Run the actual program with our arguments.
  58380. -"
  58381. - case $host in
  58382. - # Backslashes separate directories on plain windows
  58383. - *-*-mingw | *-*-os2*)
  58384. - $echo >> $output "\
  58385. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  58386. -"
  58387. - ;;
  58388. + if test "X$skipped_export" != "X:" &&
  58389. + func_len " $test_cmds" &&
  58390. + len=$func_len_result &&
  58391. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58392. + :
  58393. + else
  58394. + # The command line is too long to link in one step, link piecewise
  58395. + # or, if using GNU ld and skipped_export is not :, use a linker
  58396. + # script.
  58397. - *)
  58398. - $echo >> $output "\
  58399. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  58400. -"
  58401. - ;;
  58402. - esac
  58403. - $echo >> $output "\
  58404. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  58405. - exit $EXIT_FAILURE
  58406. - fi
  58407. - else
  58408. - # The program doesn't exist.
  58409. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  58410. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  58411. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  58412. - exit $EXIT_FAILURE
  58413. - fi
  58414. -fi\
  58415. -"
  58416. - chmod +x $output
  58417. - fi
  58418. - exit $EXIT_SUCCESS
  58419. - ;;
  58420. - esac
  58421. + # Save the value of $output and $libobjs because we want to
  58422. + # use them later. If we have whole_archive_flag_spec, we
  58423. + # want to use save_libobjs as it was before
  58424. + # whole_archive_flag_spec was expanded, because we can't
  58425. + # assume the linker understands whole_archive_flag_spec.
  58426. + # This may have to be revisited, in case too many
  58427. + # convenience libraries get linked in and end up exceeding
  58428. + # the spec.
  58429. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  58430. + save_libobjs=$libobjs
  58431. + fi
  58432. + save_output=$output
  58433. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  58434. - # See if we need to build an old-fashioned archive.
  58435. - for oldlib in $oldlibs; do
  58436. + # Clear the reloadable object creation command queue and
  58437. + # initialize k to one.
  58438. + test_cmds=
  58439. + concat_cmds=
  58440. + objlist=
  58441. + last_robj=
  58442. + k=1
  58443. - if test "$build_libtool_libs" = convenience; then
  58444. - oldobjs="$libobjs_save"
  58445. - addlibs="$convenience"
  58446. - build_libtool_libs=no
  58447. - else
  58448. - if test "$build_libtool_libs" = module; then
  58449. - oldobjs="$libobjs_save"
  58450. - build_libtool_libs=no
  58451. - else
  58452. - oldobjs="$old_deplibs $non_pic_objects"
  58453. - fi
  58454. - addlibs="$old_convenience"
  58455. - fi
  58456. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  58457. + output=${output_objdir}/${output_la}.lnkscript
  58458. + func_verbose "creating GNU ld script: $output"
  58459. + $ECHO 'INPUT (' > $output
  58460. + for obj in $save_libobjs
  58461. + do
  58462. + $ECHO "$obj" >> $output
  58463. + done
  58464. + $ECHO ')' >> $output
  58465. + delfiles="$delfiles $output"
  58466. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  58467. + output=${output_objdir}/${output_la}.lnk
  58468. + func_verbose "creating linker input file list: $output"
  58469. + : > $output
  58470. + set x $save_libobjs
  58471. + shift
  58472. + firstobj=
  58473. + if test "$compiler_needs_object" = yes; then
  58474. + firstobj="$1 "
  58475. + shift
  58476. + fi
  58477. + for obj
  58478. + do
  58479. + $ECHO "$obj" >> $output
  58480. + done
  58481. + delfiles="$delfiles $output"
  58482. + output=$firstobj\"$file_list_spec$output\"
  58483. + else
  58484. + if test -n "$save_libobjs"; then
  58485. + func_verbose "creating reloadable object files..."
  58486. + output=$output_objdir/$output_la-${k}.$objext
  58487. + eval test_cmds=\"$reload_cmds\"
  58488. + func_len " $test_cmds"
  58489. + len0=$func_len_result
  58490. + len=$len0
  58491. +
  58492. + # Loop over the list of objects to be linked.
  58493. + for obj in $save_libobjs
  58494. + do
  58495. + func_len " $obj"
  58496. + func_arith $len + $func_len_result
  58497. + len=$func_arith_result
  58498. + if test "X$objlist" = X ||
  58499. + test "$len" -lt "$max_cmd_len"; then
  58500. + func_append objlist " $obj"
  58501. + else
  58502. + # The command $test_cmds is almost too long, add a
  58503. + # command to the queue.
  58504. + if test "$k" -eq 1 ; then
  58505. + # The first file doesn't have a previous command to add.
  58506. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  58507. + else
  58508. + # All subsequent reloadable object files will link in
  58509. + # the last one created.
  58510. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  58511. + fi
  58512. + last_robj=$output_objdir/$output_la-${k}.$objext
  58513. + func_arith $k + 1
  58514. + k=$func_arith_result
  58515. + output=$output_objdir/$output_la-${k}.$objext
  58516. + objlist=$obj
  58517. + func_len " $last_robj"
  58518. + func_arith $len0 + $func_len_result
  58519. + len=$func_arith_result
  58520. + fi
  58521. + done
  58522. + # Handle the remaining objects by creating one last
  58523. + # reloadable object file. All subsequent reloadable object
  58524. + # files will link in the last one created.
  58525. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58526. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  58527. + if test -n "$last_robj"; then
  58528. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  58529. + fi
  58530. + delfiles="$delfiles $output"
  58531. +
  58532. + else
  58533. + output=
  58534. + fi
  58535. - if test -n "$addlibs"; then
  58536. - gentop="$output_objdir/${outputname}x"
  58537. - generated="$generated $gentop"
  58538. + if ${skipped_export-false}; then
  58539. + func_verbose "generating symbol list for \`$libname.la'"
  58540. + export_symbols="$output_objdir/$libname.exp"
  58541. + $opt_dry_run || $RM $export_symbols
  58542. + libobjs=$output
  58543. + # Append the command to create the export file.
  58544. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58545. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  58546. + if test -n "$last_robj"; then
  58547. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  58548. + fi
  58549. + fi
  58550. - func_extract_archives $gentop $addlibs
  58551. - oldobjs="$oldobjs $func_extract_archives_result"
  58552. - fi
  58553. + test -n "$save_libobjs" &&
  58554. + func_verbose "creating a temporary reloadable object file: $output"
  58555. - # Do each command in the archive commands.
  58556. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  58557. - cmds=$old_archive_from_new_cmds
  58558. - else
  58559. - # POSIX demands no paths to be encoded in archives. We have
  58560. - # to avoid creating archives with duplicate basenames if we
  58561. - # might have to extract them afterwards, e.g., when creating a
  58562. - # static archive out of a convenience library, or when linking
  58563. - # the entirety of a libtool archive into another (currently
  58564. - # not supported by libtool).
  58565. - if (for obj in $oldobjs
  58566. - do
  58567. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  58568. - done | sort | sort -uc >/dev/null 2>&1); then
  58569. - :
  58570. - else
  58571. - $echo "copying selected object files to avoid basename conflicts..."
  58572. + # Loop through the commands generated above and execute them.
  58573. + save_ifs="$IFS"; IFS='~'
  58574. + for cmd in $concat_cmds; do
  58575. + IFS="$save_ifs"
  58576. + $opt_silent || {
  58577. + func_quote_for_expand "$cmd"
  58578. + eval "func_echo $func_quote_for_expand_result"
  58579. + }
  58580. + $opt_dry_run || eval "$cmd" || {
  58581. + lt_exit=$?
  58582. +
  58583. + # Restore the uninstalled library and exit
  58584. + if test "$mode" = relink; then
  58585. + ( cd "$output_objdir" && \
  58586. + $RM "${realname}T" && \
  58587. + $MV "${realname}U" "$realname" )
  58588. + fi
  58589. - if test -z "$gentop"; then
  58590. - gentop="$output_objdir/${outputname}x"
  58591. - generated="$generated $gentop"
  58592. + exit $lt_exit
  58593. + }
  58594. + done
  58595. + IFS="$save_ifs"
  58596. - $show "${rm}r $gentop"
  58597. - $run ${rm}r "$gentop"
  58598. - $show "$mkdir $gentop"
  58599. - $run $mkdir "$gentop"
  58600. - exit_status=$?
  58601. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  58602. - exit $exit_status
  58603. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  58604. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  58605. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  58606. fi
  58607. fi
  58608. - save_oldobjs=$oldobjs
  58609. - oldobjs=
  58610. - counter=1
  58611. - for obj in $save_oldobjs
  58612. - do
  58613. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  58614. - case " $oldobjs " in
  58615. - " ") oldobjs=$obj ;;
  58616. - *[\ /]"$objbase "*)
  58617. - while :; do
  58618. - # Make sure we don't pick an alternate name that also
  58619. - # overlaps.
  58620. - newobj=lt$counter-$objbase
  58621. - counter=`expr $counter + 1`
  58622. - case " $oldobjs " in
  58623. - *[\ /]"$newobj "*) ;;
  58624. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  58625. - esac
  58626. - done
  58627. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  58628. - $run ln "$obj" "$gentop/$newobj" ||
  58629. - $run cp "$obj" "$gentop/$newobj"
  58630. - oldobjs="$oldobjs $gentop/$newobj"
  58631. - ;;
  58632. - *) oldobjs="$oldobjs $obj" ;;
  58633. - esac
  58634. - done
  58635. - fi
  58636. + if ${skipped_export-false}; then
  58637. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58638. + tmp_export_symbols="$export_symbols"
  58639. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  58640. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  58641. + fi
  58642. +
  58643. + if test -n "$orig_export_symbols"; then
  58644. + # The given exports_symbols file has to be filtered, so filter it.
  58645. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  58646. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  58647. + # 's' commands which not all seds can handle. GNU sed should be fine
  58648. + # though. Also, the filter scales superlinearly with the number of
  58649. + # global variables. join(1) would be nice here, but unfortunately
  58650. + # isn't a blessed tool.
  58651. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  58652. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  58653. + export_symbols=$output_objdir/$libname.def
  58654. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  58655. + fi
  58656. + fi
  58657. - eval cmds=\"$old_archive_cmds\"
  58658. + libobjs=$output
  58659. + # Restore the value of output.
  58660. + output=$save_output
  58661. - if len=`expr "X$cmds" : ".*"` &&
  58662. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58663. - cmds=$old_archive_cmds
  58664. - else
  58665. - # the command line is too long to link in one step, link in parts
  58666. - $echo "using piecewise archive linking..."
  58667. - save_RANLIB=$RANLIB
  58668. - RANLIB=:
  58669. - objlist=
  58670. - concat_cmds=
  58671. - save_oldobjs=$oldobjs
  58672. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  58673. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  58674. + test "X$libobjs" = "X " && libobjs=
  58675. + fi
  58676. + # Expand the library linking commands again to reset the
  58677. + # value of $libobjs for piecewise linking.
  58678. - # Is there a better way of finding the last object in the list?
  58679. - for obj in $save_oldobjs
  58680. - do
  58681. - last_oldobj=$obj
  58682. - done
  58683. - for obj in $save_oldobjs
  58684. - do
  58685. - oldobjs="$objlist $obj"
  58686. - objlist="$objlist $obj"
  58687. - eval test_cmds=\"$old_archive_cmds\"
  58688. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  58689. - test "$len" -le "$max_cmd_len"; then
  58690. - :
  58691. + # Do each of the archive commands.
  58692. + if test "$module" = yes && test -n "$module_cmds" ; then
  58693. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  58694. + cmds=$module_expsym_cmds
  58695. else
  58696. - # the above command should be used before it gets too long
  58697. - oldobjs=$objlist
  58698. - if test "$obj" = "$last_oldobj" ; then
  58699. - RANLIB=$save_RANLIB
  58700. - fi
  58701. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58702. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  58703. - objlist=
  58704. + cmds=$module_cmds
  58705. fi
  58706. - done
  58707. - RANLIB=$save_RANLIB
  58708. - oldobjs=$objlist
  58709. - if test "X$oldobjs" = "X" ; then
  58710. - eval cmds=\"\$concat_cmds\"
  58711. else
  58712. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  58713. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  58714. + cmds=$archive_expsym_cmds
  58715. + else
  58716. + cmds=$archive_cmds
  58717. + fi
  58718. fi
  58719. fi
  58720. - fi
  58721. - save_ifs="$IFS"; IFS='~'
  58722. - for cmd in $cmds; do
  58723. - eval cmd=\"$cmd\"
  58724. - IFS="$save_ifs"
  58725. - $show "$cmd"
  58726. - $run eval "$cmd" || exit $?
  58727. - done
  58728. - IFS="$save_ifs"
  58729. - done
  58730. - if test -n "$generated"; then
  58731. - $show "${rm}r$generated"
  58732. - $run ${rm}r$generated
  58733. - fi
  58734. + if test -n "$delfiles"; then
  58735. + # Append the command to remove temporary files to $cmds.
  58736. + eval cmds=\"\$cmds~\$RM $delfiles\"
  58737. + fi
  58738. - # Now create the libtool archive.
  58739. - case $output in
  58740. - *.la)
  58741. - old_library=
  58742. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  58743. - $show "creating $output"
  58744. + # Add any objects from preloaded convenience libraries
  58745. + if test -n "$dlprefiles"; then
  58746. + gentop="$output_objdir/${outputname}x"
  58747. + generated="$generated $gentop"
  58748. - # Preserve any variables that may affect compiler behavior
  58749. - for var in $variables_saved_for_relink; do
  58750. - if eval test -z \"\${$var+set}\"; then
  58751. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  58752. - elif eval var_value=\$$var; test -z "$var_value"; then
  58753. - relink_command="$var=; export $var; $relink_command"
  58754. - else
  58755. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  58756. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  58757. + func_extract_archives $gentop $dlprefiles
  58758. + libobjs="$libobjs $func_extract_archives_result"
  58759. + test "X$libobjs" = "X " && libobjs=
  58760. fi
  58761. - done
  58762. - # Quote the link command for shipping.
  58763. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  58764. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58765. - if test "$hardcode_automatic" = yes ; then
  58766. - relink_command=
  58767. - fi
  58768. + save_ifs="$IFS"; IFS='~'
  58769. + for cmd in $cmds; do
  58770. + IFS="$save_ifs"
  58771. + eval cmd=\"$cmd\"
  58772. + $opt_silent || {
  58773. + func_quote_for_expand "$cmd"
  58774. + eval "func_echo $func_quote_for_expand_result"
  58775. + }
  58776. + $opt_dry_run || eval "$cmd" || {
  58777. + lt_exit=$?
  58778. - # Only create the output if not a dry run.
  58779. - if test -z "$run"; then
  58780. - for installed in no yes; do
  58781. - if test "$installed" = yes; then
  58782. - if test -z "$install_libdir"; then
  58783. - break
  58784. + # Restore the uninstalled library and exit
  58785. + if test "$mode" = relink; then
  58786. + ( cd "$output_objdir" && \
  58787. + $RM "${realname}T" && \
  58788. + $MV "${realname}U" "$realname" )
  58789. fi
  58790. - output="$output_objdir/$outputname"i
  58791. - # Replace all uninstalled libtool libraries with the installed ones
  58792. - newdependency_libs=
  58793. - for deplib in $dependency_libs; do
  58794. - case $deplib in
  58795. - *.la)
  58796. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  58797. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  58798. - if test -z "$libdir"; then
  58799. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  58800. - exit $EXIT_FAILURE
  58801. - fi
  58802. - newdependency_libs="$newdependency_libs $libdir/$name"
  58803. - ;;
  58804. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  58805. - esac
  58806. - done
  58807. - dependency_libs="$newdependency_libs"
  58808. - newdlfiles=
  58809. - for lib in $dlfiles; do
  58810. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  58811. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58812. - if test -z "$libdir"; then
  58813. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  58814. - exit $EXIT_FAILURE
  58815. - fi
  58816. - newdlfiles="$newdlfiles $libdir/$name"
  58817. - done
  58818. - dlfiles="$newdlfiles"
  58819. - newdlprefiles=
  58820. - for lib in $dlprefiles; do
  58821. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  58822. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58823. - if test -z "$libdir"; then
  58824. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  58825. - exit $EXIT_FAILURE
  58826. - fi
  58827. - newdlprefiles="$newdlprefiles $libdir/$name"
  58828. - done
  58829. - dlprefiles="$newdlprefiles"
  58830. - else
  58831. - newdlfiles=
  58832. - for lib in $dlfiles; do
  58833. - case $lib in
  58834. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  58835. - *) abs=`pwd`"/$lib" ;;
  58836. - esac
  58837. - newdlfiles="$newdlfiles $abs"
  58838. - done
  58839. - dlfiles="$newdlfiles"
  58840. - newdlprefiles=
  58841. - for lib in $dlprefiles; do
  58842. - case $lib in
  58843. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  58844. - *) abs=`pwd`"/$lib" ;;
  58845. - esac
  58846. - newdlprefiles="$newdlprefiles $abs"
  58847. - done
  58848. - dlprefiles="$newdlprefiles"
  58849. - fi
  58850. - $rm $output
  58851. - # place dlname in correct position for cygwin
  58852. - tdlname=$dlname
  58853. - case $host,$output,$installed,$module,$dlname in
  58854. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  58855. - esac
  58856. - $echo > $output "\
  58857. -# $outputname - a libtool library file
  58858. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  58859. -#
  58860. -# Please DO NOT delete this file!
  58861. -# It is necessary for linking the library.
  58862. -
  58863. -# The name that we can dlopen(3).
  58864. -dlname='$tdlname'
  58865. -# Names of this library.
  58866. -library_names='$library_names'
  58867. -
  58868. -# The name of the static archive.
  58869. -old_library='$old_library'
  58870. -
  58871. -# Libraries that this one depends upon.
  58872. -dependency_libs='$dependency_libs'
  58873. -
  58874. -# Version information for $libname.
  58875. -current=$current
  58876. -age=$age
  58877. -revision=$revision
  58878. + exit $lt_exit
  58879. + }
  58880. + done
  58881. + IFS="$save_ifs"
  58882. -# Is this an already installed library?
  58883. -installed=$installed
  58884. + # Restore the uninstalled library and exit
  58885. + if test "$mode" = relink; then
  58886. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  58887. -# Should we warn about portability when linking against -modules?
  58888. -shouldnotlink=$module
  58889. + if test -n "$convenience"; then
  58890. + if test -z "$whole_archive_flag_spec"; then
  58891. + func_show_eval '${RM}r "$gentop"'
  58892. + fi
  58893. + fi
  58894. -# Files to dlopen/dlpreopen
  58895. -dlopen='$dlfiles'
  58896. -dlpreopen='$dlprefiles'
  58897. + exit $EXIT_SUCCESS
  58898. + fi
  58899. -# Directory that this library needs to be installed in:
  58900. -libdir='$install_libdir'"
  58901. - if test "$installed" = no && test "$need_relink" = yes; then
  58902. - $echo >> $output "\
  58903. -relink_command=\"$relink_command\""
  58904. + # Create links to the real library.
  58905. + for linkname in $linknames; do
  58906. + if test "$realname" != "$linkname"; then
  58907. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  58908. fi
  58909. done
  58910. - fi
  58911. -
  58912. - # Do a symbolic link so that the libtool archive can be found in
  58913. - # LD_LIBRARY_PATH before the program is installed.
  58914. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  58915. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  58916. - ;;
  58917. - esac
  58918. - exit $EXIT_SUCCESS
  58919. - ;;
  58920. -
  58921. - # libtool install mode
  58922. - install)
  58923. - modename="$modename: install"
  58924. -
  58925. - # There may be an optional sh(1) argument at the beginning of
  58926. - # install_prog (especially on Windows NT).
  58927. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  58928. - # Allow the use of GNU shtool's install command.
  58929. - $echo "X$nonopt" | grep shtool > /dev/null; then
  58930. - # Aesthetically quote it.
  58931. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  58932. - case $arg in
  58933. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  58934. - arg="\"$arg\""
  58935. - ;;
  58936. - esac
  58937. - install_prog="$arg "
  58938. - arg="$1"
  58939. - shift
  58940. - else
  58941. - install_prog=
  58942. - arg=$nonopt
  58943. - fi
  58944. - # The real first argument should be the name of the installation program.
  58945. - # Aesthetically quote it.
  58946. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  58947. - case $arg in
  58948. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  58949. - arg="\"$arg\""
  58950. + # If -module or -export-dynamic was specified, set the dlname.
  58951. + if test "$module" = yes || test "$export_dynamic" = yes; then
  58952. + # On all known operating systems, these are identical.
  58953. + dlname="$soname"
  58954. + fi
  58955. + fi
  58956. ;;
  58957. - esac
  58958. - install_prog="$install_prog$arg"
  58959. - # We need to accept at least all the BSD install flags.
  58960. - dest=
  58961. - files=
  58962. - opts=
  58963. - prev=
  58964. - install_type=
  58965. - isdir=no
  58966. - stripme=
  58967. - for arg
  58968. - do
  58969. - if test -n "$dest"; then
  58970. - files="$files $dest"
  58971. - dest=$arg
  58972. - continue
  58973. + obj)
  58974. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  58975. + func_warning "\`-dlopen' is ignored for objects"
  58976. fi
  58977. - case $arg in
  58978. - -d) isdir=yes ;;
  58979. - -f)
  58980. - case " $install_prog " in
  58981. - *[\\\ /]cp\ *) ;;
  58982. - *) prev=$arg ;;
  58983. - esac
  58984. - ;;
  58985. - -g | -m | -o) prev=$arg ;;
  58986. - -s)
  58987. - stripme=" -s"
  58988. - continue
  58989. - ;;
  58990. - -*)
  58991. + case " $deplibs" in
  58992. + *\ -l* | *\ -L*)
  58993. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  58994. + esac
  58995. +
  58996. + test -n "$rpath" && \
  58997. + func_warning "\`-rpath' is ignored for objects"
  58998. +
  58999. + test -n "$xrpath" && \
  59000. + func_warning "\`-R' is ignored for objects"
  59001. +
  59002. + test -n "$vinfo" && \
  59003. + func_warning "\`-version-info' is ignored for objects"
  59004. +
  59005. + test -n "$release" && \
  59006. + func_warning "\`-release' is ignored for objects"
  59007. +
  59008. + case $output in
  59009. + *.lo)
  59010. + test -n "$objs$old_deplibs" && \
  59011. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  59012. +
  59013. + libobj=$output
  59014. + func_lo2o "$libobj"
  59015. + obj=$func_lo2o_result
  59016. ;;
  59017. *)
  59018. - # If the previous option needed an argument, then skip it.
  59019. - if test -n "$prev"; then
  59020. - prev=
  59021. - else
  59022. - dest=$arg
  59023. - continue
  59024. - fi
  59025. + libobj=
  59026. + obj="$output"
  59027. ;;
  59028. esac
  59029. - # Aesthetically quote the argument.
  59030. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59031. - case $arg in
  59032. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  59033. - arg="\"$arg\""
  59034. - ;;
  59035. - esac
  59036. - install_prog="$install_prog $arg"
  59037. - done
  59038. + # Delete the old objects.
  59039. + $opt_dry_run || $RM $obj $libobj
  59040. - if test -z "$install_prog"; then
  59041. - $echo "$modename: you must specify an install program" 1>&2
  59042. - $echo "$help" 1>&2
  59043. - exit $EXIT_FAILURE
  59044. - fi
  59045. + # Objects from convenience libraries. This assumes
  59046. + # single-version convenience libraries. Whenever we create
  59047. + # different ones for PIC/non-PIC, this we'll have to duplicate
  59048. + # the extraction.
  59049. + reload_conv_objs=
  59050. + gentop=
  59051. + # reload_cmds runs $LD directly, so let us get rid of
  59052. + # -Wl from whole_archive_flag_spec and hope we can get by with
  59053. + # turning comma into space..
  59054. + wl=
  59055. - if test -n "$prev"; then
  59056. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  59057. - $echo "$help" 1>&2
  59058. - exit $EXIT_FAILURE
  59059. - fi
  59060. + if test -n "$convenience"; then
  59061. + if test -n "$whole_archive_flag_spec"; then
  59062. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  59063. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  59064. + else
  59065. + gentop="$output_objdir/${obj}x"
  59066. + generated="$generated $gentop"
  59067. - if test -z "$files"; then
  59068. - if test -z "$dest"; then
  59069. - $echo "$modename: no file or destination specified" 1>&2
  59070. - else
  59071. - $echo "$modename: you must specify a destination" 1>&2
  59072. + func_extract_archives $gentop $convenience
  59073. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  59074. + fi
  59075. fi
  59076. - $echo "$help" 1>&2
  59077. - exit $EXIT_FAILURE
  59078. - fi
  59079. - # Strip any trailing slash from the destination.
  59080. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  59081. + # Create the old-style object.
  59082. + 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
  59083. - # Check to see that the destination is a directory.
  59084. - test -d "$dest" && isdir=yes
  59085. - if test "$isdir" = yes; then
  59086. - destdir="$dest"
  59087. - destname=
  59088. - else
  59089. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  59090. - test "X$destdir" = "X$dest" && destdir=.
  59091. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  59092. + output="$obj"
  59093. + func_execute_cmds "$reload_cmds" 'exit $?'
  59094. - # Not a directory, so check to see that there is only one file specified.
  59095. - set dummy $files
  59096. - if test "$#" -gt 2; then
  59097. - $echo "$modename: \`$dest' is not a directory" 1>&2
  59098. - $echo "$help" 1>&2
  59099. - exit $EXIT_FAILURE
  59100. + # Exit if we aren't doing a library object file.
  59101. + if test -z "$libobj"; then
  59102. + if test -n "$gentop"; then
  59103. + func_show_eval '${RM}r "$gentop"'
  59104. + fi
  59105. +
  59106. + exit $EXIT_SUCCESS
  59107. fi
  59108. - fi
  59109. - case $destdir in
  59110. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  59111. - *)
  59112. - for file in $files; do
  59113. - case $file in
  59114. - *.lo) ;;
  59115. - *)
  59116. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  59117. - $echo "$help" 1>&2
  59118. - exit $EXIT_FAILURE
  59119. - ;;
  59120. - esac
  59121. - done
  59122. +
  59123. + if test "$build_libtool_libs" != yes; then
  59124. + if test -n "$gentop"; then
  59125. + func_show_eval '${RM}r "$gentop"'
  59126. + fi
  59127. +
  59128. + # Create an invalid libtool object if no PIC, so that we don't
  59129. + # accidentally link it into a program.
  59130. + # $show "echo timestamp > $libobj"
  59131. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  59132. + exit $EXIT_SUCCESS
  59133. + fi
  59134. +
  59135. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  59136. + # Only do commands if we really have different PIC objects.
  59137. + reload_objs="$libobjs $reload_conv_objs"
  59138. + output="$libobj"
  59139. + func_execute_cmds "$reload_cmds" 'exit $?'
  59140. + fi
  59141. +
  59142. + if test -n "$gentop"; then
  59143. + func_show_eval '${RM}r "$gentop"'
  59144. + fi
  59145. +
  59146. + exit $EXIT_SUCCESS
  59147. ;;
  59148. - esac
  59149. - # This variable tells wrapper scripts just to set variables rather
  59150. - # than running their programs.
  59151. - libtool_install_magic="$magic"
  59152. + prog)
  59153. + case $host in
  59154. + *cygwin*) func_stripname '' '.exe' "$output"
  59155. + output=$func_stripname_result.exe;;
  59156. + esac
  59157. + test -n "$vinfo" && \
  59158. + func_warning "\`-version-info' is ignored for programs"
  59159. - staticlibs=
  59160. - future_libdirs=
  59161. - current_libdirs=
  59162. - for file in $files; do
  59163. + test -n "$release" && \
  59164. + func_warning "\`-release' is ignored for programs"
  59165. - # Do each installation.
  59166. - case $file in
  59167. - *.$libext)
  59168. - # Do the static libraries later.
  59169. - staticlibs="$staticlibs $file"
  59170. + test "$preload" = yes \
  59171. + && test "$dlopen_support" = unknown \
  59172. + && test "$dlopen_self" = unknown \
  59173. + && test "$dlopen_self_static" = unknown && \
  59174. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  59175. +
  59176. + case $host in
  59177. + *-*-rhapsody* | *-*-darwin1.[012])
  59178. + # On Rhapsody replace the C library is the System framework
  59179. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59180. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59181. ;;
  59182. + esac
  59183. - *.la)
  59184. - # Check to see that this really is a libtool archive.
  59185. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  59186. - else
  59187. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  59188. - $echo "$help" 1>&2
  59189. - exit $EXIT_FAILURE
  59190. + case $host in
  59191. + *-*-darwin*)
  59192. + # Don't allow lazy linking, it breaks C++ global constructors
  59193. + # But is supposedly fixed on 10.4 or later (yay!).
  59194. + if test "$tagname" = CXX ; then
  59195. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  59196. + 10.[0123])
  59197. + compile_command="$compile_command ${wl}-bind_at_load"
  59198. + finalize_command="$finalize_command ${wl}-bind_at_load"
  59199. + ;;
  59200. + esac
  59201. fi
  59202. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  59203. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59204. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59205. + ;;
  59206. + esac
  59207. - library_names=
  59208. - old_library=
  59209. - relink_command=
  59210. - # If there is no directory component, then add one.
  59211. - case $file in
  59212. - */* | *\\*) . $file ;;
  59213. - *) . ./$file ;;
  59214. - esac
  59215. - # Add the libdir to current_libdirs if it is the destination.
  59216. - if test "X$destdir" = "X$libdir"; then
  59217. - case "$current_libdirs " in
  59218. - *" $libdir "*) ;;
  59219. - *) current_libdirs="$current_libdirs $libdir" ;;
  59220. + # move library search paths that coincide with paths to not yet
  59221. + # installed libraries to the beginning of the library search list
  59222. + new_libs=
  59223. + for path in $notinst_path; do
  59224. + case " $new_libs " in
  59225. + *" -L$path/$objdir "*) ;;
  59226. + *)
  59227. + case " $compile_deplibs " in
  59228. + *" -L$path/$objdir "*)
  59229. + new_libs="$new_libs -L$path/$objdir" ;;
  59230. esac
  59231. - else
  59232. - # Note the libdir as a future libdir.
  59233. - case "$future_libdirs " in
  59234. - *" $libdir "*) ;;
  59235. - *) future_libdirs="$future_libdirs $libdir" ;;
  59236. + ;;
  59237. + esac
  59238. + done
  59239. + for deplib in $compile_deplibs; do
  59240. + case $deplib in
  59241. + -L*)
  59242. + case " $new_libs " in
  59243. + *" $deplib "*) ;;
  59244. + *) new_libs="$new_libs $deplib" ;;
  59245. esac
  59246. - fi
  59247. + ;;
  59248. + *) new_libs="$new_libs $deplib" ;;
  59249. + esac
  59250. + done
  59251. + compile_deplibs="$new_libs"
  59252. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  59253. - test "X$dir" = "X$file/" && dir=
  59254. - dir="$dir$objdir"
  59255. - if test -n "$relink_command"; then
  59256. - # Determine the prefix the user has applied to our future dir.
  59257. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  59258. + compile_command="$compile_command $compile_deplibs"
  59259. + finalize_command="$finalize_command $finalize_deplibs"
  59260. - # Don't allow the user to place us outside of our expected
  59261. - # location b/c this prevents finding dependent libraries that
  59262. - # are installed to the same prefix.
  59263. - # At present, this check doesn't affect windows .dll's that
  59264. - # are installed into $libdir/../bin (currently, that works fine)
  59265. - # but it's something to keep an eye on.
  59266. - if test "$inst_prefix_dir" = "$destdir"; then
  59267. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  59268. - exit $EXIT_FAILURE
  59269. - fi
  59270. + if test -n "$rpath$xrpath"; then
  59271. + # If the user specified any rpath flags, then add them.
  59272. + for libdir in $rpath $xrpath; do
  59273. + # This is the magic to use -rpath.
  59274. + case "$finalize_rpath " in
  59275. + *" $libdir "*) ;;
  59276. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  59277. + esac
  59278. + done
  59279. + fi
  59280. - if test -n "$inst_prefix_dir"; then
  59281. - # Stick the inst_prefix_dir data into the link command.
  59282. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  59283. + # Now hardcode the library paths
  59284. + rpath=
  59285. + hardcode_libdirs=
  59286. + for libdir in $compile_rpath $finalize_rpath; do
  59287. + if test -n "$hardcode_libdir_flag_spec"; then
  59288. + if test -n "$hardcode_libdir_separator"; then
  59289. + if test -z "$hardcode_libdirs"; then
  59290. + hardcode_libdirs="$libdir"
  59291. + else
  59292. + # Just accumulate the unique libdirs.
  59293. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59294. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59295. + ;;
  59296. + *)
  59297. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59298. + ;;
  59299. + esac
  59300. + fi
  59301. else
  59302. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  59303. + eval flag=\"$hardcode_libdir_flag_spec\"
  59304. + rpath="$rpath $flag"
  59305. fi
  59306. + elif test -n "$runpath_var"; then
  59307. + case "$perm_rpath " in
  59308. + *" $libdir "*) ;;
  59309. + *) perm_rpath="$perm_rpath $libdir" ;;
  59310. + esac
  59311. + fi
  59312. + case $host in
  59313. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  59314. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  59315. + case :$dllsearchpath: in
  59316. + *":$libdir:"*) ;;
  59317. + ::) dllsearchpath=$libdir;;
  59318. + *) dllsearchpath="$dllsearchpath:$libdir";;
  59319. + esac
  59320. + case :$dllsearchpath: in
  59321. + *":$testbindir:"*) ;;
  59322. + ::) dllsearchpath=$testbindir;;
  59323. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  59324. + esac
  59325. + ;;
  59326. + esac
  59327. + done
  59328. + # Substitute the hardcoded libdirs into the rpath.
  59329. + if test -n "$hardcode_libdir_separator" &&
  59330. + test -n "$hardcode_libdirs"; then
  59331. + libdir="$hardcode_libdirs"
  59332. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59333. + fi
  59334. + compile_rpath="$rpath"
  59335. - $echo "$modename: warning: relinking \`$file'" 1>&2
  59336. - $show "$relink_command"
  59337. - if $run eval "$relink_command"; then :
  59338. + rpath=
  59339. + hardcode_libdirs=
  59340. + for libdir in $finalize_rpath; do
  59341. + if test -n "$hardcode_libdir_flag_spec"; then
  59342. + if test -n "$hardcode_libdir_separator"; then
  59343. + if test -z "$hardcode_libdirs"; then
  59344. + hardcode_libdirs="$libdir"
  59345. + else
  59346. + # Just accumulate the unique libdirs.
  59347. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59348. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59349. + ;;
  59350. + *)
  59351. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59352. + ;;
  59353. + esac
  59354. + fi
  59355. else
  59356. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  59357. - exit $EXIT_FAILURE
  59358. + eval flag=\"$hardcode_libdir_flag_spec\"
  59359. + rpath="$rpath $flag"
  59360. fi
  59361. + elif test -n "$runpath_var"; then
  59362. + case "$finalize_perm_rpath " in
  59363. + *" $libdir "*) ;;
  59364. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  59365. + esac
  59366. fi
  59367. + done
  59368. + # Substitute the hardcoded libdirs into the rpath.
  59369. + if test -n "$hardcode_libdir_separator" &&
  59370. + test -n "$hardcode_libdirs"; then
  59371. + libdir="$hardcode_libdirs"
  59372. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59373. + fi
  59374. + finalize_rpath="$rpath"
  59375. - # See the names of the shared library.
  59376. - set dummy $library_names
  59377. - if test -n "$2"; then
  59378. - realname="$2"
  59379. - shift
  59380. - shift
  59381. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  59382. + # Transform all the library objects into standard objects.
  59383. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59384. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59385. + fi
  59386. - srcname="$realname"
  59387. - test -n "$relink_command" && srcname="$realname"T
  59388. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  59389. - # Install the shared library and build the symlinks.
  59390. - $show "$install_prog $dir/$srcname $destdir/$realname"
  59391. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  59392. - if test -n "$stripme" && test -n "$striplib"; then
  59393. - $show "$striplib $destdir/$realname"
  59394. - $run eval "$striplib $destdir/$realname" || exit $?
  59395. - fi
  59396. + # template prelinking step
  59397. + if test -n "$prelink_cmds"; then
  59398. + func_execute_cmds "$prelink_cmds" 'exit $?'
  59399. + fi
  59400. - if test "$#" -gt 0; then
  59401. - # Delete the old symlinks, and create new ones.
  59402. - # Try `ln -sf' first, because the `ln' binary might depend on
  59403. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  59404. - # so we also need to try rm && ln -s.
  59405. - for linkname
  59406. - do
  59407. - if test "$linkname" != "$realname"; then
  59408. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  59409. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  59410. - fi
  59411. - done
  59412. - fi
  59413. + wrappers_required=yes
  59414. + case $host in
  59415. + *cygwin* | *mingw* )
  59416. + if test "$build_libtool_libs" != yes; then
  59417. + wrappers_required=no
  59418. + fi
  59419. + ;;
  59420. + *cegcc)
  59421. + # Disable wrappers for cegcc, we are cross compiling anyway.
  59422. + wrappers_required=no
  59423. + ;;
  59424. + *)
  59425. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  59426. + wrappers_required=no
  59427. + fi
  59428. + ;;
  59429. + esac
  59430. + if test "$wrappers_required" = no; then
  59431. + # Replace the output file specification.
  59432. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59433. + link_command="$compile_command$compile_rpath"
  59434. - # Do each command in the postinstall commands.
  59435. - lib="$destdir/$realname"
  59436. - cmds=$postinstall_cmds
  59437. - save_ifs="$IFS"; IFS='~'
  59438. - for cmd in $cmds; do
  59439. - IFS="$save_ifs"
  59440. - eval cmd=\"$cmd\"
  59441. - $show "$cmd"
  59442. - $run eval "$cmd" || {
  59443. - lt_exit=$?
  59444. -
  59445. - # Restore the uninstalled library and exit
  59446. - if test "$mode" = relink; then
  59447. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  59448. - fi
  59449. + # We have no uninstalled library dependencies, so finalize right now.
  59450. + exit_status=0
  59451. + func_show_eval "$link_command" 'exit_status=$?'
  59452. - exit $lt_exit
  59453. - }
  59454. - done
  59455. - IFS="$save_ifs"
  59456. + # Delete the generated files.
  59457. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  59458. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  59459. fi
  59460. - # Install the pseudo-library for information purposes.
  59461. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59462. - instname="$dir/$name"i
  59463. - $show "$install_prog $instname $destdir/$name"
  59464. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  59465. -
  59466. - # Maybe install the static library, too.
  59467. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  59468. - ;;
  59469. + exit $exit_status
  59470. + fi
  59471. - *.lo)
  59472. - # Install (i.e. copy) a libtool object.
  59473. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  59474. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  59475. + fi
  59476. + if test -n "$finalize_shlibpath"; then
  59477. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  59478. + fi
  59479. - # Figure out destination file name, if it wasn't already specified.
  59480. - if test -n "$destname"; then
  59481. - destfile="$destdir/$destname"
  59482. - else
  59483. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59484. - destfile="$destdir/$destfile"
  59485. + compile_var=
  59486. + finalize_var=
  59487. + if test -n "$runpath_var"; then
  59488. + if test -n "$perm_rpath"; then
  59489. + # We should set the runpath_var.
  59490. + rpath=
  59491. + for dir in $perm_rpath; do
  59492. + rpath="$rpath$dir:"
  59493. + done
  59494. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59495. fi
  59496. -
  59497. - # Deduce the name of the destination old-style object file.
  59498. - case $destfile in
  59499. - *.lo)
  59500. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  59501. - ;;
  59502. - *.$objext)
  59503. - staticdest="$destfile"
  59504. - destfile=
  59505. - ;;
  59506. - *)
  59507. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  59508. - $echo "$help" 1>&2
  59509. - exit $EXIT_FAILURE
  59510. - ;;
  59511. - esac
  59512. -
  59513. - # Install the libtool object if requested.
  59514. - if test -n "$destfile"; then
  59515. - $show "$install_prog $file $destfile"
  59516. - $run eval "$install_prog $file $destfile" || exit $?
  59517. + if test -n "$finalize_perm_rpath"; then
  59518. + # We should set the runpath_var.
  59519. + rpath=
  59520. + for dir in $finalize_perm_rpath; do
  59521. + rpath="$rpath$dir:"
  59522. + done
  59523. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59524. fi
  59525. + fi
  59526. - # Install the old object if enabled.
  59527. - if test "$build_old_libs" = yes; then
  59528. - # Deduce the name of the old-style object file.
  59529. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  59530. -
  59531. - $show "$install_prog $staticobj $staticdest"
  59532. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  59533. - fi
  59534. + if test "$no_install" = yes; then
  59535. + # We don't need to create a wrapper script.
  59536. + link_command="$compile_var$compile_command$compile_rpath"
  59537. + # Replace the output file specification.
  59538. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59539. + # Delete the old output file.
  59540. + $opt_dry_run || $RM $output
  59541. + # Link the executable and exit
  59542. + func_show_eval "$link_command" 'exit $?'
  59543. exit $EXIT_SUCCESS
  59544. - ;;
  59545. + fi
  59546. - *)
  59547. - # Figure out destination file name, if it wasn't already specified.
  59548. - if test -n "$destname"; then
  59549. - destfile="$destdir/$destname"
  59550. + if test "$hardcode_action" = relink; then
  59551. + # Fast installation is not supported
  59552. + link_command="$compile_var$compile_command$compile_rpath"
  59553. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59554. +
  59555. + func_warning "this platform does not like uninstalled shared libraries"
  59556. + func_warning "\`$output' will be relinked during installation"
  59557. + else
  59558. + if test "$fast_install" != no; then
  59559. + link_command="$finalize_var$compile_command$finalize_rpath"
  59560. + if test "$fast_install" = yes; then
  59561. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  59562. + else
  59563. + # fast_install is set to needless
  59564. + relink_command=
  59565. + fi
  59566. else
  59567. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59568. - destfile="$destdir/$destfile"
  59569. + link_command="$compile_var$compile_command$compile_rpath"
  59570. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59571. fi
  59572. + fi
  59573. - # If the file is missing, and there is a .exe on the end, strip it
  59574. - # because it is most likely a libtool script we actually want to
  59575. - # install
  59576. - stripped_ext=""
  59577. - case $file in
  59578. - *.exe)
  59579. - if test ! -f "$file"; then
  59580. - file=`$echo $file|${SED} 's,.exe$,,'`
  59581. - stripped_ext=".exe"
  59582. - fi
  59583. - ;;
  59584. - esac
  59585. -
  59586. - # Do a test to see if this is really a libtool program.
  59587. - case $host in
  59588. - *cygwin*|*mingw*)
  59589. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  59590. - ;;
  59591. - *)
  59592. - wrapper=$file
  59593. - ;;
  59594. - esac
  59595. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  59596. - notinst_deplibs=
  59597. - relink_command=
  59598. -
  59599. - # Note that it is not necessary on cygwin/mingw to append a dot to
  59600. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  59601. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  59602. - # `FILE.' does not work on cygwin managed mounts.
  59603. - #
  59604. - # If there is no directory component, then add one.
  59605. - case $wrapper in
  59606. - */* | *\\*) . ${wrapper} ;;
  59607. - *) . ./${wrapper} ;;
  59608. - esac
  59609. -
  59610. - # Check the variables that should have been set.
  59611. - if test -z "$notinst_deplibs"; then
  59612. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  59613. - exit $EXIT_FAILURE
  59614. - fi
  59615. + # Replace the output file specification.
  59616. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  59617. - finalize=yes
  59618. - for lib in $notinst_deplibs; do
  59619. - # Check to see that each library is installed.
  59620. - libdir=
  59621. - if test -f "$lib"; then
  59622. - # If there is no directory component, then add one.
  59623. - case $lib in
  59624. - */* | *\\*) . $lib ;;
  59625. - *) . ./$lib ;;
  59626. - esac
  59627. - fi
  59628. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  59629. - if test -n "$libdir" && test ! -f "$libfile"; then
  59630. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  59631. - finalize=no
  59632. - fi
  59633. - done
  59634. + # Delete the old output files.
  59635. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  59636. - relink_command=
  59637. - # Note that it is not necessary on cygwin/mingw to append a dot to
  59638. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  59639. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  59640. - # `FILE.' does not work on cygwin managed mounts.
  59641. - #
  59642. - # If there is no directory component, then add one.
  59643. - case $wrapper in
  59644. - */* | *\\*) . ${wrapper} ;;
  59645. - *) . ./${wrapper} ;;
  59646. - esac
  59647. + func_show_eval "$link_command" 'exit $?'
  59648. - outputname=
  59649. - if test "$fast_install" = no && test -n "$relink_command"; then
  59650. - if test "$finalize" = yes && test -z "$run"; then
  59651. - tmpdir=`func_mktempdir`
  59652. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  59653. - outputname="$tmpdir/$file"
  59654. - # Replace the output file specification.
  59655. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  59656. + # Now create the wrapper script.
  59657. + func_verbose "creating $output"
  59658. - $show "$relink_command"
  59659. - if $run eval "$relink_command"; then :
  59660. - else
  59661. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  59662. - ${rm}r "$tmpdir"
  59663. - continue
  59664. - fi
  59665. - file="$outputname"
  59666. - else
  59667. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  59668. - fi
  59669. + # Quote the relink command for shipping.
  59670. + if test -n "$relink_command"; then
  59671. + # Preserve any variables that may affect compiler behavior
  59672. + for var in $variables_saved_for_relink; do
  59673. + if eval test -z \"\${$var+set}\"; then
  59674. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  59675. + elif eval var_value=\$$var; test -z "$var_value"; then
  59676. + relink_command="$var=; export $var; $relink_command"
  59677. else
  59678. - # Install the binary that we compiled earlier.
  59679. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  59680. + func_quote_for_eval "$var_value"
  59681. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  59682. fi
  59683. - fi
  59684. + done
  59685. + relink_command="(cd `pwd`; $relink_command)"
  59686. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  59687. + fi
  59688. - # remove .exe since cygwin /usr/bin/install will append another
  59689. - # one anyway
  59690. - case $install_prog,$host in
  59691. - */usr/bin/install*,*cygwin*)
  59692. - case $file:$destfile in
  59693. - *.exe:*.exe)
  59694. - # this is ok
  59695. - ;;
  59696. - *.exe:*)
  59697. - destfile=$destfile.exe
  59698. - ;;
  59699. - *:*.exe)
  59700. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  59701. - ;;
  59702. - esac
  59703. - ;;
  59704. + # Quote $ECHO for shipping.
  59705. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  59706. + case $progpath in
  59707. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  59708. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  59709. + esac
  59710. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  59711. + else
  59712. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  59713. + fi
  59714. +
  59715. + # Only actually do things if not in dry run mode.
  59716. + $opt_dry_run || {
  59717. + # win32 will think the script is a binary if it has
  59718. + # a .exe suffix, so we strip it off here.
  59719. + case $output in
  59720. + *.exe) func_stripname '' '.exe' "$output"
  59721. + output=$func_stripname_result ;;
  59722. esac
  59723. - $show "$install_prog$stripme $file $destfile"
  59724. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  59725. - test -n "$outputname" && ${rm}r "$tmpdir"
  59726. - ;;
  59727. - esac
  59728. - done
  59729. + # test for cygwin because mv fails w/o .exe extensions
  59730. + case $host in
  59731. + *cygwin*)
  59732. + exeext=.exe
  59733. + func_stripname '' '.exe' "$outputname"
  59734. + outputname=$func_stripname_result ;;
  59735. + *) exeext= ;;
  59736. + esac
  59737. + case $host in
  59738. + *cygwin* | *mingw* )
  59739. + func_dirname_and_basename "$output" "" "."
  59740. + output_name=$func_basename_result
  59741. + output_path=$func_dirname_result
  59742. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  59743. + cwrapper="$output_path/$output_name.exe"
  59744. + $RM $cwrappersource $cwrapper
  59745. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  59746. +
  59747. + func_emit_cwrapperexe_src > $cwrappersource
  59748. +
  59749. + # The wrapper executable is built using the $host compiler,
  59750. + # because it contains $host paths and files. If cross-
  59751. + # compiling, it, like the target executable, must be
  59752. + # executed on the $host or under an emulation environment.
  59753. + $opt_dry_run || {
  59754. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  59755. + $STRIP $cwrapper
  59756. + }
  59757. - for file in $staticlibs; do
  59758. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59759. + # Now, create the wrapper script for func_source use:
  59760. + func_ltwrapper_scriptname $cwrapper
  59761. + $RM $func_ltwrapper_scriptname_result
  59762. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  59763. + $opt_dry_run || {
  59764. + # note: this script will not be executed, so do not chmod.
  59765. + if test "x$build" = "x$host" ; then
  59766. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  59767. + else
  59768. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  59769. + fi
  59770. + }
  59771. + ;;
  59772. + * )
  59773. + $RM $output
  59774. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  59775. - # Set up the ranlib parameters.
  59776. - oldlib="$destdir/$name"
  59777. + func_emit_wrapper no > $output
  59778. + chmod +x $output
  59779. + ;;
  59780. + esac
  59781. + }
  59782. + exit $EXIT_SUCCESS
  59783. + ;;
  59784. + esac
  59785. - $show "$install_prog $file $oldlib"
  59786. - $run eval "$install_prog \$file \$oldlib" || exit $?
  59787. + # See if we need to build an old-fashioned archive.
  59788. + for oldlib in $oldlibs; do
  59789. - if test -n "$stripme" && test -n "$old_striplib"; then
  59790. - $show "$old_striplib $oldlib"
  59791. - $run eval "$old_striplib $oldlib" || exit $?
  59792. + if test "$build_libtool_libs" = convenience; then
  59793. + oldobjs="$libobjs_save $symfileobj"
  59794. + addlibs="$convenience"
  59795. + build_libtool_libs=no
  59796. + else
  59797. + if test "$build_libtool_libs" = module; then
  59798. + oldobjs="$libobjs_save"
  59799. + build_libtool_libs=no
  59800. + else
  59801. + oldobjs="$old_deplibs $non_pic_objects"
  59802. + if test "$preload" = yes && test -f "$symfileobj"; then
  59803. + oldobjs="$oldobjs $symfileobj"
  59804. + fi
  59805. + fi
  59806. + addlibs="$old_convenience"
  59807. fi
  59808. - # Do each command in the postinstall commands.
  59809. - cmds=$old_postinstall_cmds
  59810. - save_ifs="$IFS"; IFS='~'
  59811. - for cmd in $cmds; do
  59812. - IFS="$save_ifs"
  59813. - eval cmd=\"$cmd\"
  59814. - $show "$cmd"
  59815. - $run eval "$cmd" || exit $?
  59816. - done
  59817. - IFS="$save_ifs"
  59818. - done
  59819. + if test -n "$addlibs"; then
  59820. + gentop="$output_objdir/${outputname}x"
  59821. + generated="$generated $gentop"
  59822. - if test -n "$future_libdirs"; then
  59823. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  59824. - fi
  59825. + func_extract_archives $gentop $addlibs
  59826. + oldobjs="$oldobjs $func_extract_archives_result"
  59827. + fi
  59828. - if test -n "$current_libdirs"; then
  59829. - # Maybe just do a dry run.
  59830. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  59831. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  59832. - else
  59833. - exit $EXIT_SUCCESS
  59834. - fi
  59835. - ;;
  59836. + # Do each command in the archive commands.
  59837. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  59838. + cmds=$old_archive_from_new_cmds
  59839. + else
  59840. - # libtool finish mode
  59841. - finish)
  59842. - modename="$modename: finish"
  59843. - libdirs="$nonopt"
  59844. - admincmds=
  59845. + # Add any objects from preloaded convenience libraries
  59846. + if test -n "$dlprefiles"; then
  59847. + gentop="$output_objdir/${outputname}x"
  59848. + generated="$generated $gentop"
  59849. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  59850. - for dir
  59851. - do
  59852. - libdirs="$libdirs $dir"
  59853. - done
  59854. + func_extract_archives $gentop $dlprefiles
  59855. + oldobjs="$oldobjs $func_extract_archives_result"
  59856. + fi
  59857. - for libdir in $libdirs; do
  59858. - if test -n "$finish_cmds"; then
  59859. - # Do each command in the finish commands.
  59860. - cmds=$finish_cmds
  59861. - save_ifs="$IFS"; IFS='~'
  59862. - for cmd in $cmds; do
  59863. - IFS="$save_ifs"
  59864. - eval cmd=\"$cmd\"
  59865. - $show "$cmd"
  59866. - $run eval "$cmd" || admincmds="$admincmds
  59867. - $cmd"
  59868. + # POSIX demands no paths to be encoded in archives. We have
  59869. + # to avoid creating archives with duplicate basenames if we
  59870. + # might have to extract them afterwards, e.g., when creating a
  59871. + # static archive out of a convenience library, or when linking
  59872. + # the entirety of a libtool archive into another (currently
  59873. + # not supported by libtool).
  59874. + if (for obj in $oldobjs
  59875. + do
  59876. + func_basename "$obj"
  59877. + $ECHO "$func_basename_result"
  59878. + done | sort | sort -uc >/dev/null 2>&1); then
  59879. + :
  59880. + else
  59881. + $ECHO "copying selected object files to avoid basename conflicts..."
  59882. + gentop="$output_objdir/${outputname}x"
  59883. + generated="$generated $gentop"
  59884. + func_mkdir_p "$gentop"
  59885. + save_oldobjs=$oldobjs
  59886. + oldobjs=
  59887. + counter=1
  59888. + for obj in $save_oldobjs
  59889. + do
  59890. + func_basename "$obj"
  59891. + objbase="$func_basename_result"
  59892. + case " $oldobjs " in
  59893. + " ") oldobjs=$obj ;;
  59894. + *[\ /]"$objbase "*)
  59895. + while :; do
  59896. + # Make sure we don't pick an alternate name that also
  59897. + # overlaps.
  59898. + newobj=lt$counter-$objbase
  59899. + func_arith $counter + 1
  59900. + counter=$func_arith_result
  59901. + case " $oldobjs " in
  59902. + *[\ /]"$newobj "*) ;;
  59903. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  59904. + esac
  59905. + done
  59906. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  59907. + oldobjs="$oldobjs $gentop/$newobj"
  59908. + ;;
  59909. + *) oldobjs="$oldobjs $obj" ;;
  59910. + esac
  59911. done
  59912. - IFS="$save_ifs"
  59913. - fi
  59914. - if test -n "$finish_eval"; then
  59915. - # Do the single finish_eval.
  59916. - eval cmds=\"$finish_eval\"
  59917. - $run eval "$cmds" || admincmds="$admincmds
  59918. - $cmds"
  59919. fi
  59920. - done
  59921. - fi
  59922. -
  59923. - # Exit here if they wanted silent mode.
  59924. - test "$show" = : && exit $EXIT_SUCCESS
  59925. + eval cmds=\"$old_archive_cmds\"
  59926. - $echo "X----------------------------------------------------------------------" | $Xsed
  59927. - $echo "Libraries have been installed in:"
  59928. - for libdir in $libdirs; do
  59929. - $echo " $libdir"
  59930. + func_len " $cmds"
  59931. + len=$func_len_result
  59932. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59933. + cmds=$old_archive_cmds
  59934. + else
  59935. + # the command line is too long to link in one step, link in parts
  59936. + func_verbose "using piecewise archive linking..."
  59937. + save_RANLIB=$RANLIB
  59938. + RANLIB=:
  59939. + objlist=
  59940. + concat_cmds=
  59941. + save_oldobjs=$oldobjs
  59942. + oldobjs=
  59943. + # Is there a better way of finding the last object in the list?
  59944. + for obj in $save_oldobjs
  59945. + do
  59946. + last_oldobj=$obj
  59947. + done
  59948. + eval test_cmds=\"$old_archive_cmds\"
  59949. + func_len " $test_cmds"
  59950. + len0=$func_len_result
  59951. + len=$len0
  59952. + for obj in $save_oldobjs
  59953. + do
  59954. + func_len " $obj"
  59955. + func_arith $len + $func_len_result
  59956. + len=$func_arith_result
  59957. + func_append objlist " $obj"
  59958. + if test "$len" -lt "$max_cmd_len"; then
  59959. + :
  59960. + else
  59961. + # the above command should be used before it gets too long
  59962. + oldobjs=$objlist
  59963. + if test "$obj" = "$last_oldobj" ; then
  59964. + RANLIB=$save_RANLIB
  59965. + fi
  59966. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59967. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  59968. + objlist=
  59969. + len=$len0
  59970. + fi
  59971. + done
  59972. + RANLIB=$save_RANLIB
  59973. + oldobjs=$objlist
  59974. + if test "X$oldobjs" = "X" ; then
  59975. + eval cmds=\"\$concat_cmds\"
  59976. + else
  59977. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  59978. + fi
  59979. + fi
  59980. + fi
  59981. + func_execute_cmds "$cmds" 'exit $?'
  59982. done
  59983. - $echo
  59984. - $echo "If you ever happen to want to link against installed libraries"
  59985. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  59986. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  59987. - $echo "flag during linking and do at least one of the following:"
  59988. - if test -n "$shlibpath_var"; then
  59989. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  59990. - $echo " during execution"
  59991. - fi
  59992. - if test -n "$runpath_var"; then
  59993. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  59994. - $echo " during linking"
  59995. - fi
  59996. - if test -n "$hardcode_libdir_flag_spec"; then
  59997. - libdir=LIBDIR
  59998. - eval flag=\"$hardcode_libdir_flag_spec\"
  59999. -
  60000. - $echo " - use the \`$flag' linker flag"
  60001. - fi
  60002. - if test -n "$admincmds"; then
  60003. - $echo " - have your system administrator run these commands:$admincmds"
  60004. - fi
  60005. - if test -f /etc/ld.so.conf; then
  60006. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  60007. - fi
  60008. - $echo
  60009. - $echo "See any operating system documentation about shared libraries for"
  60010. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  60011. - $echo "X----------------------------------------------------------------------" | $Xsed
  60012. - exit $EXIT_SUCCESS
  60013. - ;;
  60014. - # libtool execute mode
  60015. - execute)
  60016. - modename="$modename: execute"
  60017. + test -n "$generated" && \
  60018. + func_show_eval "${RM}r$generated"
  60019. - # The first argument is the command name.
  60020. - cmd="$nonopt"
  60021. - if test -z "$cmd"; then
  60022. - $echo "$modename: you must specify a COMMAND" 1>&2
  60023. - $echo "$help"
  60024. - exit $EXIT_FAILURE
  60025. - fi
  60026. -
  60027. - # Handle -dlopen flags immediately.
  60028. - for file in $execute_dlfiles; do
  60029. - if test ! -f "$file"; then
  60030. - $echo "$modename: \`$file' is not a file" 1>&2
  60031. - $echo "$help" 1>&2
  60032. - exit $EXIT_FAILURE
  60033. - fi
  60034. + # Now create the libtool archive.
  60035. + case $output in
  60036. + *.la)
  60037. + old_library=
  60038. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  60039. + func_verbose "creating $output"
  60040. - dir=
  60041. - case $file in
  60042. - *.la)
  60043. - # Check to see that this really is a libtool archive.
  60044. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  60045. + # Preserve any variables that may affect compiler behavior
  60046. + for var in $variables_saved_for_relink; do
  60047. + if eval test -z \"\${$var+set}\"; then
  60048. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60049. + elif eval var_value=\$$var; test -z "$var_value"; then
  60050. + relink_command="$var=; export $var; $relink_command"
  60051. else
  60052. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  60053. - $echo "$help" 1>&2
  60054. - exit $EXIT_FAILURE
  60055. + func_quote_for_eval "$var_value"
  60056. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60057. fi
  60058. + done
  60059. + # Quote the link command for shipping.
  60060. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  60061. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60062. + if test "$hardcode_automatic" = yes ; then
  60063. + relink_command=
  60064. + fi
  60065. - # Read the libtool library.
  60066. - dlname=
  60067. - library_names=
  60068. + # Only create the output if not a dry run.
  60069. + $opt_dry_run || {
  60070. + for installed in no yes; do
  60071. + if test "$installed" = yes; then
  60072. + if test -z "$install_libdir"; then
  60073. + break
  60074. + fi
  60075. + output="$output_objdir/$outputname"i
  60076. + # Replace all uninstalled libtool libraries with the installed ones
  60077. + newdependency_libs=
  60078. + for deplib in $dependency_libs; do
  60079. + case $deplib in
  60080. + *.la)
  60081. + func_basename "$deplib"
  60082. + name="$func_basename_result"
  60083. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  60084. + test -z "$libdir" && \
  60085. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  60086. + newdependency_libs="$newdependency_libs $libdir/$name"
  60087. + ;;
  60088. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  60089. + esac
  60090. + done
  60091. + dependency_libs="$newdependency_libs"
  60092. + newdlfiles=
  60093. +
  60094. + for lib in $dlfiles; do
  60095. + case $lib in
  60096. + *.la)
  60097. + func_basename "$lib"
  60098. + name="$func_basename_result"
  60099. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60100. + test -z "$libdir" && \
  60101. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60102. + newdlfiles="$newdlfiles $libdir/$name"
  60103. + ;;
  60104. + *) newdlfiles="$newdlfiles $lib" ;;
  60105. + esac
  60106. + done
  60107. + dlfiles="$newdlfiles"
  60108. + newdlprefiles=
  60109. + for lib in $dlprefiles; do
  60110. + case $lib in
  60111. + *.la)
  60112. + # Only pass preopened files to the pseudo-archive (for
  60113. + # eventual linking with the app. that links it) if we
  60114. + # didn't already link the preopened objects directly into
  60115. + # the library:
  60116. + func_basename "$lib"
  60117. + name="$func_basename_result"
  60118. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60119. + test -z "$libdir" && \
  60120. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60121. + newdlprefiles="$newdlprefiles $libdir/$name"
  60122. + ;;
  60123. + esac
  60124. + done
  60125. + dlprefiles="$newdlprefiles"
  60126. + else
  60127. + newdlfiles=
  60128. + for lib in $dlfiles; do
  60129. + case $lib in
  60130. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60131. + *) abs=`pwd`"/$lib" ;;
  60132. + esac
  60133. + newdlfiles="$newdlfiles $abs"
  60134. + done
  60135. + dlfiles="$newdlfiles"
  60136. + newdlprefiles=
  60137. + for lib in $dlprefiles; do
  60138. + case $lib in
  60139. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60140. + *) abs=`pwd`"/$lib" ;;
  60141. + esac
  60142. + newdlprefiles="$newdlprefiles $abs"
  60143. + done
  60144. + dlprefiles="$newdlprefiles"
  60145. + fi
  60146. + $RM $output
  60147. + # place dlname in correct position for cygwin
  60148. + tdlname=$dlname
  60149. + case $host,$output,$installed,$module,$dlname in
  60150. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  60151. + esac
  60152. + $ECHO > $output "\
  60153. +# $outputname - a libtool library file
  60154. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  60155. +#
  60156. +# Please DO NOT delete this file!
  60157. +# It is necessary for linking the library.
  60158. - # If there is no directory component, then add one.
  60159. - case $file in
  60160. - */* | *\\*) . $file ;;
  60161. - *) . ./$file ;;
  60162. - esac
  60163. +# The name that we can dlopen(3).
  60164. +dlname='$tdlname'
  60165. - # Skip this library if it cannot be dlopened.
  60166. - if test -z "$dlname"; then
  60167. - # Warn if it was a shared library.
  60168. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  60169. - continue
  60170. - fi
  60171. +# Names of this library.
  60172. +library_names='$library_names'
  60173. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60174. - test "X$dir" = "X$file" && dir=.
  60175. +# The name of the static archive.
  60176. +old_library='$old_library'
  60177. - if test -f "$dir/$objdir/$dlname"; then
  60178. - dir="$dir/$objdir"
  60179. - else
  60180. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  60181. - exit $EXIT_FAILURE
  60182. - fi
  60183. - ;;
  60184. +# Linker flags that can not go in dependency_libs.
  60185. +inherited_linker_flags='$new_inherited_linker_flags'
  60186. - *.lo)
  60187. - # Just add the directory containing the .lo file.
  60188. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60189. - test "X$dir" = "X$file" && dir=.
  60190. - ;;
  60191. +# Libraries that this one depends upon.
  60192. +dependency_libs='$dependency_libs'
  60193. - *)
  60194. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  60195. - continue
  60196. - ;;
  60197. - esac
  60198. +# Names of additional weak libraries provided by this library
  60199. +weak_library_names='$weak_libs'
  60200. - # Get the absolute pathname.
  60201. - absdir=`cd "$dir" && pwd`
  60202. - test -n "$absdir" && dir="$absdir"
  60203. +# Version information for $libname.
  60204. +current=$current
  60205. +age=$age
  60206. +revision=$revision
  60207. - # Now add the directory to shlibpath_var.
  60208. - if eval "test -z \"\$$shlibpath_var\""; then
  60209. - eval "$shlibpath_var=\"\$dir\""
  60210. - else
  60211. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  60212. - fi
  60213. - done
  60214. +# Is this an already installed library?
  60215. +installed=$installed
  60216. - # This variable tells wrapper scripts just to set shlibpath_var
  60217. - # rather than running their programs.
  60218. - libtool_execute_magic="$magic"
  60219. +# Should we warn about portability when linking against -modules?
  60220. +shouldnotlink=$module
  60221. - # Check if any of the arguments is a wrapper script.
  60222. - args=
  60223. - for file
  60224. - do
  60225. - case $file in
  60226. - -*) ;;
  60227. - *)
  60228. - # Do a test to see if this is really a libtool program.
  60229. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60230. - # If there is no directory component, then add one.
  60231. - case $file in
  60232. - */* | *\\*) . $file ;;
  60233. - *) . ./$file ;;
  60234. - esac
  60235. +# Files to dlopen/dlpreopen
  60236. +dlopen='$dlfiles'
  60237. +dlpreopen='$dlprefiles'
  60238. - # Transform arg to wrapped name.
  60239. - file="$progdir/$program"
  60240. - fi
  60241. - ;;
  60242. - esac
  60243. - # Quote arguments (to preserve shell metacharacters).
  60244. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  60245. - args="$args \"$file\""
  60246. - done
  60247. +# Directory that this library needs to be installed in:
  60248. +libdir='$install_libdir'"
  60249. + if test "$installed" = no && test "$need_relink" = yes; then
  60250. + $ECHO >> $output "\
  60251. +relink_command=\"$relink_command\""
  60252. + fi
  60253. + done
  60254. + }
  60255. - if test -z "$run"; then
  60256. - if test -n "$shlibpath_var"; then
  60257. - # Export the shlibpath_var.
  60258. - eval "export $shlibpath_var"
  60259. - fi
  60260. + # Do a symbolic link so that the libtool archive can be found in
  60261. + # LD_LIBRARY_PATH before the program is installed.
  60262. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  60263. + ;;
  60264. + esac
  60265. + exit $EXIT_SUCCESS
  60266. +}
  60267. - # Restore saved environment variables
  60268. - if test "${save_LC_ALL+set}" = set; then
  60269. - LC_ALL="$save_LC_ALL"; export LC_ALL
  60270. - fi
  60271. - if test "${save_LANG+set}" = set; then
  60272. - LANG="$save_LANG"; export LANG
  60273. - fi
  60274. +{ test "$mode" = link || test "$mode" = relink; } &&
  60275. + func_mode_link ${1+"$@"}
  60276. - # Now prepare to actually exec the command.
  60277. - exec_cmd="\$cmd$args"
  60278. - else
  60279. - # Display what would be done.
  60280. - if test -n "$shlibpath_var"; then
  60281. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  60282. - $echo "export $shlibpath_var"
  60283. - fi
  60284. - $echo "$cmd$args"
  60285. - exit $EXIT_SUCCESS
  60286. - fi
  60287. - ;;
  60288. - # libtool clean and uninstall mode
  60289. - clean | uninstall)
  60290. - modename="$modename: $mode"
  60291. - rm="$nonopt"
  60292. +# func_mode_uninstall arg...
  60293. +func_mode_uninstall ()
  60294. +{
  60295. + $opt_debug
  60296. + RM="$nonopt"
  60297. files=
  60298. rmforce=
  60299. exit_status=0
  60300. @@ -6456,30 +8209,28 @@
  60301. for arg
  60302. do
  60303. case $arg in
  60304. - -f) rm="$rm $arg"; rmforce=yes ;;
  60305. - -*) rm="$rm $arg" ;;
  60306. + -f) RM="$RM $arg"; rmforce=yes ;;
  60307. + -*) RM="$RM $arg" ;;
  60308. *) files="$files $arg" ;;
  60309. esac
  60310. done
  60311. - if test -z "$rm"; then
  60312. - $echo "$modename: you must specify an RM program" 1>&2
  60313. - $echo "$help" 1>&2
  60314. - exit $EXIT_FAILURE
  60315. - fi
  60316. + test -z "$RM" && \
  60317. + func_fatal_help "you must specify an RM program"
  60318. rmdirs=
  60319. origobjdir="$objdir"
  60320. for file in $files; do
  60321. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60322. - if test "X$dir" = "X$file"; then
  60323. - dir=.
  60324. + func_dirname "$file" "" "."
  60325. + dir="$func_dirname_result"
  60326. + if test "X$dir" = X.; then
  60327. objdir="$origobjdir"
  60328. else
  60329. objdir="$dir/$origobjdir"
  60330. fi
  60331. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60332. + func_basename "$file"
  60333. + name="$func_basename_result"
  60334. test "$mode" = uninstall && objdir="$dir"
  60335. # Remember objdir for removal later, being careful to avoid duplicates
  60336. @@ -6491,9 +8242,9 @@
  60337. fi
  60338. # Don't error if the file doesn't exist and rm -f was used.
  60339. - if (test -L "$file") >/dev/null 2>&1 \
  60340. - || (test -h "$file") >/dev/null 2>&1 \
  60341. - || test -f "$file"; then
  60342. + if { test -L "$file"; } >/dev/null 2>&1 ||
  60343. + { test -h "$file"; } >/dev/null 2>&1 ||
  60344. + test -f "$file"; then
  60345. :
  60346. elif test -d "$file"; then
  60347. exit_status=1
  60348. @@ -6507,8 +8258,8 @@
  60349. case $name in
  60350. *.la)
  60351. # Possibly a libtool archive, so verify it.
  60352. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60353. - . $dir/$name
  60354. + if func_lalib_p "$file"; then
  60355. + func_source $dir/$name
  60356. # Delete the libtool libraries and symlinks.
  60357. for n in $library_names; do
  60358. @@ -6523,39 +8274,17 @@
  60359. *" $dlname "*) ;;
  60360. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  60361. esac
  60362. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60363. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60364. ;;
  60365. uninstall)
  60366. if test -n "$library_names"; then
  60367. # Do each command in the postuninstall commands.
  60368. - cmds=$postuninstall_cmds
  60369. - save_ifs="$IFS"; IFS='~'
  60370. - for cmd in $cmds; do
  60371. - IFS="$save_ifs"
  60372. - eval cmd=\"$cmd\"
  60373. - $show "$cmd"
  60374. - $run eval "$cmd"
  60375. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60376. - exit_status=1
  60377. - fi
  60378. - done
  60379. - IFS="$save_ifs"
  60380. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60381. fi
  60382. if test -n "$old_library"; then
  60383. # Do each command in the old_postuninstall commands.
  60384. - cmds=$old_postuninstall_cmds
  60385. - save_ifs="$IFS"; IFS='~'
  60386. - for cmd in $cmds; do
  60387. - IFS="$save_ifs"
  60388. - eval cmd=\"$cmd\"
  60389. - $show "$cmd"
  60390. - $run eval "$cmd"
  60391. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60392. - exit_status=1
  60393. - fi
  60394. - done
  60395. - IFS="$save_ifs"
  60396. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60397. fi
  60398. # FIXME: should reinstall the best remaining shared library.
  60399. ;;
  60400. @@ -6565,20 +8294,20 @@
  60401. *.lo)
  60402. # Possibly a libtool object, so verify it.
  60403. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60404. + if func_lalib_p "$file"; then
  60405. # Read the .lo file
  60406. - . $dir/$name
  60407. + func_source $dir/$name
  60408. # Add PIC object to the list of files to remove.
  60409. - if test -n "$pic_object" \
  60410. - && test "$pic_object" != none; then
  60411. + if test -n "$pic_object" &&
  60412. + test "$pic_object" != none; then
  60413. rmfiles="$rmfiles $dir/$pic_object"
  60414. fi
  60415. # Add non-PIC object to the list of files to remove.
  60416. - if test -n "$non_pic_object" \
  60417. - && test "$non_pic_object" != none; then
  60418. + if test -n "$non_pic_object" &&
  60419. + test "$non_pic_object" != none; then
  60420. rmfiles="$rmfiles $dir/$non_pic_object"
  60421. fi
  60422. fi
  60423. @@ -6589,17 +8318,26 @@
  60424. noexename=$name
  60425. case $file in
  60426. *.exe)
  60427. - file=`$echo $file|${SED} 's,.exe$,,'`
  60428. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  60429. + func_stripname '' '.exe' "$file"
  60430. + file=$func_stripname_result
  60431. + func_stripname '' '.exe' "$name"
  60432. + noexename=$func_stripname_result
  60433. # $file with .exe has already been added to rmfiles,
  60434. # add $file without .exe
  60435. rmfiles="$rmfiles $file"
  60436. ;;
  60437. esac
  60438. # Do a test to see if this is a libtool program.
  60439. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60440. - relink_command=
  60441. - . $dir/$noexename
  60442. + if func_ltwrapper_p "$file"; then
  60443. + if func_ltwrapper_executable_p "$file"; then
  60444. + func_ltwrapper_scriptname "$file"
  60445. + relink_command=
  60446. + func_source $func_ltwrapper_scriptname_result
  60447. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  60448. + else
  60449. + relink_command=
  60450. + func_source $dir/$noexename
  60451. + fi
  60452. # note $name still contains .exe if it was in $file originally
  60453. # as does the version of $file that was added into $rmfiles
  60454. @@ -6614,237 +8352,38 @@
  60455. fi
  60456. ;;
  60457. esac
  60458. - $show "$rm $rmfiles"
  60459. - $run $rm $rmfiles || exit_status=1
  60460. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  60461. done
  60462. objdir="$origobjdir"
  60463. # Try to remove the ${objdir}s in the directories where we deleted files
  60464. for dir in $rmdirs; do
  60465. if test -d "$dir"; then
  60466. - $show "rmdir $dir"
  60467. - $run rmdir $dir >/dev/null 2>&1
  60468. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  60469. fi
  60470. done
  60471. exit $exit_status
  60472. - ;;
  60473. +}
  60474. - "")
  60475. - $echo "$modename: you must specify a MODE" 1>&2
  60476. - $echo "$generic_help" 1>&2
  60477. - exit $EXIT_FAILURE
  60478. - ;;
  60479. - esac
  60480. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  60481. + func_mode_uninstall ${1+"$@"}
  60482. - if test -z "$exec_cmd"; then
  60483. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  60484. - $echo "$generic_help" 1>&2
  60485. - exit $EXIT_FAILURE
  60486. - fi
  60487. -fi # test -z "$show_help"
  60488. +test -z "$mode" && {
  60489. + help="$generic_help"
  60490. + func_fatal_help "you must specify a MODE"
  60491. +}
  60492. +
  60493. +test -z "$exec_cmd" && \
  60494. + func_fatal_help "invalid operation mode \`$mode'"
  60495. if test -n "$exec_cmd"; then
  60496. - eval exec $exec_cmd
  60497. + eval exec "$exec_cmd"
  60498. exit $EXIT_FAILURE
  60499. fi
  60500. -# We need to display help for each of the modes.
  60501. -case $mode in
  60502. -"") $echo \
  60503. -"Usage: $modename [OPTION]... [MODE-ARG]...
  60504. -
  60505. -Provide generalized library-building support services.
  60506. -
  60507. - --config show all configuration variables
  60508. - --debug enable verbose shell tracing
  60509. --n, --dry-run display commands without modifying any files
  60510. - --features display basic configuration information and exit
  60511. - --finish same as \`--mode=finish'
  60512. - --help display this help message and exit
  60513. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  60514. - --quiet same as \`--silent'
  60515. - --silent don't print informational messages
  60516. - --tag=TAG use configuration variables from tag TAG
  60517. - --version print version information
  60518. -
  60519. -MODE must be one of the following:
  60520. -
  60521. - clean remove files from the build directory
  60522. - compile compile a source file into a libtool object
  60523. - execute automatically set library path, then run a program
  60524. - finish complete the installation of libtool libraries
  60525. - install install libraries or executables
  60526. - link create a library or an executable
  60527. - uninstall remove libraries from an installed directory
  60528. -
  60529. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  60530. -a more detailed description of MODE.
  60531. -
  60532. -Report bugs to <bug-libtool@gnu.org>."
  60533. - exit $EXIT_SUCCESS
  60534. - ;;
  60535. -
  60536. -clean)
  60537. - $echo \
  60538. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  60539. -
  60540. -Remove files from the build directory.
  60541. -
  60542. -RM is the name of the program to use to delete files associated with each FILE
  60543. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  60544. -to RM.
  60545. -
  60546. -If FILE is a libtool library, object or program, all the files associated
  60547. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  60548. - ;;
  60549. -
  60550. -compile)
  60551. - $echo \
  60552. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  60553. -
  60554. -Compile a source file into a libtool library object.
  60555. -
  60556. -This mode accepts the following additional options:
  60557. -
  60558. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  60559. - -prefer-pic try to building PIC objects only
  60560. - -prefer-non-pic try to building non-PIC objects only
  60561. - -static always build a \`.o' file suitable for static linking
  60562. -
  60563. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  60564. -from the given SOURCEFILE.
  60565. -
  60566. -The output file name is determined by removing the directory component from
  60567. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  60568. -library object suffix, \`.lo'."
  60569. - ;;
  60570. -
  60571. -execute)
  60572. - $echo \
  60573. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  60574. -
  60575. -Automatically set library path, then run a program.
  60576. -
  60577. -This mode accepts the following additional options:
  60578. -
  60579. - -dlopen FILE add the directory containing FILE to the library path
  60580. -
  60581. -This mode sets the library path environment variable according to \`-dlopen'
  60582. -flags.
  60583. -
  60584. -If any of the ARGS are libtool executable wrappers, then they are translated
  60585. -into their corresponding uninstalled binary, and any of their required library
  60586. -directories are added to the library path.
  60587. -
  60588. -Then, COMMAND is executed, with ARGS as arguments."
  60589. - ;;
  60590. -
  60591. -finish)
  60592. - $echo \
  60593. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  60594. -
  60595. -Complete the installation of libtool libraries.
  60596. -
  60597. -Each LIBDIR is a directory that contains libtool libraries.
  60598. -
  60599. -The commands that this mode executes may require superuser privileges. Use
  60600. -the \`--dry-run' option if you just want to see what would be executed."
  60601. - ;;
  60602. -
  60603. -install)
  60604. - $echo \
  60605. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  60606. -
  60607. -Install executables or libraries.
  60608. -
  60609. -INSTALL-COMMAND is the installation command. The first component should be
  60610. -either the \`install' or \`cp' program.
  60611. -
  60612. -The rest of the components are interpreted as arguments to that command (only
  60613. -BSD-compatible install options are recognized)."
  60614. - ;;
  60615. -
  60616. -link)
  60617. - $echo \
  60618. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  60619. -
  60620. -Link object files or libraries together to form another library, or to
  60621. -create an executable program.
  60622. -
  60623. -LINK-COMMAND is a command using the C compiler that you would use to create
  60624. -a program from several object files.
  60625. -
  60626. -The following components of LINK-COMMAND are treated specially:
  60627. -
  60628. - -all-static do not do any dynamic linking at all
  60629. - -avoid-version do not add a version suffix if possible
  60630. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  60631. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  60632. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  60633. - -export-symbols SYMFILE
  60634. - try to export only the symbols listed in SYMFILE
  60635. - -export-symbols-regex REGEX
  60636. - try to export only the symbols matching REGEX
  60637. - -LLIBDIR search LIBDIR for required installed libraries
  60638. - -lNAME OUTPUT-FILE requires the installed library libNAME
  60639. - -module build a library that can dlopened
  60640. - -no-fast-install disable the fast-install mode
  60641. - -no-install link a not-installable executable
  60642. - -no-undefined declare that a library does not refer to external symbols
  60643. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  60644. - -objectlist FILE Use a list of object files found in FILE to specify objects
  60645. - -precious-files-regex REGEX
  60646. - don't remove output files matching REGEX
  60647. - -release RELEASE specify package release information
  60648. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  60649. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  60650. - -static do not do any dynamic linking of libtool libraries
  60651. - -version-info CURRENT[:REVISION[:AGE]]
  60652. - specify library version info [each variable defaults to 0]
  60653. -
  60654. -All other options (arguments beginning with \`-') are ignored.
  60655. -
  60656. -Every other argument is treated as a filename. Files ending in \`.la' are
  60657. -treated as uninstalled libtool libraries, other files are standard or library
  60658. -object files.
  60659. -
  60660. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  60661. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  60662. -required, except when creating a convenience library.
  60663. -
  60664. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  60665. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  60666. -
  60667. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  60668. -is created, otherwise an executable program is created."
  60669. - ;;
  60670. -
  60671. -uninstall)
  60672. - $echo \
  60673. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  60674. -
  60675. -Remove libraries from an installation directory.
  60676. -
  60677. -RM is the name of the program to use to delete files associated with each FILE
  60678. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  60679. -to RM.
  60680. +exit $exit_status
  60681. -If FILE is a libtool library, all the files associated with it are deleted.
  60682. -Otherwise, only FILE itself is deleted using RM."
  60683. - ;;
  60684. -
  60685. -*)
  60686. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  60687. - $echo "$help" 1>&2
  60688. - exit $EXIT_FAILURE
  60689. - ;;
  60690. -esac
  60691. -
  60692. -$echo
  60693. -$echo "Try \`$modename --help' for more information about other modes."
  60694. -
  60695. -exit $?
  60696. # The TAGs below are defined such that we never get into a situation
  60697. # in which we disable both kinds of libraries. Given conflicting
  60698. @@ -6858,14 +8397,17 @@
  60699. # configuration. But we'll never go from static-only to shared-only.
  60700. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  60701. -disable_libs=shared
  60702. +build_libtool_libs=no
  60703. +build_old_libs=yes
  60704. # ### END LIBTOOL TAG CONFIG: disable-shared
  60705. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  60706. -disable_libs=static
  60707. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  60708. # ### END LIBTOOL TAG CONFIG: disable-static
  60709. # Local Variables:
  60710. # mode:shell-script
  60711. # sh-indentation:2
  60712. # End:
  60713. +# vi:sw=2
  60714. +
  60715. diff -Nur libvorbis-1.2.0.orig/Makefile.am libvorbis-1.2.0/Makefile.am
  60716. --- libvorbis-1.2.0.orig/Makefile.am 2007-06-22 05:51:56.000000000 +0200
  60717. +++ libvorbis-1.2.0/Makefile.am 2011-02-17 18:30:04.323552227 +0100
  60718. @@ -2,7 +2,7 @@
  60719. AUTOMAKE_OPTIONS = 1.6 foreign dist-zip dist-bzip2
  60720. -SUBDIRS = lib include doc examples vq
  60721. +SUBDIRS = lib include vq
  60722. m4datadir = $(datadir)/aclocal
  60723. m4data_DATA = vorbis.m4
  60724. diff -Nur libvorbis-1.2.0.orig/Makefile.in libvorbis-1.2.0/Makefile.in
  60725. --- libvorbis-1.2.0.orig/Makefile.in 2007-07-25 18:46:36.000000000 +0200
  60726. +++ libvorbis-1.2.0/Makefile.in 2011-02-17 18:30:21.443714618 +0100
  60727. @@ -1,8 +1,9 @@
  60728. -# Makefile.in generated by automake 1.10 from Makefile.am.
  60729. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  60730. # @configure_input@
  60731. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  60732. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  60733. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  60734. +# Inc.
  60735. # This Makefile.in is free software; the Free Software Foundation
  60736. # gives unlimited permission to copy and/or distribute it,
  60737. # with or without modifications, as long as this notice is preserved.
  60738. @@ -16,8 +17,9 @@
  60739. VPATH = @srcdir@
  60740. pkgdatadir = $(datadir)/@PACKAGE@
  60741. -pkglibdir = $(libdir)/@PACKAGE@
  60742. pkgincludedir = $(includedir)/@PACKAGE@
  60743. +pkglibdir = $(libdir)/@PACKAGE@
  60744. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  60745. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  60746. install_sh_DATA = $(install_sh) -c -m 644
  60747. install_sh_PROGRAM = $(install_sh) -c
  60748. @@ -55,6 +57,7 @@
  60749. CONFIG_CLEAN_FILES = libvorbis.spec vorbis.pc vorbisenc.pc \
  60750. vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc \
  60751. vorbisfile-uninstalled.pc
  60752. +CONFIG_CLEAN_VPATH_FILES =
  60753. SOURCES =
  60754. DIST_SOURCES =
  60755. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  60756. @@ -69,13 +72,29 @@
  60757. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  60758. *) f=$$p;; \
  60759. esac;
  60760. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  60761. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  60762. +am__install_max = 40
  60763. +am__nobase_strip_setup = \
  60764. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  60765. +am__nobase_strip = \
  60766. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  60767. +am__nobase_list = $(am__nobase_strip_setup); \
  60768. + for p in $$list; do echo "$$p $$p"; done | \
  60769. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  60770. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  60771. + if (++n[$$2] == $(am__install_max)) \
  60772. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  60773. + END { for (dir in files) print dir, files[dir] }'
  60774. +am__base_list = \
  60775. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  60776. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  60777. am__installdirs = "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"
  60778. -m4dataDATA_INSTALL = $(INSTALL_DATA)
  60779. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  60780. DATA = $(m4data_DATA) $(pkgconfig_DATA)
  60781. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  60782. distclean-recursive maintainer-clean-recursive
  60783. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  60784. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  60785. + distdir dist dist-all distcheck
  60786. ETAGS = etags
  60787. CTAGS = ctags
  60788. DIST_SUBDIRS = $(SUBDIRS)
  60789. @@ -83,9 +102,34 @@
  60790. distdir = $(PACKAGE)-$(VERSION)
  60791. top_distdir = $(distdir)
  60792. am__remove_distdir = \
  60793. - { test ! -d $(distdir) \
  60794. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  60795. - && rm -fr $(distdir); }; }
  60796. + { test ! -d "$(distdir)" \
  60797. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  60798. + && rm -fr "$(distdir)"; }; }
  60799. +am__relativize = \
  60800. + dir0=`pwd`; \
  60801. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  60802. + sed_rest='s,^[^/]*/*,,'; \
  60803. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  60804. + sed_butlast='s,/*[^/]*$$,,'; \
  60805. + while test -n "$$dir1"; do \
  60806. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  60807. + if test "$$first" != "."; then \
  60808. + if test "$$first" = ".."; then \
  60809. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  60810. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  60811. + else \
  60812. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  60813. + if test "$$first2" = "$$first"; then \
  60814. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  60815. + else \
  60816. + dir2="../$$dir2"; \
  60817. + fi; \
  60818. + dir0="$$dir0"/"$$first"; \
  60819. + fi; \
  60820. + fi; \
  60821. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  60822. + done; \
  60823. + reldir="$$dir2"
  60824. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 $(distdir).zip
  60825. GZIP_ENV = --best
  60826. distuninstallcheck_listfiles = find . -type f -print
  60827. @@ -103,22 +147,18 @@
  60828. CFLAGS = @CFLAGS@
  60829. CPP = @CPP@
  60830. CPPFLAGS = @CPPFLAGS@
  60831. -CXX = @CXX@
  60832. -CXXCPP = @CXXCPP@
  60833. -CXXDEPMODE = @CXXDEPMODE@
  60834. -CXXFLAGS = @CXXFLAGS@
  60835. CYGPATH_W = @CYGPATH_W@
  60836. DEBUG = @DEBUG@
  60837. DEFS = @DEFS@
  60838. DEPDIR = @DEPDIR@
  60839. -ECHO = @ECHO@
  60840. +DSYMUTIL = @DSYMUTIL@
  60841. +DUMPBIN = @DUMPBIN@
  60842. ECHO_C = @ECHO_C@
  60843. ECHO_N = @ECHO_N@
  60844. ECHO_T = @ECHO_T@
  60845. EGREP = @EGREP@
  60846. EXEEXT = @EXEEXT@
  60847. -F77 = @F77@
  60848. -FFLAGS = @FFLAGS@
  60849. +FGREP = @FGREP@
  60850. GREP = @GREP@
  60851. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  60852. INSTALL = @INSTALL@
  60853. @@ -126,29 +166,38 @@
  60854. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  60855. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  60856. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  60857. +LD = @LD@
  60858. LDFLAGS = @LDFLAGS@
  60859. LIBOBJS = @LIBOBJS@
  60860. LIBS = @LIBS@
  60861. LIBTOOL = @LIBTOOL@
  60862. +LIPO = @LIPO@
  60863. LN_S = @LN_S@
  60864. LTLIBOBJS = @LTLIBOBJS@
  60865. MAINT = @MAINT@
  60866. MAKEINFO = @MAKEINFO@
  60867. MKDIR_P = @MKDIR_P@
  60868. +NM = @NM@
  60869. +NMEDIT = @NMEDIT@
  60870. +OBJDUMP = @OBJDUMP@
  60871. OBJEXT = @OBJEXT@
  60872. OGG_CFLAGS = @OGG_CFLAGS@
  60873. OGG_LIBS = @OGG_LIBS@
  60874. +OTOOL = @OTOOL@
  60875. +OTOOL64 = @OTOOL64@
  60876. PACKAGE = @PACKAGE@
  60877. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  60878. PACKAGE_NAME = @PACKAGE_NAME@
  60879. PACKAGE_STRING = @PACKAGE_STRING@
  60880. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  60881. +PACKAGE_URL = @PACKAGE_URL@
  60882. PACKAGE_VERSION = @PACKAGE_VERSION@
  60883. PATH_SEPARATOR = @PATH_SEPARATOR@
  60884. PDFXMLTEX = @PDFXMLTEX@
  60885. PKG_CONFIG = @PKG_CONFIG@
  60886. PROFILE = @PROFILE@
  60887. RANLIB = @RANLIB@
  60888. +SED = @SED@
  60889. SET_MAKE = @SET_MAKE@
  60890. SHELL = @SHELL@
  60891. STRIP = @STRIP@
  60892. @@ -169,8 +218,7 @@
  60893. abs_top_builddir = @abs_top_builddir@
  60894. abs_top_srcdir = @abs_top_srcdir@
  60895. ac_ct_CC = @ac_ct_CC@
  60896. -ac_ct_CXX = @ac_ct_CXX@
  60897. -ac_ct_F77 = @ac_ct_F77@
  60898. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  60899. am__include = @am__include@
  60900. am__leading_dot = @am__leading_dot@
  60901. am__quote = @am__quote@
  60902. @@ -201,6 +249,7 @@
  60903. libexecdir = @libexecdir@
  60904. localedir = @localedir@
  60905. localstatedir = @localstatedir@
  60906. +lt_ECHO = @lt_ECHO@
  60907. mandir = @mandir@
  60908. mkdir_p = @mkdir_p@
  60909. oldincludedir = @oldincludedir@
  60910. @@ -218,10 +267,11 @@
  60911. target_cpu = @target_cpu@
  60912. target_os = @target_os@
  60913. target_vendor = @target_vendor@
  60914. +top_build_prefix = @top_build_prefix@
  60915. top_builddir = @top_builddir@
  60916. top_srcdir = @top_srcdir@
  60917. AUTOMAKE_OPTIONS = 1.6 foreign dist-zip dist-bzip2
  60918. -SUBDIRS = lib include doc examples vq
  60919. +SUBDIRS = lib include vq
  60920. m4datadir = $(datadir)/aclocal
  60921. m4data_DATA = vorbis.m4
  60922. pkgconfigdir = $(libdir)/pkgconfig
  60923. @@ -249,15 +299,15 @@
  60924. @for dep in $?; do \
  60925. case '$(am__configure_deps)' in \
  60926. *$$dep*) \
  60927. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  60928. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  60929. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  60930. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  60931. && exit 0; \
  60932. exit 1;; \
  60933. esac; \
  60934. done; \
  60935. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  60936. - cd $(top_srcdir) && \
  60937. - $(AUTOMAKE) --foreign Makefile
  60938. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  60939. + $(am__cd) $(top_srcdir) && \
  60940. + $(AUTOMAKE) --foreign Makefile
  60941. .PRECIOUS: Makefile
  60942. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  60943. @case '$?' in \
  60944. @@ -273,9 +323,10 @@
  60945. $(SHELL) ./config.status --recheck
  60946. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  60947. - cd $(srcdir) && $(AUTOCONF)
  60948. + $(am__cd) $(srcdir) && $(AUTOCONF)
  60949. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  60950. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  60951. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  60952. +$(am__aclocal_m4_deps):
  60953. config.h: stamp-h1
  60954. @if test ! -f $@; then \
  60955. @@ -287,7 +338,7 @@
  60956. @rm -f stamp-h1
  60957. cd $(top_builddir) && $(SHELL) ./config.status config.h
  60958. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  60959. - cd $(top_srcdir) && $(AUTOHEADER)
  60960. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  60961. rm -f stamp-h1
  60962. touch $@
  60963. @@ -315,41 +366,47 @@
  60964. -rm -rf .libs _libs
  60965. distclean-libtool:
  60966. - -rm -f libtool
  60967. + -rm -f libtool config.lt
  60968. install-m4dataDATA: $(m4data_DATA)
  60969. @$(NORMAL_INSTALL)
  60970. test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)"
  60971. - @list='$(m4data_DATA)'; for p in $$list; do \
  60972. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  60973. + for p in $$list; do \
  60974. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  60975. - f=$(am__strip_dir) \
  60976. - echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \
  60977. - $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \
  60978. + echo "$$d$$p"; \
  60979. + done | $(am__base_list) | \
  60980. + while read files; do \
  60981. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \
  60982. + $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \
  60983. done
  60984. uninstall-m4dataDATA:
  60985. @$(NORMAL_UNINSTALL)
  60986. - @list='$(m4data_DATA)'; for p in $$list; do \
  60987. - f=$(am__strip_dir) \
  60988. - echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \
  60989. - rm -f "$(DESTDIR)$(m4datadir)/$$f"; \
  60990. - done
  60991. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  60992. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  60993. + test -n "$$files" || exit 0; \
  60994. + echo " ( cd '$(DESTDIR)$(m4datadir)' && rm -f" $$files ")"; \
  60995. + cd "$(DESTDIR)$(m4datadir)" && rm -f $$files
  60996. install-pkgconfigDATA: $(pkgconfig_DATA)
  60997. @$(NORMAL_INSTALL)
  60998. test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  60999. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  61000. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  61001. + for p in $$list; do \
  61002. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  61003. - f=$(am__strip_dir) \
  61004. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  61005. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  61006. + echo "$$d$$p"; \
  61007. + done | $(am__base_list) | \
  61008. + while read files; do \
  61009. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  61010. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  61011. done
  61012. uninstall-pkgconfigDATA:
  61013. @$(NORMAL_UNINSTALL)
  61014. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  61015. - f=$(am__strip_dir) \
  61016. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  61017. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  61018. - done
  61019. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  61020. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  61021. + test -n "$$files" || exit 0; \
  61022. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  61023. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  61024. # This directory's subdirectories are mostly independent; you can cd
  61025. # into them and run `make' without going through this Makefile.
  61026. @@ -358,7 +415,7 @@
  61027. # (which will cause the Makefiles to be regenerated when you run `make');
  61028. # (2) otherwise, pass the desired values on the `make' command line.
  61029. $(RECURSIVE_TARGETS):
  61030. - @failcom='exit 1'; \
  61031. + @fail= failcom='exit 1'; \
  61032. for f in x $$MAKEFLAGS; do \
  61033. case $$f in \
  61034. *=* | --[!k]*);; \
  61035. @@ -375,7 +432,7 @@
  61036. else \
  61037. local_target="$$target"; \
  61038. fi; \
  61039. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61040. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61041. || eval $$failcom; \
  61042. done; \
  61043. if test "$$dot_seen" = "no"; then \
  61044. @@ -383,7 +440,7 @@
  61045. fi; test -z "$$fail"
  61046. $(RECURSIVE_CLEAN_TARGETS):
  61047. - @failcom='exit 1'; \
  61048. + @fail= failcom='exit 1'; \
  61049. for f in x $$MAKEFLAGS; do \
  61050. case $$f in \
  61051. *=* | --[!k]*);; \
  61052. @@ -409,16 +466,16 @@
  61053. else \
  61054. local_target="$$target"; \
  61055. fi; \
  61056. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61057. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61058. || eval $$failcom; \
  61059. done && test -z "$$fail"
  61060. tags-recursive:
  61061. list='$(SUBDIRS)'; for subdir in $$list; do \
  61062. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61063. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61064. done
  61065. ctags-recursive:
  61066. list='$(SUBDIRS)'; for subdir in $$list; do \
  61067. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61068. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61069. done
  61070. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61071. @@ -426,14 +483,14 @@
  61072. unique=`for i in $$list; do \
  61073. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61074. done | \
  61075. - $(AWK) ' { files[$$0] = 1; } \
  61076. - END { for (i in files) print i; }'`; \
  61077. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61078. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61079. mkid -fID $$unique
  61080. tags: TAGS
  61081. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61082. $(TAGS_FILES) $(LISP)
  61083. - tags=; \
  61084. + set x; \
  61085. here=`pwd`; \
  61086. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  61087. include_option=--etags-include; \
  61088. @@ -445,46 +502,50 @@
  61089. list='$(SUBDIRS)'; for subdir in $$list; do \
  61090. if test "$$subdir" = .; then :; else \
  61091. test ! -f $$subdir/TAGS || \
  61092. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  61093. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  61094. fi; \
  61095. done; \
  61096. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61097. unique=`for i in $$list; do \
  61098. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61099. done | \
  61100. - $(AWK) ' { files[$$0] = 1; } \
  61101. - END { for (i in files) print i; }'`; \
  61102. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61103. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61104. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61105. + shift; \
  61106. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61107. test -n "$$unique" || unique=$$empty_fix; \
  61108. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61109. - $$tags $$unique; \
  61110. + if test $$# -gt 0; then \
  61111. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61112. + "$$@" $$unique; \
  61113. + else \
  61114. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61115. + $$unique; \
  61116. + fi; \
  61117. fi
  61118. ctags: CTAGS
  61119. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61120. $(TAGS_FILES) $(LISP)
  61121. - tags=; \
  61122. - here=`pwd`; \
  61123. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61124. unique=`for i in $$list; do \
  61125. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61126. done | \
  61127. - $(AWK) ' { files[$$0] = 1; } \
  61128. - END { for (i in files) print i; }'`; \
  61129. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61130. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61131. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61132. + test -z "$(CTAGS_ARGS)$$unique" \
  61133. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61134. - $$tags $$unique
  61135. + $$unique
  61136. GTAGS:
  61137. here=`$(am__cd) $(top_builddir) && pwd` \
  61138. - && cd $(top_srcdir) \
  61139. - && gtags -i $(GTAGS_ARGS) $$here
  61140. + && $(am__cd) $(top_srcdir) \
  61141. + && gtags -i $(GTAGS_ARGS) "$$here"
  61142. distclean-tags:
  61143. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61144. distdir: $(DISTFILES)
  61145. $(am__remove_distdir)
  61146. - test -d $(distdir) || mkdir $(distdir)
  61147. + test -d "$(distdir)" || mkdir "$(distdir)"
  61148. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61149. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61150. list='$(DISTFILES)'; \
  61151. @@ -500,29 +561,44 @@
  61152. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61153. if test -d $$d/$$file; then \
  61154. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61155. + if test -d "$(distdir)/$$file"; then \
  61156. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61157. + fi; \
  61158. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61159. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61160. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61161. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61162. fi; \
  61163. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61164. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61165. else \
  61166. - test -f $(distdir)/$$file \
  61167. - || cp -p $$d/$$file $(distdir)/$$file \
  61168. + test -f "$(distdir)/$$file" \
  61169. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61170. || exit 1; \
  61171. fi; \
  61172. done
  61173. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61174. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61175. if test "$$subdir" = .; then :; else \
  61176. test -d "$(distdir)/$$subdir" \
  61177. || $(MKDIR_P) "$(distdir)/$$subdir" \
  61178. || exit 1; \
  61179. - distdir=`$(am__cd) $(distdir) && pwd`; \
  61180. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  61181. - (cd $$subdir && \
  61182. + fi; \
  61183. + done
  61184. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61185. + if test "$$subdir" = .; then :; else \
  61186. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  61187. + $(am__relativize); \
  61188. + new_distdir=$$reldir; \
  61189. + dir1=$$subdir; dir2="$(top_distdir)"; \
  61190. + $(am__relativize); \
  61191. + new_top_distdir=$$reldir; \
  61192. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  61193. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  61194. + ($(am__cd) $$subdir && \
  61195. $(MAKE) $(AM_MAKEFLAGS) \
  61196. - top_distdir="$$top_distdir" \
  61197. - distdir="$$distdir/$$subdir" \
  61198. + top_distdir="$$new_top_distdir" \
  61199. + distdir="$$new_distdir" \
  61200. am__remove_distdir=: \
  61201. am__skip_length_check=: \
  61202. + am__skip_mode_fix=: \
  61203. distdir) \
  61204. || exit 1; \
  61205. fi; \
  61206. @@ -530,11 +606,13 @@
  61207. $(MAKE) $(AM_MAKEFLAGS) \
  61208. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  61209. dist-hook
  61210. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  61211. + -test -n "$(am__skip_mode_fix)" \
  61212. + || find "$(distdir)" -type d ! -perm -755 \
  61213. + -exec chmod u+rwx,go+rx {} \; -o \
  61214. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  61215. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  61216. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  61217. - || chmod -R a+r $(distdir)
  61218. + || chmod -R a+r "$(distdir)"
  61219. dist-gzip: distdir
  61220. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  61221. $(am__remove_distdir)
  61222. @@ -542,6 +620,14 @@
  61223. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  61224. $(am__remove_distdir)
  61225. +dist-lzma: distdir
  61226. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  61227. + $(am__remove_distdir)
  61228. +
  61229. +dist-xz: distdir
  61230. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  61231. + $(am__remove_distdir)
  61232. +
  61233. dist-tarZ: distdir
  61234. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  61235. $(am__remove_distdir)
  61236. @@ -567,13 +653,17 @@
  61237. distcheck: dist
  61238. case '$(DIST_ARCHIVES)' in \
  61239. *.tar.gz*) \
  61240. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  61241. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  61242. *.tar.bz2*) \
  61243. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  61244. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  61245. + *.tar.lzma*) \
  61246. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  61247. + *.tar.xz*) \
  61248. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  61249. *.tar.Z*) \
  61250. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  61251. *.shar.gz*) \
  61252. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  61253. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  61254. *.zip*) \
  61255. unzip $(distdir).zip ;;\
  61256. esac
  61257. @@ -581,9 +671,11 @@
  61258. mkdir $(distdir)/_build
  61259. mkdir $(distdir)/_inst
  61260. chmod a-w $(distdir)
  61261. + test -d $(distdir)/_build || exit 0; \
  61262. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  61263. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  61264. - && cd $(distdir)/_build \
  61265. + && am__cwd=`pwd` \
  61266. + && $(am__cd) $(distdir)/_build \
  61267. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  61268. $(DISTCHECK_CONFIGURE_FLAGS) \
  61269. && $(MAKE) $(AM_MAKEFLAGS) \
  61270. @@ -605,13 +697,15 @@
  61271. && rm -rf "$$dc_destdir" \
  61272. && $(MAKE) $(AM_MAKEFLAGS) dist \
  61273. && rm -rf $(DIST_ARCHIVES) \
  61274. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  61275. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  61276. + && cd "$$am__cwd" \
  61277. + || exit 1
  61278. $(am__remove_distdir)
  61279. @(echo "$(distdir) archives ready for distribution: "; \
  61280. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  61281. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  61282. distuninstallcheck:
  61283. - @cd $(distuninstallcheck_dir) \
  61284. + @$(am__cd) '$(distuninstallcheck_dir)' \
  61285. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  61286. || { echo "ERROR: files left after uninstall:" ; \
  61287. if test -n "$(DESTDIR)"; then \
  61288. @@ -656,6 +750,7 @@
  61289. distclean-generic:
  61290. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61291. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61292. maintainer-clean-generic:
  61293. @echo "This command is intended for maintainers to use"
  61294. @@ -676,6 +771,8 @@
  61295. html: html-recursive
  61296. +html-am:
  61297. +
  61298. info: info-recursive
  61299. info-am:
  61300. @@ -684,18 +781,28 @@
  61301. install-dvi: install-dvi-recursive
  61302. +install-dvi-am:
  61303. +
  61304. install-exec-am:
  61305. install-html: install-html-recursive
  61306. +install-html-am:
  61307. +
  61308. install-info: install-info-recursive
  61309. +install-info-am:
  61310. +
  61311. install-man:
  61312. install-pdf: install-pdf-recursive
  61313. +install-pdf-am:
  61314. +
  61315. install-ps: install-ps-recursive
  61316. +install-ps-am:
  61317. +
  61318. installcheck-am:
  61319. maintainer-clean: maintainer-clean-recursive
  61320. @@ -718,26 +825,26 @@
  61321. uninstall-am: uninstall-m4dataDATA uninstall-pkgconfigDATA
  61322. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  61323. - install-strip
  61324. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  61325. + ctags-recursive install-am install-strip tags-recursive
  61326. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  61327. all all-am am--refresh check check-am clean clean-generic \
  61328. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  61329. - dist-gzip dist-hook dist-shar dist-tarZ dist-zip distcheck \
  61330. - distclean distclean-generic distclean-hdr distclean-libtool \
  61331. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  61332. - dvi-am html html-am info info-am install install-am \
  61333. - install-data install-data-am install-dvi install-dvi-am \
  61334. - install-exec install-exec-am install-html install-html-am \
  61335. - install-info install-info-am install-m4dataDATA install-man \
  61336. - install-pdf install-pdf-am install-pkgconfigDATA install-ps \
  61337. - install-ps-am install-strip installcheck installcheck-am \
  61338. - installdirs installdirs-am maintainer-clean \
  61339. - maintainer-clean-generic mostlyclean mostlyclean-generic \
  61340. - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  61341. - uninstall uninstall-am uninstall-m4dataDATA \
  61342. - uninstall-pkgconfigDATA
  61343. + dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
  61344. + dist-zip distcheck distclean distclean-generic distclean-hdr \
  61345. + distclean-libtool distclean-tags distcleancheck distdir \
  61346. + distuninstallcheck dvi dvi-am html html-am info info-am \
  61347. + install install-am install-data install-data-am install-dvi \
  61348. + install-dvi-am install-exec install-exec-am install-html \
  61349. + install-html-am install-info install-info-am \
  61350. + install-m4dataDATA install-man install-pdf install-pdf-am \
  61351. + install-pkgconfigDATA install-ps install-ps-am install-strip \
  61352. + installcheck installcheck-am installdirs installdirs-am \
  61353. + maintainer-clean maintainer-clean-generic mostlyclean \
  61354. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  61355. + tags tags-recursive uninstall uninstall-am \
  61356. + uninstall-m4dataDATA uninstall-pkgconfigDATA
  61357. dist-hook:
  61358. @@ -754,6 +861,7 @@
  61359. profile:
  61360. $(MAKE) all CFLAGS="@PROFILE@"
  61361. +
  61362. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61363. # Otherwise a system limit (for SysV at least) may be exceeded.
  61364. .NOEXPORT:
  61365. diff -Nur libvorbis-1.2.0.orig/missing libvorbis-1.2.0/missing
  61366. --- libvorbis-1.2.0.orig/missing 2006-11-17 14:08:39.000000000 +0100
  61367. +++ libvorbis-1.2.0/missing 2011-02-17 18:30:20.923554905 +0100
  61368. @@ -1,10 +1,10 @@
  61369. #! /bin/sh
  61370. # Common stub for a few missing GNU programs while installing.
  61371. -scriptversion=2006-05-10.23
  61372. +scriptversion=2009-04-28.21; # UTC
  61373. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
  61374. -# Free Software Foundation, Inc.
  61375. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  61376. +# 2008, 2009 Free Software Foundation, Inc.
  61377. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  61378. # This program is free software; you can redistribute it and/or modify
  61379. @@ -18,9 +18,7 @@
  61380. # GNU General Public License for more details.
  61381. # You should have received a copy of the GNU General Public License
  61382. -# along with this program; if not, write to the Free Software
  61383. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  61384. -# 02110-1301, USA.
  61385. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  61386. # As a special exception to the GNU General Public License, if you
  61387. # distribute this file as part of a program that contains a
  61388. @@ -89,6 +87,9 @@
  61389. tar try tar, gnutar, gtar, then tar without non-portable flags
  61390. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  61391. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  61392. +\`g' are ignored when checking the name.
  61393. +
  61394. Send bug reports to <bug-automake@gnu.org>."
  61395. exit $?
  61396. ;;
  61397. @@ -106,15 +107,22 @@
  61398. esac
  61399. +# normalize program name to check for.
  61400. +program=`echo "$1" | sed '
  61401. + s/^gnu-//; t
  61402. + s/^gnu//; t
  61403. + s/^g//; t'`
  61404. +
  61405. # Now exit if we have it, but it failed. Also exit now if we
  61406. # don't have it and --version was passed (most likely to detect
  61407. -# the program).
  61408. +# the program). This is about non-GNU programs, so use $1 not
  61409. +# $program.
  61410. case $1 in
  61411. - lex|yacc)
  61412. + lex*|yacc*)
  61413. # Not GNU programs, they don't have --version.
  61414. ;;
  61415. - tar)
  61416. + tar*)
  61417. if test -n "$run"; then
  61418. echo 1>&2 "ERROR: \`tar' requires --run"
  61419. exit 1
  61420. @@ -138,7 +146,7 @@
  61421. # If it does not exist, or fails to run (possibly an outdated version),
  61422. # try to emulate it.
  61423. -case $1 in
  61424. +case $program in
  61425. aclocal*)
  61426. echo 1>&2 "\
  61427. WARNING: \`$1' is $msg. You should only need it if
  61428. @@ -148,7 +156,7 @@
  61429. touch aclocal.m4
  61430. ;;
  61431. - autoconf)
  61432. + autoconf*)
  61433. echo 1>&2 "\
  61434. WARNING: \`$1' is $msg. You should only need it if
  61435. you modified \`${configure_ac}'. You might want to install the
  61436. @@ -157,7 +165,7 @@
  61437. touch configure
  61438. ;;
  61439. - autoheader)
  61440. + autoheader*)
  61441. echo 1>&2 "\
  61442. WARNING: \`$1' is $msg. You should only need it if
  61443. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  61444. @@ -187,7 +195,7 @@
  61445. while read f; do touch "$f"; done
  61446. ;;
  61447. - autom4te)
  61448. + autom4te*)
  61449. echo 1>&2 "\
  61450. WARNING: \`$1' is needed, but is $msg.
  61451. You might have modified some files without having the
  61452. @@ -210,7 +218,7 @@
  61453. fi
  61454. ;;
  61455. - bison|yacc)
  61456. + bison*|yacc*)
  61457. echo 1>&2 "\
  61458. WARNING: \`$1' $msg. You should only need it if
  61459. you modified a \`.y' file. You may need the \`Bison' package
  61460. @@ -240,7 +248,7 @@
  61461. fi
  61462. ;;
  61463. - lex|flex)
  61464. + lex*|flex*)
  61465. echo 1>&2 "\
  61466. WARNING: \`$1' is $msg. You should only need it if
  61467. you modified a \`.l' file. You may need the \`Flex' package
  61468. @@ -263,7 +271,7 @@
  61469. fi
  61470. ;;
  61471. - help2man)
  61472. + help2man*)
  61473. echo 1>&2 "\
  61474. WARNING: \`$1' is $msg. You should only need it if
  61475. you modified a dependency of a manual page. You may need the
  61476. @@ -277,11 +285,11 @@
  61477. else
  61478. test -z "$file" || exec >$file
  61479. echo ".ab help2man is required to generate this page"
  61480. - exit 1
  61481. + exit $?
  61482. fi
  61483. ;;
  61484. - makeinfo)
  61485. + makeinfo*)
  61486. echo 1>&2 "\
  61487. WARNING: \`$1' is $msg. You should only need it if
  61488. you modified a \`.texi' or \`.texinfo' file, or any other file
  61489. @@ -310,7 +318,7 @@
  61490. touch $file
  61491. ;;
  61492. - tar)
  61493. + tar*)
  61494. shift
  61495. # We have already tried tar in the generic part.
  61496. @@ -363,5 +371,6 @@
  61497. # eval: (add-hook 'write-file-hooks 'time-stamp)
  61498. # time-stamp-start: "scriptversion="
  61499. # time-stamp-format: "%:y-%02m-%02d.%02H"
  61500. -# time-stamp-end: "$"
  61501. +# time-stamp-time-zone: "UTC"
  61502. +# time-stamp-end: "; # UTC"
  61503. # End:
  61504. diff -Nur libvorbis-1.2.0.orig/vq/Makefile.in libvorbis-1.2.0/vq/Makefile.in
  61505. --- libvorbis-1.2.0.orig/vq/Makefile.in 2007-07-25 18:46:36.000000000 +0200
  61506. +++ libvorbis-1.2.0/vq/Makefile.in 2011-02-17 18:30:21.407302231 +0100
  61507. @@ -1,8 +1,9 @@
  61508. -# Makefile.in generated by automake 1.10 from Makefile.am.
  61509. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61510. # @configure_input@
  61511. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61512. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  61513. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61514. +# Inc.
  61515. # This Makefile.in is free software; the Free Software Foundation
  61516. # gives unlimited permission to copy and/or distribute it,
  61517. # with or without modifications, as long as this notice is preserved.
  61518. @@ -15,8 +16,9 @@
  61519. @SET_MAKE@
  61520. VPATH = @srcdir@
  61521. pkgdatadir = $(datadir)/@PACKAGE@
  61522. -pkglibdir = $(libdir)/@PACKAGE@
  61523. pkgincludedir = $(includedir)/@PACKAGE@
  61524. +pkglibdir = $(libdir)/@PACKAGE@
  61525. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61526. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61527. install_sh_DATA = $(install_sh) -c -m 644
  61528. install_sh_PROGRAM = $(install_sh) -c
  61529. @@ -45,6 +47,7 @@
  61530. mkinstalldirs = $(install_sh) -d
  61531. CONFIG_HEADER = $(top_builddir)/config.h
  61532. CONFIG_CLEAN_FILES =
  61533. +CONFIG_CLEAN_VPATH_FILES =
  61534. am_distribution_OBJECTS = distribution.$(OBJEXT) bookutil.$(OBJEXT)
  61535. distribution_OBJECTS = $(am_distribution_OBJECTS)
  61536. distribution_LDADD = $(LDADD)
  61537. @@ -73,9 +76,10 @@
  61538. latticetune_OBJECTS = $(am_latticetune_OBJECTS)
  61539. latticetune_LDADD = $(LDADD)
  61540. latticetune_DEPENDENCIES = ../lib/libvorbis.la
  61541. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  61542. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  61543. depcomp = $(SHELL) $(top_srcdir)/depcomp
  61544. am__depfiles_maybe = depfiles
  61545. +am__mv = mv -f
  61546. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  61547. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61548. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61549. @@ -107,22 +111,18 @@
  61550. CFLAGS = @CFLAGS@
  61551. CPP = @CPP@
  61552. CPPFLAGS = @CPPFLAGS@
  61553. -CXX = @CXX@
  61554. -CXXCPP = @CXXCPP@
  61555. -CXXDEPMODE = @CXXDEPMODE@
  61556. -CXXFLAGS = @CXXFLAGS@
  61557. CYGPATH_W = @CYGPATH_W@
  61558. DEBUG = @DEBUG@
  61559. DEFS = @DEFS@
  61560. DEPDIR = @DEPDIR@
  61561. -ECHO = @ECHO@
  61562. +DSYMUTIL = @DSYMUTIL@
  61563. +DUMPBIN = @DUMPBIN@
  61564. ECHO_C = @ECHO_C@
  61565. ECHO_N = @ECHO_N@
  61566. ECHO_T = @ECHO_T@
  61567. EGREP = @EGREP@
  61568. EXEEXT = @EXEEXT@
  61569. -F77 = @F77@
  61570. -FFLAGS = @FFLAGS@
  61571. +FGREP = @FGREP@
  61572. GREP = @GREP@
  61573. HAVE_PKG_CONFIG = @HAVE_PKG_CONFIG@
  61574. INSTALL = @INSTALL@
  61575. @@ -130,29 +130,38 @@
  61576. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61577. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61578. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61579. +LD = @LD@
  61580. LDFLAGS = @LDFLAGS@
  61581. LIBOBJS = @LIBOBJS@
  61582. LIBS = @LIBS@
  61583. LIBTOOL = @LIBTOOL@
  61584. +LIPO = @LIPO@
  61585. LN_S = @LN_S@
  61586. LTLIBOBJS = @LTLIBOBJS@
  61587. MAINT = @MAINT@
  61588. MAKEINFO = @MAKEINFO@
  61589. MKDIR_P = @MKDIR_P@
  61590. +NM = @NM@
  61591. +NMEDIT = @NMEDIT@
  61592. +OBJDUMP = @OBJDUMP@
  61593. OBJEXT = @OBJEXT@
  61594. OGG_CFLAGS = @OGG_CFLAGS@
  61595. OGG_LIBS = @OGG_LIBS@
  61596. +OTOOL = @OTOOL@
  61597. +OTOOL64 = @OTOOL64@
  61598. PACKAGE = @PACKAGE@
  61599. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61600. PACKAGE_NAME = @PACKAGE_NAME@
  61601. PACKAGE_STRING = @PACKAGE_STRING@
  61602. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61603. +PACKAGE_URL = @PACKAGE_URL@
  61604. PACKAGE_VERSION = @PACKAGE_VERSION@
  61605. PATH_SEPARATOR = @PATH_SEPARATOR@
  61606. PDFXMLTEX = @PDFXMLTEX@
  61607. PKG_CONFIG = @PKG_CONFIG@
  61608. PROFILE = @PROFILE@
  61609. RANLIB = @RANLIB@
  61610. +SED = @SED@
  61611. SET_MAKE = @SET_MAKE@
  61612. SHELL = @SHELL@
  61613. STRIP = @STRIP@
  61614. @@ -173,8 +182,7 @@
  61615. abs_top_builddir = @abs_top_builddir@
  61616. abs_top_srcdir = @abs_top_srcdir@
  61617. ac_ct_CC = @ac_ct_CC@
  61618. -ac_ct_CXX = @ac_ct_CXX@
  61619. -ac_ct_F77 = @ac_ct_F77@
  61620. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61621. am__include = @am__include@
  61622. am__leading_dot = @am__leading_dot@
  61623. am__quote = @am__quote@
  61624. @@ -205,6 +213,7 @@
  61625. libexecdir = @libexecdir@
  61626. localedir = @localedir@
  61627. localstatedir = @localstatedir@
  61628. +lt_ECHO = @lt_ECHO@
  61629. mandir = @mandir@
  61630. mkdir_p = @mkdir_p@
  61631. oldincludedir = @oldincludedir@
  61632. @@ -222,6 +231,7 @@
  61633. target_cpu = @target_cpu@
  61634. target_os = @target_os@
  61635. target_vendor = @target_vendor@
  61636. +top_build_prefix = @top_build_prefix@
  61637. top_builddir = @top_builddir@
  61638. top_srcdir = @top_srcdir@
  61639. INCLUDES = -I../lib -I$(top_srcdir)/include @OGG_CFLAGS@
  61640. @@ -255,14 +265,14 @@
  61641. @for dep in $?; do \
  61642. case '$(am__configure_deps)' in \
  61643. *$$dep*) \
  61644. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  61645. - && exit 0; \
  61646. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  61647. + && { if test -f $@; then exit 0; else break; fi; }; \
  61648. exit 1;; \
  61649. esac; \
  61650. done; \
  61651. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu vq/Makefile'; \
  61652. - cd $(top_srcdir) && \
  61653. - $(AUTOMAKE) --gnu vq/Makefile
  61654. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu vq/Makefile'; \
  61655. + $(am__cd) $(top_srcdir) && \
  61656. + $(AUTOMAKE) --gnu vq/Makefile
  61657. .PRECIOUS: Makefile
  61658. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61659. @case '$?' in \
  61660. @@ -280,6 +290,7 @@
  61661. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61662. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  61663. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61664. +$(am__aclocal_m4_deps):
  61665. distribution$(EXEEXT): $(distribution_OBJECTS) $(distribution_DEPENDENCIES)
  61666. @rm -f distribution$(EXEEXT)
  61667. $(LINK) $(distribution_OBJECTS) $(distribution_LDADD) $(LIBS)
  61668. @@ -317,21 +328,21 @@
  61669. .c.o:
  61670. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  61671. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  61672. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  61673. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  61674. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  61675. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  61676. .c.obj:
  61677. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  61678. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  61679. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  61680. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  61681. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  61682. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  61683. .c.lo:
  61684. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  61685. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  61686. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  61687. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  61688. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  61689. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  61690. @@ -347,45 +358,49 @@
  61691. unique=`for i in $$list; do \
  61692. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61693. done | \
  61694. - $(AWK) ' { files[$$0] = 1; } \
  61695. - END { for (i in files) print i; }'`; \
  61696. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61697. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61698. mkid -fID $$unique
  61699. tags: TAGS
  61700. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61701. $(TAGS_FILES) $(LISP)
  61702. - tags=; \
  61703. + set x; \
  61704. here=`pwd`; \
  61705. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61706. unique=`for i in $$list; do \
  61707. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61708. done | \
  61709. - $(AWK) ' { files[$$0] = 1; } \
  61710. - END { for (i in files) print i; }'`; \
  61711. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61712. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61713. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61714. + shift; \
  61715. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61716. test -n "$$unique" || unique=$$empty_fix; \
  61717. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61718. - $$tags $$unique; \
  61719. + if test $$# -gt 0; then \
  61720. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61721. + "$$@" $$unique; \
  61722. + else \
  61723. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61724. + $$unique; \
  61725. + fi; \
  61726. fi
  61727. ctags: CTAGS
  61728. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  61729. $(TAGS_FILES) $(LISP)
  61730. - tags=; \
  61731. - here=`pwd`; \
  61732. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  61733. unique=`for i in $$list; do \
  61734. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61735. done | \
  61736. - $(AWK) ' { files[$$0] = 1; } \
  61737. - END { for (i in files) print i; }'`; \
  61738. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61739. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61740. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61741. + test -z "$(CTAGS_ARGS)$$unique" \
  61742. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61743. - $$tags $$unique
  61744. + $$unique
  61745. GTAGS:
  61746. here=`$(am__cd) $(top_builddir) && pwd` \
  61747. - && cd $(top_srcdir) \
  61748. - && gtags -i $(GTAGS_ARGS) $$here
  61749. + && $(am__cd) $(top_srcdir) \
  61750. + && gtags -i $(GTAGS_ARGS) "$$here"
  61751. distclean-tags:
  61752. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61753. @@ -406,13 +421,17 @@
  61754. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61755. if test -d $$d/$$file; then \
  61756. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61757. + if test -d "$(distdir)/$$file"; then \
  61758. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61759. + fi; \
  61760. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61761. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61762. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61763. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61764. fi; \
  61765. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61766. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61767. else \
  61768. - test -f $(distdir)/$$file \
  61769. - || cp -p $$d/$$file $(distdir)/$$file \
  61770. + test -f "$(distdir)/$$file" \
  61771. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61772. || exit 1; \
  61773. fi; \
  61774. done
  61775. @@ -441,6 +460,7 @@
  61776. distclean-generic:
  61777. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61778. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61779. maintainer-clean-generic:
  61780. @echo "This command is intended for maintainers to use"
  61781. @@ -461,6 +481,8 @@
  61782. html: html-am
  61783. +html-am:
  61784. +
  61785. info: info-am
  61786. info-am:
  61787. @@ -469,18 +491,28 @@
  61788. install-dvi: install-dvi-am
  61789. +install-dvi-am:
  61790. +
  61791. install-exec-am:
  61792. install-html: install-html-am
  61793. +install-html-am:
  61794. +
  61795. install-info: install-info-am
  61796. +install-info-am:
  61797. +
  61798. install-man:
  61799. install-pdf: install-pdf-am
  61800. +install-pdf-am:
  61801. +
  61802. install-ps: install-ps-am
  61803. +install-ps-am:
  61804. +
  61805. installcheck-am:
  61806. maintainer-clean: maintainer-clean-am
  61807. @@ -527,6 +559,7 @@
  61808. vq:
  61809. $(MAKE) $(EXTRA_PROGRAMS)
  61810. +
  61811. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61812. # Otherwise a system limit (for SysV at least) may be exceeded.
  61813. .NOEXPORT: